Struct ElasticVirieuxConfig
pub struct ElasticVirieuxConfig {
pub dims: [usize; 3],
pub spacing_m: [f64; 3],
pub dt_s: f64,
pub medium: ElasticMedium,
pub boundary: ElasticBoundaryCondition,
}Expand description
Configuration for the 3D Virieux staggered-grid elastic velocity-stress solver.
Fields§
§dims: [usize; 3]Grid dimensions (nx, ny, nz).
spacing_m: [f64; 3]Grid spacing (dx, dy, dz) in metres.
dt_s: f64Timestep $\Delta t$ in seconds.
medium: ElasticMediumIsotropic elastic medium parameters.
boundary: ElasticBoundaryConditionBoundary condition kind.
Implementations§
§impl ElasticVirieuxConfig
impl ElasticVirieuxConfig
pub fn validate(&self) -> Result<f64, NumericalError>
pub fn validate(&self) -> Result<f64, NumericalError>
Validate grid parameters and the 3D P-wave Courant stability condition: $\Delta t , c_P \sqrt{\Delta x^{-2} + \Delta y^{-2} + \Delta z^{-2}} \le 1$.
pub const fn cell_count(&self) -> usize
pub const fn cell_count(&self) -> usize
Total number of grid cells nx * ny * nz.
Trait Implementations§
§impl Clone for ElasticVirieuxConfig
impl Clone for ElasticVirieuxConfig
§fn clone(&self) -> ElasticVirieuxConfig
fn clone(&self) -> ElasticVirieuxConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ElasticVirieuxConfig
§impl Debug for ElasticVirieuxConfig
impl Debug for ElasticVirieuxConfig
§impl PartialEq for ElasticVirieuxConfig
impl PartialEq for ElasticVirieuxConfig
impl StructuralPartialEq for ElasticVirieuxConfig
Auto Trait Implementations§
impl Freeze for ElasticVirieuxConfig
impl RefUnwindSafe for ElasticVirieuxConfig
impl Send for ElasticVirieuxConfig
impl Sync for ElasticVirieuxConfig
impl Unpin for ElasticVirieuxConfig
impl UnsafeUnpin for ElasticVirieuxConfig
impl UnwindSafe for ElasticVirieuxConfig
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more