Keeps track of the initial arguments passed to an objects and can later
on serialize them to JSON document.
It will only consider whatever is passed in the init.
Parameters controlling the use of linear solids in viscous simulations.
The frequency band for fitting the linear solid approximation can
either be provided through this interface, in which case a constant
Q factor model will be constructed internally.
This reference frequency is the frequency at which any acoustic or
elastic parameters provided in the model are defined. The minimum and
maximum frequency are optional. If provided, they define the frequency
band over which Q should be considered constant. If these parameters
are not supplied here, they will be derived from the mesh frequency.
Alternatively, the viscous parameters can be provided externally by
attaching them to the mesh directly or using the linear solid models
directly from the built-in 1-D models. Both options are mutually
exclusive to avoid ambiguities.
SIGNATURE
class LinearSolids(salvus.flow.utils.serialization_helpers.SerializationMixin):
def __init__(
self,
reference_frequency: salvus._core.types.float_,
min_frequency: (
salvus._core.types.float_
| typing.Callable[[UnstructuredMesh], salvus._core.types.float_]
| None
) = None,
max_frequency: (
salvus._core.types.float_
| typing.Callable[[UnstructuredMesh], salvus._core.types.float_]
| None
) = None,
): ...