cape.pyfun.options
: FUN3D and pyFun settings¶
cape.pyfun.options
: FUN3D options interface module¶
This module provides the options interface for cape.pyfun
. Many
settings are inherited from cape.cfdx.options
, and there are
some additional options specific to FUN3D for pyfun.
- See also:
- class cape.pyfun.options.Options(*args, **kw)¶
Options interface for
cape.pyfun
- Call:
>>> opts = Options(fname=None, **kw)
- Inputs:
- Versions:
2014-07-28
@ddalle
: Version 1.0
- apply_ArchiveTemplate()¶
Apply named template to set default files to delete/archive
- Call:
>>> opts.apply_ArchiveTemplate()
- Inputs:
- opts:
Options
Options interface
- opts:
- Versions:
2016-02-29
@ddalle
: v1.0
- get_AdaptMethod(j=None, i=None, **kw)¶
Get version of REFINE to use for adaptation
- Call:
>>> AdaptMethod = opts.get_AdaptMethod(j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- AdaptMethod: {
'refine/one'
} |'refine/three'
|'refine/two'
version of REFINE to use for adaptation
- AdaptMethod: {
- get_AdaptPhase(j=None, i=None, **kw)¶
Get whether or not to adapt mesh at end of phase
- Call:
>>> AdaptPhase = opts.get_AdaptPhase(j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- AdaptPhase: {
True
} |False
whether or not to adapt mesh at end of phase
- AdaptPhase: {
- get_AdaptationNumber(j=None)¶
Get the adaptation number for a given phase
- Call:
>>> nadapt = opts.get_AdaptationNumber(j=None)
- Inputs:
- opts:
cape.pyfun.options.Options
Options interface
- j: {
None
} |int
Phase number
- opts:
- Outputs:
- nadapt:
int
|None
Number of adaptations prior to phase j
- nadapt:
- Versions:
2015-12-31
@ddalle
: Version 1.02022-10-24
@ddalle
: Version 1.1; use PhaseSequence
- get_Adaptive(j=None, i=None, **kw)¶
Get whether or not to run adaptively
- Call:
>>> Adaptive = opts.get_Adaptive(j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- Adaptive: {
False
} |True
whether or not to run adaptively
- Adaptive: {
- get_ConfigInput(comp)¶
Return the input for a particular component
- get_Dual(j=None, i=None, **kw)¶
Get whether or not to run all adaptations with adjoint
- Call:
>>> Dual = opts.get_Dual(j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- Dual: {
False
} |True
whether or not to run all adaptations with adjoint
- Dual: {
- get_DualPhase(j=None, i=None, **kw)¶
Get whether or not to run phase in dual mode
- Call:
>>> DualPhase = opts.get_DualPhase(j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- DualPhase: {
True
} |False
whether or not to run phase in dual mode
- DualPhase: {
- get_Faux(comp=None)¶
Get the geometry information for a
faux_input
component- Call:
>>> faux = opts.get_Faux(comp=None)
- Inputs:
- opts:
cape.cfdx.options.Options
Options interface
- comp: {
None
} |str
Name or number of component to process (all if
None
)
- opts:
- Outputs:
- Versions:
2017-02-23
@ddalle
: v1.02023-03-17
@ddalle
: v2.0; use OptionsDict
- get_FauxFile(j=None, i=None, **kw)¶
Get name of
faux_input
template file- Call:
>>> FauxFile = opts.get_FauxFile(j=None, i=None, **kw)
- Inputs:
- opts: MeshOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- FauxFile: {
None
} |str
name of
faux_input
template file
- FauxFile: {
- get_FreezeComponents(j=None, i=None, **kw)¶
Get value of option “FreezeComponents”
- Call:
>>> FreezeComponents = opts.get_FreezeComponents(j=None, i=None, **kw)
- Inputs:
- opts: MeshOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- FreezeComponents: {
None
} |object
value of option “FreezeComponents”
- FreezeComponents: {
- get_FreezeFile(j=None, i=None, **kw)¶
Get name of file w/ compIDs to freeze during adaptation
- Call:
>>> FreezeFile = opts.get_FreezeFile(j=None, i=None, **kw)
- Inputs:
- opts: MeshOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- FreezeFile: {
None
} |str
name of file w/ compIDs to freeze during adaptation
- FreezeFile: {
- get_Fun3DNamelist(j=None, i=None, **kw)¶
Get template
fun3d.nml
file- Call:
>>> Fun3DNamelist = opts.get_Fun3DNamelist(j=None, i=None, **kw)
- Inputs:
- opts: Options
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- Fun3DNamelist: {
'fun3d.nml'
} |str
template
fun3d.nml
file
- Fun3DNamelist: {
- get_FunctionalAdaptCoeffs()¶
Get list of coefficients in any adaptation function
- get_FunctionalCoeffOpt(coeff: str, opt: str, j=None, **kw)¶
Get option for a specific functional coefficient
- get_FunctionalFuncOpt(fn: str, opt: str, j=None, **kw)¶
Get option for a specific functional function
- get_Inputs(j=None, i=None, **kw)¶
Get dictionary of component indices for named comps
- Call:
>>> Inputs = opts.get_Inputs(j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- Inputs: {
None
} |dict
dictionary of component indices for named comps
- Inputs: {
- get_KeepRestarts(j=None, i=None, **kw)¶
Get whether or not to keep restart files
- Call:
>>> KeepRestarts = opts.get_KeepRestarts(j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- KeepRestarts: {
False
} |True
whether or not to keep restart files
- KeepRestarts: {
- get_KeepTemplateComponents(j=None, i=None, **kw)¶
Get add to template
component_parameters
- Call:
>>> KeepTemplateComponents = opts.get_KeepTemplateComponents(j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- KeepTemplateComponents: {
False
} |object
add to template
component_parameters
- KeepTemplateComponents: {
- get_KineticDataFile(j=None, i=None, **kw)¶
Get template
kinetic_data
file- Call:
>>> KineticDataFile = opts.get_KineticDataFile(j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- KineticDataFile: {
'inputs/kinetic_data'
} |str
template
kinetic_data
file
- KineticDataFile: {
- get_MapBCFile(j=None, i=None, **kw)¶
Get name of the boundary condition map file
- Call:
>>> MapBCFile = opts.get_MapBCFile(j=None, i=None, **kw)
- Inputs:
- opts: MeshOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- MapBCFile: {
None
} |str
name of the boundary condition map file
- MapBCFile: {
- get_MovingBodyInputFile(j=None, i=None, **kw)¶
Get template
moving_body.input
file- Call:
>>> MovingBodyInputFile = opts.get_MovingBodyInputFile(j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- MovingBodyInputFile: {
'inputs/moving_body.input'
} |str
template
moving_body.input
file
- MovingBodyInputFile: {
- get_RubberDataFile(j=None, i=None, **kw)¶
Get template for
rubber.data
file- Call:
>>> RubberDataFile = opts.get_RubberDataFile(j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- RubberDataFile: {
'inputs/rubber.data'
} |str
template for
rubber.data
file
- RubberDataFile: {
- get_SpeciesThermoDataFile(j=None, i=None, **kw)¶
Get template
species_thermo_data
file- Call:
>>> SpeciesThermoDataFile = opts.get_SpeciesThermoDataFile(j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- SpeciesThermoDataFile: {
'inputs/species_thermo_data'
} |str
template
species_thermo_data
file
- SpeciesThermoDataFile: {
- get_TDataFile(j=None, i=None, **kw)¶
Get template for
tdata
file- Call:
>>> TDataFile = opts.get_TDataFile(j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- TDataFile: {
'inputs/tdata'
} |str
template for
tdata
file
- TDataFile: {
- get_WarmStartProject(j=None, i=None, **kw)¶
Get project name in WarmStart source folder
- Call:
>>> WarmStartProject = opts.get_WarmStartProject(j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- WarmStartProject: {
None
} |str
project name in WarmStart source folder
- WarmStartProject: {
- get_dual_adapt(j=None, i=None, **kw)¶
Get whether to adapt when running FUN3D
dual
- Call:
>>> adapt = opts.get_dual_adapt(j=None, i=None, **kw)
- Inputs:
- opts: DualOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- adapt: {
True
} |False
whether to adapt when running FUN3D
dual
- adapt: {
- get_dual_outer_loop_krylov(j=None, i=None, **kw)¶
Get option to use Krylov method in outer loop
- Call:
>>> outer_loop_krylov = opts.get_dual_outer_loop_krylov(j=None, i=None, **kw)
- Inputs:
- opts: DualOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- outer_loop_krylov: {
True
} |False
option to use Krylov method in outer loop
- outer_loop_krylov: {
- get_dual_rad(j=None, i=None, **kw)¶
Get option to use residual adjoint dot product
- Call:
>>> rad = opts.get_dual_rad(j=None, i=None, **kw)
- Inputs:
- opts: DualOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- rad: {
True
} |False
option to use residual adjoint dot product
- rad: {
- get_grid_format(j=None, **kw)¶
Return the grid format
- get_nIterAdjoint(j=None, i=None, **kw)¶
Get number of iterations for adjoint solver
- Call:
>>> nIterAdjoint = opts.get_nIterAdjoint(j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- nIterAdjoint: {
200
} |int
number of iterations for adjoint solver
- nIterAdjoint: {
- get_namelist_var(sec, key, j=None, **kw)¶
Select a namelist key from a specified section
Roughly, this returns
opts[sec][key]
.
- get_nodet_adapt(j=None, i=None, **kw)¶
Get whether to run
nodet
in grid adaptation mode- Call:
>>> adapt = opts.get_nodet_adapt(j=None, i=None, **kw)
- Inputs:
- opts: NodetOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- adapt: {
None
} |True
|False
whether to run
nodet
in grid adaptation mode
- adapt: {
- get_nodet_animation_freq(j=None, i=None, **kw)¶
Get animation frequency for
nodet
- Call:
>>> animation_freq = opts.get_nodet_animation_freq(j=None, i=None, **kw)
- Inputs:
- opts: NodetOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- animation_freq: {
-1
} |int
animation frequency for
nodet
- animation_freq: {
- get_nodet_plt_tecplot_output(j=None, i=None, **kw)¶
Get option to write
.plt
files- Call:
>>> plt_tecplot_output = opts.get_nodet_plt_tecplot_output(j=None, i=None, **kw)
- Inputs:
- opts: NodetOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- plt_tecplot_output: {
False
} |True
option to write
.plt
files
- plt_tecplot_output: {
- get_project()¶
Return the
project
namelist- Call:
>>> d = opts.get_project(i=None)
- Inputs:
- opts:
Options
Options interface
- opts:
- Outputs:
- d:
pyFun.options.odict
Project namelist
- d:
- Versions:
2015-10-18
@ddalle
: v1.02023-05-13
@ddalle
: v2.0; useOptionsDict
- get_project_rootname(j=None, **kw)¶
Return the project root name
- get_raw_grid()¶
Return the
raw_grid
namelist- Call:
>>> d = opts.get_raw_grid(i=None)
- Inputs:
- opts:
Options
Options interface
- opts:
- Outputs:
- d:
pyFun.options.odict
Grid namelist
- d:
- Versions:
2015-10-18
@ddalle
: v1.02023-05-13
@ddalle
: v2.0; useOptionsDict
- get_refine_loop_initial_complexity(j=None, i=None, **kw)¶
Get starting projected grid complexity
- Call:
>>> initial_complexity = opts.get_refine_loop_initial_complexity(j=None, i=None, **kw)
- Inputs:
- opts: RefineLoopOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- initial_complexity: {
None
} |str
starting projected grid complexity
- initial_complexity: {
- get_refine_loop_ramp_complexity(j=None, i=None, **kw)¶
Get amount to increase complexity between iterations
- Call:
>>> ramp_complexity = opts.get_refine_loop_ramp_complexity(j=None, i=None, **kw)
- Inputs:
- opts: RefineLoopOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- ramp_complexity: {
None
} |str
amount to increase complexity between iterations
- ramp_complexity: {
- get_refine_loop_target_complexity(j=None, i=None, **kw)¶
Get final complexity
- Call:
>>> target_complexity = opts.get_refine_loop_target_complexity(j=None, i=None, **kw)
- Inputs:
- opts: RefineLoopOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- target_complexity: {
None
} |str
final complexity
- target_complexity: {
- init_post()¶
Initialization hook for
Options
- Call:
>>> opts.init_post()
- Inputs:
- opts:
Options
Options interface
- opts:
- Versions:
2022-10-23
@ddalle
: Version 1.0
- select_dual_namelist(j=0, **kw)¶
Sample “dual” namelist at particular conditions
- select_moving_body_input(j=0, **kw)¶
Sample “dual” namelist at particular conditions
- select_namelist(j=0, **kw)¶
Sample namelist at particular conditions
- set_AdaptMethod(v, j=None, mode=None)¶
Get version of REFINE to use for adaptation
- Call:
>>> opts.set_AdaptMethod(AdaptMethod, j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- AdaptMethod: {
'refine/one'
} |'refine/three'
|'refine/two'
version of REFINE to use for adaptation
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_AdaptPhase(v, j=None, mode=None)¶
Get whether or not to adapt mesh at end of phase
- Call:
>>> opts.set_AdaptPhase(AdaptPhase, j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- AdaptPhase: {
True
} |False
whether or not to adapt mesh at end of phase
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_Adaptive(v, j=None, mode=None)¶
Get whether or not to run adaptively
- Call:
>>> opts.set_Adaptive(Adaptive, j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- Adaptive: {
False
} |True
whether or not to run adaptively
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_ConfigInput(comp, inp)¶
Set the input for a particular component
- set_Dual(v, j=None, mode=None)¶
Get whether or not to run all adaptations with adjoint
- Call:
>>> opts.set_Dual(Dual, j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- Dual: {
False
} |True
whether or not to run all adaptations with adjoint
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_DualPhase(v, j=None, mode=None)¶
Get whether or not to run phase in dual mode
- Call:
>>> opts.set_DualPhase(DualPhase, j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- DualPhase: {
True
} |False
whether or not to run phase in dual mode
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_FauxFile(v, j=None, mode=None)¶
Get name of
faux_input
template file- Call:
>>> opts.set_FauxFile(FauxFile, j=None, i=None, **kw)
- Inputs:
- opts: MeshOpts
options interface
- FauxFile: {
None
} |str
name of
faux_input
template file- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_FreezeComponents(v, j=None, mode=None)¶
Get value of option “FreezeComponents”
- Call:
>>> opts.set_FreezeComponents(FreezeComponents, j=None, i=None, **kw)
- Inputs:
- opts: MeshOpts
options interface
- FreezeComponents: {
None
} |object
value of option “FreezeComponents”
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_FreezeFile(v, j=None, mode=None)¶
Get name of file w/ compIDs to freeze during adaptation
- Call:
>>> opts.set_FreezeFile(FreezeFile, j=None, i=None, **kw)
- Inputs:
- opts: MeshOpts
options interface
- FreezeFile: {
None
} |str
name of file w/ compIDs to freeze during adaptation
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_Fun3DNamelist(v, j=None, mode=None)¶
Get template
fun3d.nml
file- Call:
>>> opts.set_Fun3DNamelist(Fun3DNamelist, j=None, i=None, **kw)
- Inputs:
- opts: Options
options interface
- Fun3DNamelist: {
'fun3d.nml'
} |str
template
fun3d.nml
file- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_Inputs(v, j=None, mode=None)¶
Get dictionary of component indices for named comps
- Call:
>>> opts.set_Inputs(Inputs, j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- Inputs: {
None
} |dict
dictionary of component indices for named comps
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_KeepRestarts(v, j=None, mode=None)¶
Get whether or not to keep restart files
- Call:
>>> opts.set_KeepRestarts(KeepRestarts, j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- KeepRestarts: {
False
} |True
whether or not to keep restart files
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_KeepTemplateComponents(v, j=None, mode=None)¶
Get add to template
component_parameters
- Call:
>>> opts.set_KeepTemplateComponents(KeepTemplateComponents, j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- KeepTemplateComponents: {
False
} |object
add to template
component_parameters
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_KineticDataFile(v, j=None, mode=None)¶
Get template
kinetic_data
file- Call:
>>> opts.set_KineticDataFile(KineticDataFile, j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- KineticDataFile: {
'inputs/kinetic_data'
} |str
template
kinetic_data
file- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_MapBCFile(v, j=None, mode=None)¶
Get name of the boundary condition map file
- Call:
>>> opts.set_MapBCFile(MapBCFile, j=None, i=None, **kw)
- Inputs:
- opts: MeshOpts
options interface
- MapBCFile: {
None
} |str
name of the boundary condition map file
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_MovingBodyInputFile(v, j=None, mode=None)¶
Get template
moving_body.input
file- Call:
>>> opts.set_MovingBodyInputFile(MovingBodyInputFile, j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- MovingBodyInputFile: {
'inputs/moving_body.input'
} |str
template
moving_body.input
file- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_RubberDataFile(v, j=None, mode=None)¶
Get template for
rubber.data
file- Call:
>>> opts.set_RubberDataFile(RubberDataFile, j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- RubberDataFile: {
'inputs/rubber.data'
} |str
template for
rubber.data
file- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_SpeciesThermoDataFile(v, j=None, mode=None)¶
Get template
species_thermo_data
file- Call:
>>> opts.set_SpeciesThermoDataFile(SpeciesThermoDataFile, j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- SpeciesThermoDataFile: {
'inputs/species_thermo_data'
} |str
template
species_thermo_data
file- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_TDataFile(v, j=None, mode=None)¶
Get template for
tdata
file- Call:
>>> opts.set_TDataFile(TDataFile, j=None, i=None, **kw)
- Inputs:
- opts: ConfigOpts
options interface
- TDataFile: {
'inputs/tdata'
} |str
template for
tdata
file- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_WarmStartProject(v, j=None, mode=None)¶
Get project name in WarmStart source folder
- Call:
>>> opts.set_WarmStartProject(WarmStartProject, j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- WarmStartProject: {
None
} |str
project name in WarmStart source folder
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_dual_adapt(v, j=None, mode=None)¶
Get whether to adapt when running FUN3D
dual
- Call:
>>> opts.set_dual_adapt(adapt, j=None, i=None, **kw)
- Inputs:
- opts: DualOpts
options interface
- adapt: {
True
} |False
whether to adapt when running FUN3D
dual
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_dual_outer_loop_krylov(v, j=None, mode=None)¶
Get option to use Krylov method in outer loop
- Call:
>>> opts.set_dual_outer_loop_krylov(outer_loop_krylov, j=None, i=None, **kw)
- Inputs:
- opts: DualOpts
options interface
- outer_loop_krylov: {
True
} |False
option to use Krylov method in outer loop
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_dual_rad(v, j=None, mode=None)¶
Get option to use residual adjoint dot product
- Call:
>>> opts.set_dual_rad(rad, j=None, i=None, **kw)
- Inputs:
- opts: DualOpts
options interface
- rad: {
True
} |False
option to use residual adjoint dot product
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_nIterAdjoint(v, j=None, mode=None)¶
Get number of iterations for adjoint solver
- Call:
>>> opts.set_nIterAdjoint(nIterAdjoint, j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- nIterAdjoint: {
200
} |int
number of iterations for adjoint solver
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_namelist_var(sec, key, val, j=None)¶
Set a namelist key for a specified phase or phases
Roughly, this sets
opts["Fun3D"][sec][key]
oropts["Fun3D"][sec][key][i]
equal to val
- set_nodet_adapt(v, j=None, mode=None)¶
Get whether to run
nodet
in grid adaptation mode- Call:
>>> opts.set_nodet_adapt(adapt, j=None, i=None, **kw)
- Inputs:
- opts: NodetOpts
options interface
- adapt: {
None
} |True
|False
whether to run
nodet
in grid adaptation mode- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_nodet_animation_freq(v, j=None, mode=None)¶
Get animation frequency for
nodet
- Call:
>>> opts.set_nodet_animation_freq(animation_freq, j=None, i=None, **kw)
- Inputs:
- opts: NodetOpts
options interface
- animation_freq: {
-1
} |int
animation frequency for
nodet
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_nodet_plt_tecplot_output(v, j=None, mode=None)¶
Get option to write
.plt
files- Call:
>>> opts.set_nodet_plt_tecplot_output(plt_tecplot_output, j=None, i=None, **kw)
- Inputs:
- opts: NodetOpts
options interface
- plt_tecplot_output: {
False
} |True
option to write
.plt
files- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_refine_loop_initial_complexity(v, j=None, mode=None)¶
Get starting projected grid complexity
- Call:
>>> opts.set_refine_loop_initial_complexity(initial_complexity, j=None, i=None, **kw)
- Inputs:
- opts: RefineLoopOpts
options interface
- initial_complexity: {
None
} |str
starting projected grid complexity
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_refine_loop_ramp_complexity(v, j=None, mode=None)¶
Get amount to increase complexity between iterations
- Call:
>>> opts.set_refine_loop_ramp_complexity(ramp_complexity, j=None, i=None, **kw)
- Inputs:
- opts: RefineLoopOpts
options interface
- ramp_complexity: {
None
} |str
amount to increase complexity between iterations
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_refine_loop_target_complexity(v, j=None, mode=None)¶
Get final complexity
- Call:
>>> opts.set_refine_loop_target_complexity(target_complexity, j=None, i=None, **kw)
- Inputs:
- opts: RefineLoopOpts
options interface
- target_complexity: {
None
} |str
final complexity
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
cape.pyfun.options.archiveopts
cape.pyfun.options.configopts
: FUn3D surface config optscape.pyfun.options.fun3dnml
: FUN3D namelist optionscape.pyfun.options.runctlopts
: FUN3D run control optionscape.pyfun.options.util
: Utilities for pyFun options modulecape.pyfun.options.meshopts
cape.pyfun.options.databookopts