Required
cs| Type: | CoordinateSystem |
| Description: | The coordinate system. |
def canonicalize_coordinates(
cs: CoordinateSystem,
coords: npt.NDArray,
shift_longitude_pi_2: bool = False,
convert_to_colat: bool = False,
) -> npt.NDArray: ...| Type: | CoordinateSystem |
| Description: | The coordinate system. |
| Type: | npt.NDArray |
| Description: | The coordinates. |
| Type: | bool |
| Default value: | False |
| Description: | Subtract pi/2 to the longitude coordinate after conversion to radians. Only relevant for 2-D spherical systems. |
| Type: | bool |
| Default value: | False |
| Description: | Convert latitude values (-90.0 to +90.0 degrees) to colatitude values (0.0 to +180.0 degrees). |
npt.NDArraydef compute_elevation(
elevation: float | _interface.Depth | _interface.Height,
e_bot: float | None,
e_top: float | None,
) -> float | _interface.Depth | _interface.Height: ...| Type: | float | _interface.Depth | _interface.Height |
| Description: | The elevation value to transform. |
| Type: | float | None |
| Description: | The elevation of the bottom of the domain. |
| Type: | float | None |
| Description: | The elevation of the top of the domain. |
float | _interface.Depth | _interface.Heightdef is_full_sphere(
db: _domain.DomainBounds, cs: CoordinateSystem, i_bot: _interface.Interface
) -> bool: ...| Type: | _domain.DomainBounds |
| Description: | The domain bounds. |
| Type: | CoordinateSystem |
| Description: | The coordinate system. |
| Type: | _interface.Interface |
| Description: | The bottom interface (which may signify radius == 0). |
booldef is_full_spherical_shell(
bounds: _domain.DomainBounds | dict[str, tuple[float, float]],
cs: CoordinateSystem,
) -> bool: ...| Type: | _domain.DomainBounds | dict[str, tuple[float, float]] |
| Description: | The domain bounds. |
| Type: | CoordinateSystem |
| Description: | The coordinate system. |
booldef realize_domain(
d: T, t_ref: _interface.Interface, b_ref: _interface.Interface
) -> T: ...| Type: | T |
| Description: | The domain to realize. |
| Type: | _interface.Interface |
| Description: | The reference coordinate of the top interface. |
| Type: | _interface.Interface |
| Description: | The reference coordinate of the bottom interface. |
Tdef realize_interface(
interface: _interface.Interface, bounds: _domain.DomainBounds
) -> _interface.Interface: ...| Type: | _interface.Interface |
| Description: | The interface to realize. |
| Type: | _domain.DomainBounds |
| Description: | The bounds of the realized domain. |
_interface.Interfacedef realize_interfaces(
domain: _domain.Domain, layered_model: _layered_model.LayeredModel
) -> _layered_model.LayeredModel: ...| Type: | _domain.Domain |
| Description: | The domain to realize from. |
| Type: | _layered_model.LayeredModel |
| Description: | The layered model containing the interfaces to realize. |
_layered_model.LayeredModeldef realize_layered_model(
domain: T, layered_model: _layered_model.LayeredModel
) -> tuple[T, _layered_model.LayeredModel]: ...| Type: | T |
| Description: | The domain to realize. |
| Type: | _layered_model.LayeredModel |
| Description: | The layered model to realize. |
tuple[T, _layered_model.LayeredModel]def realize_layered_model_ab(
d: _domain.Domain,
lm: _layered_model.LayeredModel,
mesh_resolution: types.MeshResolution,
oracle_filter: typing.Sequence[filters.OracleFilter],
ab_params: basic_mesh.AbsorbingBoundaryParameters | None,
) -> tuple[
_domain.Domain,
_layered_model.LayeredModel,
list[_pd.realized.RealizedParameter],
list[str],
float,
]: ...| Type: | _domain.Domain |
| Description: | The realized domain. |
| Type: | _layered_model.LayeredModel |
| Description: | The layered model. |
| Type: | types.MeshResolution |
| Description: | The mesh resolution. |
| Type: | typing.Sequence[filters.OracleFilter] |
| Description: | The oracle filtered. |
| Type: | basic_mesh.AbsorbingBoundaryParameters | None |
| Description: | Parameters governing absorbing boundary extrusion. |
tuple[_domain.Domain, _layered_model.LayeredModel, list[_pd.realized.RealizedParameter], list[str], float]v for vertical) to absolute coordinates with proper dimension
names. The will result for, in 2-D Cartesian domains, v being mapped to
y, and depths / heights being transformed to absolute vertical
coordinates using the domain bounds as a reference.v_relative. This is a special dimension name that will be realized later
on in the meshing process, once the discrete boundaries or a layer are
known.def realize_material(
top_interface: _interface.Interface,
material: Material,
bot_interface: _interface.Interface,
domain: _domain.Domain,
) -> Material: ...| Type: | _interface.Interface |
| Description: | The top realized interface of the material's layer. |
| Type: | Material |
| Description: | The material. |
| Type: | _interface.Interface |
| Description: | The bottom realized interface of the material's layer. |
| Type: | _domain.Domain |
| Description: | The realized domain. |