salvus.flow.simple_config.boundary
salvus.flow.simple_config.boundary salvus flow simple_config boundary Various boundary conditions.
Classes
Absorbing
Absorbingclass Absorbing(
salvus.flow.utils.deep_setters._DeepSetter,
salvus.flow.simple_config.boundary._Base,
):
def __init__(
self,
side_sets: list[str],
taper_amplitude: float,
width_in_meters: float,
side_sets_are_axis_aligned: typing.Optional[bool] = None,
): ...The base boundary object.
Apply first order Clayton-Enquist boundary conditions, optionally also with damping sponge layers.
side_setslist[str] — Side sets at which to apply the boundary conditions. Example:['x0', 'x1', 'y1']taper_amplitudefloat — Taper amplitude. As a rule of thumb, a good choice is setting the taper amplitude to the central frequency in Hertz. Example:1.07width_in_metersfloat — Width of the absorbing layers in meters. The longer, the better. 3.5 - 5 wavelengths are typically sufficient. Example:1.06side_sets_are_axis_alignedtyping.Optional[bool] — Allow the solver to make the assumption that side sets are axis aligned. This can lead to much faster absorbing layer attachment. Example:true
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
HomogeneousDirichlet
HomogeneousDirichletclass HomogeneousDirichlet(
salvus.flow.utils.deep_setters._DeepSetter,
salvus.flow.simple_config.boundary._Base,
):
def __init__(
self,
side_sets: list[str],
components: typing.Optional[list[bool]] = None,
): ...The base boundary object.
Homogeneous dirichlet boundary conditions
side_setslist[str] — Side sets at which to apply the boundary conditions. Example:['y0', 'x1']componentstyping.Optional[list[bool]] — Indicator whether Dirichlet condition is applied for this coordinate axis.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
Neumann
Neumannclass Neumann(
salvus.flow.utils.deep_setters._DeepSetter,
salvus.flow.simple_config.boundary._Base,
):
def __init__(self, side_sets: list[str]): ...The base boundary object.
Apply a Neumann boundary condition
side_setslist[str] — Side sets at which to apply the boundary conditions. Example:['y0', 'x1']
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
OceanLoading
OceanLoadingclass OceanLoading(
salvus.flow.utils.deep_setters._DeepSetter,
salvus.flow.simple_config.boundary._Base,
):
def __init__(self, side_sets: list[str]): ...The base boundary object.
Apply an ocean load at the boundary
side_setslist[str] — Side sets at which to apply the boundary conditions. Example:['y0', 'x1']
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
Used in tutorials
- Benchmark: Poisson's equation
- Conical Pitting
- Ground Motion Modelling in Buildings
- Lamb's Problem
- Marmousi Model
- Maximum Amplitude Distributions
- Notched Specimens
- Ocean Loading
- On-the-fly Fourier Transform
- Semi-analytic Test - Acoustic
- Semi-analytic Test - Coupled
- Semi-analytic Test - Elastic
- Ultrasonic Weld Inspection Tutorial