Required
d| Type: | dict |
| Description: | Dictionary with the JSON data. |
class Domain(abc.ABC):
def __init__(self): ...np.ndarray)-Domain bounding box.DomainBounds)-Get the bounds of this domain.CoordinateSystem)-Get the coordinate system of the domain.int)-Number of dimensions.def from_json_data(d: dict) -> Domain: ...| Type: | dict |
| Description: | Dictionary with the JSON data. |
def from_material(m: typing.Any) -> Domain: ...| Type: | typing.Any |
| Description: | The material model. |
def from_volume_model(model: volume._VolumeBase) -> Domain: ...| Type: | volume._VolumeBase |
| Description: | The volumetric model from which to create the domain. |
def from_xarray(
d: xr.Dataset | xr.DataArray,
) -> dim2.BoxDomain | dim3.BoxDomain: ...| Type: | xr.Dataset | xr.DataArray |
| Description: | The xarray Dataset or DataArray. |
def load(filename: pathlib.Path) -> Domain: ...| Type: | pathlib.Path |
| Description: | File from which to load. |
def dim_enum(self) -> Dim: ...def estimate_max_travel_distance_in_m(self) -> float: ...def is_point_inside_domain(self) -> bool: ...def plot(self) -> None: ...def write(self, filename: pathlib.Path) -> None: ...| Type: | pathlib.Path |
| Description: | Filename to write it to. |
class DomainBounds(builtins.object):
def __init__(
self,
hc: dict[str, tuple[float, float]],
vc: dict[str, tuple[float, float]],
) -> None: ...| Type: | dict[str, tuple[float, float]] |
| Description: | The horizontal coordinates ({dim_name: (lower_bound, upper_bound)}). |
| Type: | dict[str, tuple[float, float]] |
| Description: | The vertical coordinate ({dim_name: (lower_bound, upper_bound)}). |
list[str])-Get all the coordinate names.xr.DataArray)-Get all the bounds as an xarray dataarray.int)-The dimension of the domain.xr.DataArray)-Get the horizontal bounds as an xarray DataArray.list[str])-Get the horizontal coordinate names.list[tuple[float, float]])-A list of domain bounds sorted by their coordinate name.tuple[float, float])-Get the bounds of the vertical coordinate.str)-Get the vertical coordinate name.def as_dict(self) -> dict[str, tuple[float, float]]: ...