cape.pyover.options.gridSystem
: OVERFLOW grid namelist options¶
This module provides a class to alter namelist settings for each grid in an
Overflow namelist. This modifies the repeated sections (such as GRDNAM
,
NITERS
, METPRM
, TIMACU
, etc.) in the overflow.inp
input file.
Users can use the "ALL"
dictionary of settings to apply settings to every
grid in the system. Any other dictionary in the top level applies to a grid by
the name of that key. An example follows.
"Grids": { "ALL": { "TIMACU": { "ITIME": 3, "CFLMIN": [0.01, 0.025, 0.05, 0.05], "CFLMAX": [0.25, 0.50, 1.00, 1.00] } }, "Fuselage": { "TIMACU": { "CFLMAX": [0.2, 0.4, 0.9, 1.0] } } }
This example sets the CFL number for each grid (and also sets the ITIME
setting to 3). Then it finds the grid called "Fuselage"
and changes the
max CFL number to slightly lower values for each phase. The list
input tells pyOver to set the max CFL number to 0.25
for run.01.inp
,
0.50
for run.02.inp
, etc. If there are more phases than entries in the
list
, the last value is repeated as necessary.
For other namelist settings that do not refer to grids, see
pyOver.options.overnml.OverNml
.
- class cape.pyover.options.gridsysopts.GridSystemNmlOpts(*args, **kw)¶
Interface to OVERFLOW namelist grid system options
- get_ALL(j=None, **kw)¶
Return the
ALL
namelist of settings applied to all grids- Call:
>>> d = opts.get_ALL(i=None)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
orNone
Phase number
- opts:
- Outputs:
- d:
pyOver.options.odict
ALL namelist
- d:
- Versions:
2016-02-01
@ddalle
: v1.0
- get_GridByName(grdnam, j=None, **kw)¶
Return a dictionary of options for a specific grid