Command line arguments
The following command line options are supported:
| Argument | Usage | Description |
|---|---|---|
| input_file | mandatory | name of input file which holds all the parameters used for optimization |
| optional | The output_prefix will be the name of the generated airfoil as well as the subdirectory prefix for the intermediate data files for visualization | |
| optional | Name of airfoil file which will be used as the seed airfoil - overwrites airfoil_file in namelist &optimization_options of the input file | |
| optional | Default Reynolds number for operating points - overwrites re_default in namelist &operating_conditions of the input file | |
| optional | Shows command line help |
If the output_prefix is omitted, the stem of the input file name will be taken as the ‘output prefix’.
Example:
xoptfoil2 -i JX-G3-100.inp will have the output_prefix JX-G3-100 and the name of the optimized airfoil will be JX-GT-100.dat.
The -a and -r arguments are useful for automation: a single input file can serve several optimization tasks by overriding airfoil or Reynolds number on the command line.
Put the command to run Xoptfoil2 in a batch file (shell script) so you can start the optimization with a double-click in Explorer.