Required
job| Type: | SalvusJobArray |
| Description: | The job array of the smoothing jobs |
def get_smooth_model(
job: SalvusJobArray,
model: str | pathlib.Path | UnstructuredMesh | None = None,
delete_job: bool = True,
) -> UnstructuredMesh: ...| Type: | SalvusJobArray |
| Description: | The job array of the smoothing jobs |
| Type: | str | pathlib.Path | UnstructuredMesh | None |
| Default value: | None |
| Description: | The raw input model. This is optional and only to avoid additional I/O. |
| Type: | bool |
| Default value: | True |
| Description: | Flag to determine if job should be deleted |
UnstructuredMeshdef run(
site_name: str,
ranks_per_job: int | None = None,
wall_time_in_seconds_per_job: salvus._core.types.float_ | None = None,
model: str | pathlib.Path | UnstructuredMesh,
smoothing_config: dict[str, _Base | str],
courant_number: float | None = None,
time_step_in_seconds: float | None = None,
poll_interval_in_seconds: float | None = None,
verbosity: int = 1,
) -> UnstructuredMesh: ...| Type: | str |
| Description: | The site to run on. |
| Type: | int | None |
| Default value: | None |
| Description: | The number of ranks for each individual simulation. Defaults to the site's configuration value. |
| Type: | salvus._core.types.float_ | None |
| Default value: | None |
| Description: | The wall time in seconds per job if the site requires one. |
| Type: | str | pathlib.Path | UnstructuredMesh |
| Description: | The raw model, unsmoothed model. |
| Type: | dict[str, _Base | str] |
| Description: | Smoothing configuration for each smoothing field. Must be a dictionary with the keys being the to-be-smoothed fields and the values smoothing configurations for each field or, alternatively, (remote) file name of precomputed diffusion models. |
| Type: | float | None |
| Default value: | None |
| Description: | Courant number for auto-time-step detection. |
| Type: | float | None |
| Default value: | None |
| Description: | Time step for diffusion equation. |
| Type: | float | None |
| Default value: | None |
| Description: | If given, the site will be queried with this interval. Defaults to the site's default. |
| Type: | int |
| Default value: | 1 |
| Description: | The verbosity level. |
UnstructuredMeshdef run_async(
site_name: str,
ranks_per_job: int | None = None,
wall_time_in_seconds_per_job: salvus._core.types.float_ | None = None,
model: str | pathlib.Path | UnstructuredMesh,
smoothing_config: dict[str, _Base | str],
courant_number: float | None = None,
time_step_in_seconds: float | None = None,
verbosity: int = 1,
) -> SalvusJobArray: ...| Type: | str |
| Description: | The site to run on. |
| Type: | int | None |
| Default value: | None |
| Description: | The number of ranks for each individual simulation. Defaults to the site's configuration value. |
| Type: | salvus._core.types.float_ | None |
| Default value: | None |
| Description: | The wall time in seconds per job if the site requires one. |
| Type: | str | pathlib.Path | UnstructuredMesh |
| Description: | The raw model, unsmoothed model. |
| Type: | dict[str, _Base | str] |
| Description: | Smoothing configuration for each smoothing field. Must be a dictionary with the keys being the to-be-smoothed fields and the values smoothing configurations for each field or, alternatively, (remote) file name of precomputed diffusion models. |
| Type: | float | None |
| Default value: | None |
| Description: | Courant number for auto-time-step detection. |
| Type: | float | None |
| Default value: | None |
| Description: | Time step for diffusion equation. |
| Type: | int |
| Default value: | 1 |
| Description: | The verbosity level. |
class AnisotropicConstant(
salvus.flow.utils.deep_setters._DeepSetter, salvus.opt.smoothing._Base
):
def __init__(self, smoothing_lengths_in_meters: list[float]): ...| Type: | list[float] |
| Description: | Anisotropic smoothing length in meters. Depending on the reference frame of the input mesh this is either X, Y, Z or r, theta, phi. Example: [1.0, 2.0] |
def apply(self, d: dict | _DeepSetter) -> None: ...| Type: | dict | _DeepSetter |
| Description: | The dictionary to set. |
def copy(self) -> _DeepSetter: ...def get_dictionary(self) -> dict: ...def get_diffusion_model(
self, mesh: str | pathlib.Path | UnstructuredMesh
) -> UnstructuredMesh: ...| Type: | str | pathlib.Path | UnstructuredMesh |
| Description: | Mesh file. |
def validate(self) -> None: ...class AnisotropicModelDependent(
salvus.flow.utils.deep_setters._DeepSetter, salvus.opt.smoothing._Base
):
def __init__(
self,
reference_model: str,
reference_frequency_in_hertz: float,
reference_velocity: str,
smoothing_lengths_in_wavelengths: list[float],
): ...| Type: | str |
| Description: | Reference model to extract the reference velocity from. Example: mesh.h5 |
| Type: | float |
| Description: | Reference frequency to compute the wave length in Hz. Example: 1.0 |
| Type: | str |
| Description: | Field name of the reference velocity to compute the wave length in Hz. Example: VP |
| Type: | list[float] |
| Description: | Anisotropic smoothing length in wavelengths. Depending on the reference frame of the input mesh this is either X, Y, Z or r, theta, phi. Example: [1.0, 2.0] |
def apply(self, d: dict | _DeepSetter) -> None: ...| Type: | dict | _DeepSetter |
| Description: | The dictionary to set. |
def copy(self) -> _DeepSetter: ...def get_dictionary(self) -> dict: ...def get_diffusion_model(
self, mesh: str | pathlib.Path | UnstructuredMesh
) -> UnstructuredMesh: ...| Type: | str | pathlib.Path | UnstructuredMesh |
| Description: | Mesh file. |
def validate(self) -> None: ...class AnisotropicSpaceDependent(
salvus.flow.utils.deep_setters._DeepSetter, salvus.opt.smoothing._Base
):
def __init__(self, model: str, fields: list[str]): ...| Type: | str |
| Description: | Model that contains the smoothing field. Example: mesh.h5 |
| Type: | list[str] |
| Description: | Field name containing the isotropic smoothing length in meters. Depending on the reference frame of the input mesh this is either X, Y, Z or N, E, Z. Example: ['SmoothX', 'SmoothY', 'SmoothZ'] |
def apply(self, d: dict | _DeepSetter) -> None: ...| Type: | dict | _DeepSetter |
| Description: | The dictionary to set. |
def copy(self) -> _DeepSetter: ...def get_dictionary(self) -> dict: ...def get_diffusion_model(
self, mesh: str | pathlib.Path | UnstructuredMesh
) -> UnstructuredMesh: ...| Type: | str | pathlib.Path | UnstructuredMesh |
| Description: | Mesh file. |
def validate(self) -> None: ...class Custom(
salvus.flow.utils.deep_setters._DeepSetter, salvus.opt.smoothing._Base
):
def __init__(self, diffusion_model: str): ...| Type: | str |
| Description: | Name of the model containing the diffusion coefficients. Example: diffusion.h5 |
def apply(self, d: dict | _DeepSetter) -> None: ...| Type: | dict | _DeepSetter |
| Description: | The dictionary to set. |
def copy(self) -> _DeepSetter: ...def get_dictionary(self) -> dict: ...def get_diffusion_model(
self, mesh: str | pathlib.Path | UnstructuredMesh
) -> UnstructuredMesh: ...| Type: | str | pathlib.Path | UnstructuredMesh |
| Description: | Mesh file. |
def validate(self) -> None: ...class IsotropicConstant(
salvus.flow.utils.deep_setters._DeepSetter, salvus.opt.smoothing._Base
):
def __init__(self, smoothing_length_in_meters: float): ...| Type: | float |
| Description: | Isotropic smoothing length in meters. Example: 1.0 |
def apply(self, d: dict | _DeepSetter) -> None: ...| Type: | dict | _DeepSetter |
| Description: | The dictionary to set. |
def copy(self) -> _DeepSetter: ...def get_dictionary(self) -> dict: ...def get_diffusion_model(
self, mesh: str | pathlib.Path | UnstructuredMesh
) -> UnstructuredMesh: ...| Type: | str | pathlib.Path | UnstructuredMesh |
| Description: | Mesh file. |
def validate(self) -> None: ...class IsotropicModelDependent(
salvus.flow.utils.deep_setters._DeepSetter, salvus.opt.smoothing._Base
):
def __init__(
self,
reference_frequency_in_hertz: float,
reference_velocity: str,
smoothing_length_in_wavelengths: float,
reference_model: typing.Optional[str] = None,
): ...| Type: | float |
| Description: | Reference frequency to compute the wave length in Hz. Example: 1.0 |
| Type: | str |
| Description: | Field name of the reference velocity to compute the wave length in Hz. Example: VP |
| Type: | float |
| Description: | Isotropic smoothing length in wavelengths. Example: 1.0 |
| Type: | typing.Optional[str] |
| Default value: | None |
| Description: | Reference model to extract the reference velocity from. Example: mesh.h5 |
def apply(self, d: dict | _DeepSetter) -> None: ...| Type: | dict | _DeepSetter |
| Description: | The dictionary to set. |
def copy(self) -> _DeepSetter: ...def get_dictionary(self) -> dict: ...def get_diffusion_model(
self, mesh: str | pathlib.Path | UnstructuredMesh
) -> UnstructuredMesh: ...| Type: | str | pathlib.Path | UnstructuredMesh |
| Description: | Mesh file. |
def validate(self) -> None: ...class IsotropicSpaceDependent(
salvus.flow.utils.deep_setters._DeepSetter, salvus.opt.smoothing._Base
):
def __init__(self, model: str, field: str): ...| Type: | str |
| Description: | Model that contains the smoothing field. Example: mesh.h5 |
| Type: | str |
| Description: | Field name containing the isotropic smoothing length in meters. Example: smooth |
def apply(self, d: dict | _DeepSetter) -> None: ...| Type: | dict | _DeepSetter |
| Description: | The dictionary to set. |
def copy(self) -> _DeepSetter: ...def get_dictionary(self) -> dict: ...def get_diffusion_model(
self, mesh: str | pathlib.Path | UnstructuredMesh
) -> UnstructuredMesh: ...| Type: | str | pathlib.Path | UnstructuredMesh |
| Description: | Mesh file. |
def validate(self) -> None: ...