cape.pyfun.cmd: Create commands for FUN3D executables¶
This module creates system commands as lists of strings for executable
binaries or scripts for FUN3D. The main FUN3D executables are nodet
or nodet_mpi, for which command are created using nodet(), and
dual or dual_mpi, whose commands are constructed using
dual().
Commands are created in the form of a list of strings. This is the
format used in the built-in module subprocess and also with
cape.bin.calli(). As a very simple example, the system command
"ls -lh" becomes the list ["ls", "-lh"].
These commands also include prefixes such as mpiexec if necessary.
The decision to use nodet or nodet_mpi is made based on the
options input of keyword input "MPI". For example, two versions of
the command returned by nodet() could be
["mpiexec", "-np", "240", "nodet_mpi", "--plt_tecplot_output"] ["nodet", "--plt_tecplot_output"]
- cape.pyfun.cmd.dual(opts=None, i=0, **kw)¶
Interface to FUN3D binary
dualordual_mpi- Call:
>>> cmdi = cmd.dual(opts, i=0) >>> cmdi = cmd.dual(**kw)
- Inputs:
- opts: :class;`pyFun.options.Options`
Global pyFun options interface or “RunControl” interface
- i:
int Phase number
- outer_loop_krylov: {
True} |False Whether or not to use
--outer_loop_krylovoption- rad: {
True} |False Whether or not to use residual adjoint dot product
- adapt: {
True} |False Whether or not to adapt at the end of the cycle
- Outputs:
- cmdi:
list[str] Command split into a list of strings
- cmdi:
- Versions:
2016-04-28
@ddalle: First version
- cape.pyfun.cmd.nodet(opts=None, i=0, **kw)¶
Interface to FUN3D binary
nodetornodet_mpi- Call:
>>> cmdi = cmd.nodet(opts, i=0) >>> cmdi = cmd.nodet(**kw)
- Inputs:
- opts:
pyFun.options.Options Global pyFun options interface or “RunControl” interface
- i:
int Phase number
- animation_freq:
int Output frequency
- opts:
- Outputs:
- cmdi:
list[str] Command split into a list of strings
- cmdi:
- Versions:
2015-11-24
@ddalle: First version