cape.cfdx.options.meshopts
: Basic options for mesh settings¶
This module provides the class MeshOpts
, which reads the
settings in the "Mesh"
section of the main CAPE control file.
- class cape.cfdx.options.meshopts.MeshOpts(*args, **kw)¶
Dictionary-based interface for Mesh section
- Versions:
2023-03-16
@ddalle
: v1.0
- add_MeshFile(val, **kw)¶
Get original mesh file name(s)
- Call:
>>> opts.add_MeshFile(MeshFile, **kw)
- Inputs:
- opts: MeshOpts
options interface
- MeshFile: {
None
} |str
original mesh file name(s)
- 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
- add_TriFile(val, **kw)¶
Get original surface triangulation file(s)
- Call:
>>> opts.add_TriFile(TriFile, **kw)
- Inputs:
- opts: MeshOpts
options interface
- TriFile: {
None
} |str
original surface triangulation file(s)
- 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
- get_MeshFile(j=None, i=None, **kw)¶
Get original mesh file name(s)
- Call:
>>> MeshFile = opts.get_MeshFile(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:
- MeshFile: {
None
} |str
original mesh file name(s)
- MeshFile: {
- get_TriFile(j=None, i=None, **kw)¶
Get original surface triangulation file(s)
- Call:
>>> TriFile = opts.get_TriFile(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:
- TriFile: {
None
} |str
original surface triangulation file(s)
- TriFile: {
- set_MeshFile(v, j=None, mode=None)¶
Get original mesh file name(s)
- Call:
>>> opts.set_MeshFile(MeshFile, j=None, i=None, **kw)
- Inputs:
- opts: MeshOpts
options interface
- MeshFile: {
None
} |str
original mesh file name(s)
- 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_TriFile(v, j=None, mode=None)¶
Get original surface triangulation file(s)
- Call:
>>> opts.set_TriFile(TriFile, j=None, i=None, **kw)
- Inputs:
- opts: MeshOpts
options interface
- TriFile: {
None
} |str
original surface triangulation file(s)
- 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