Required
layered_model| Type: | layered_model.LayeredModel |
| Description: | The layered model. |
def construct_interlayer_policies(
layered_model: layered_model.LayeredModel,
thickness_threshold: float,
n_dim: int,
mesh_resolution: MeshResolution,
coarsening_policy: InterlayerCoarseningPolicy = InterlayerDoubling(
n_layers="auto"
),
) -> list[InterlayerCoarseningPolicy]: ...| Type: | layered_model.LayeredModel |
| Description: | The layered model. |
| Type: | float |
| Description: | The minimum thickness above which coarsening is allowed. Should be expressed as a ratio of the minimum thickness to the maximum edge length. |
| Type: | int |
| Description: | The dimension of the layered model. |
| Type: | MeshResolution |
| Description: | The resolution of the mesh. |
| Type: | InterlayerCoarseningPolicy |
| Default value: | InterlayerDoubling(n_layers='auto') |
| Description: | Which coarsening policy to introduce within layers that are thick enough. |
def crossing_layer_allowed(p: IntralayerCoarseningPolicy) -> bool: ...| Type: | IntralayerCoarseningPolicy |
| Description: | A layer's coarsening policy. |
booldef n_elm_dict(
n_elm: list[int],
cs: CoordinateSystem,
bounds: dict[str, tuple[float, float]],
) -> dict[str, int]: ...| Type: | list[int] |
| Description: | List of elements in the x, [y] direction. |
| Type: | CoordinateSystem |
| Description: | The coordinate system. |
| Type: | dict[str, tuple[float, float]] |
| Description: | The coordinate bounds of the layer. |
dict[str, int]SphericalChunkDomain.SphericalChunkDomain, simply return the mesh
blocks as they were passed in.def rotate_cubed_sphere_chunk(
domain_or_euler_angles: domain.Domain | tuple[float, float, float],
mb: MeshBlock,
) -> MeshBlock: ...| Type: | domain.Domain | tuple[float, float, float] |
| Description: | The domain of the cubed sphere, or a set of explicit euler angles to rotate by. If euler angles, they should be in degrees and describe an extrinsic rotation around the z->y->z axes, respectively. |
| Type: | MeshBlock |
| Description: | The mesh block. |
MeshBlockdef solve_interlayer_coarsening(
nh: list[tuple[int, ...]],
policies: list[InterlayerCoarseningPolicy] | None = None,
layer_modulo_constraint: int = 1,
bottom_layer_modulo_constraint: int = 1,
) -> list[list[int]]: ...| Type: | list[tuple[int, ...]] |
| Description: | The minimum number of elements in each horizontal dimension, for each layer. |
| Type: | list[InterlayerCoarseningPolicy] | None |
| Default value: | None |
| Description: | A list of interlayer coarsening policies. Should either be equal to the number of interfaces, or None, in which a constant policy will be applied to each interface. |
| Type: | int |
| Default value: | 1 |
| Description: | Ensure that all layers include elements along each dimension that are multiples of this number. |
| Type: | int |
| Default value: | 1 |
| Description: | Ensure that the bottom layer (i.e. the last entry in nh) is a multiple of this number. |
list[list[int]]