Parameters
The following is an (incomplete) overview of the parameters available when using bamps
.
Grid parameters
These parameters control the (initial) grid structure.
- grid
-
Grid type, either
cubedball
orcubedsphere
.
Default:?
Symmetries
- grid.cartoon
-
Whether to use cartoon mode, suppressing one or more dimensions. The value indicates the remaining dimensions, e.g.
xz
sets up a 2d run evolving the xz plane.
Default:?
- grid.reflect
-
Sets reflection symmetry along the given axis.
Default:?
Structure and Resolution
- grid.n.<x y z>
-
Sets the number of collocations points per grid in the specified direction. This can be set with combined directions, e.g.
grid.n.yz
orgrid.n.xyz
.
Default:?
- grid.cube.max
-
Sets the extent of the central cube, i.e. a value of 2 results in a cube of sidelength 4 from -2 to 2 in all dimensions.
Default:?
- grid.cubesphere.max.x
-
Sets the maximum radius of the transitional patches.
Default:?
- grid.sphere.max.x
-
Sets the maximum radius of the spherical patches, i.e. the maximum radius of the entire domain.
Default:?
- grid.sub.xyz
-
Misnamed, should be called
grid.sub.yz
. Sets the number of angular subdivisions in each patch. For the central cube this is applied in all directions.
Default:?
- grid.cubesphere.sub.x
-
Sets the number of radial subdivisions for the transitional patches.
Default:?
- grid.sphere.sub.x
-
Sets the number of radial subdivisions for the spherical patches.
Default:?
AMR
- grid.amr
-
Activates AMR if set to
yes
.
Default:?
- grid.amr.evolve
-
Activates AMR during evolution if set to
yes
. Otherwise AMR is only applied to initial data.
Default:?
- grid.amr.coarsen
-
Activates coarsening if set to
yes
. Otherwise the AMR will only refine, never coarsen grids.
Default:?
- grid.amr.hlmax
-
Maximum refinement level for h-refinement. Unrefined grids count as level 0.
Default:?
- grid.amr.every
-
Sets interval for AMR, in timesteps.
Default:1
- grid.amr.initialdata
-
Possible values:
-
interpolate
: Initial data will be projected onto the initial grids only once. -
recompute
: Initial data will be reprojected onto the grids after each refinement step until refinement criteria are met.
Default:interpolate
-
- grid.amr.indicator
-
Sets the defaul indicator function to be used for all modules that don’t specify their own. Possible values:
-
error
-
smoothness
-
schedule
Default:?
-
- grid.amr.indicator.<module name>
-
Sets an AMR indicator function for a specific module, overriding
grid.amr.indicator
.
No Default. - grid.amr.indicator.variables
-
Sets which variables are analyzed by the refinement indicator. Can be set to u.xxx and ana.xxx variables.
No Default. - grid.amr.indicator.max
-
Sets the target upper bound for the indicator function. If the function returns a higher value, refinement is triggered.
Default:?
- grid.amr.indicator.min
-
Sets the target lower bound for the indicator function. If the function returns a lower value, coarsening is allowed.
Default:?
- grid.amr.indicator.smoothness.eps
-
Specific to the
smoothness
refinement indicator. A small number used in a regularization term.
Default:?
- grid.error.mode
-
Specific to the
error
refinement indicator. Possible values (mutiple are possible):-
normalize
: Sets thenormalize
flag in the indicator function. -
smooth
: Sets thesmooth
flag in the indicator function.
Default:?
-