Request: pure command line interface
COmputational fluid dyNamics STRUctured grid CreaTor for 2D airfoils
Brought to you by:
montagdp
Hi me again... :)
A big wish from me would be do the entire mesh generation from a single command line command. I am planning on using construct2d as a background mesh generator and as such I need to run the mesh generation programmatically (without any input from the user to navigate the menus). Being able to specify an airfoil path and a settings file path at the command line and having the finished mesh automatically pop out the other end would keep me from having to write a pexpect module around construct2d.
Hey Jason,
That is a good point. I will take a look into it and think about implementing it in the next update. On the other hand, you can still use this code in batch mode. First, create the settings file grid_options.in. Then, create a file which contains your commands. Let's call this input.txt. A simple example of the contents of this file would be:
GRID
SMTH
QUIT
Then you can run the program from the command line like this:
./construct2d (airfoil path) < inputs.txt
If you want to store the program output in another file you can do:
./construct2d (airfoil path) < inputs.txt > outputs.txt
I just tested this on my own and it works fine. Let me know if this helps.
Dan
Please see my previous post. You can run this in batch mode by creating a file with the desired inputs. Therefore, I am changing the status of this ticket to won't-fix.