Struct ElasticVirieuxFdtdGpuParams
pub struct ElasticVirieuxFdtdGpuParams {
pub dims: [u32; 3],
pub spacing_m: [f32; 3],
pub dt_s: f32,
pub density_kg_m3: f32,
pub bulk_modulus_pa: f32,
pub shear_modulus_pa: f32,
pub boundary: ElasticVirieuxGpuBoundary,
}Expand description
Parameters for a 3D Virieux staggered elastic velocity-stress step (ELASTIC_VIRIEUX_FDTD_WGSL).
Fields§
§dims: [u32; 3]Grid dimensions [nx, ny, nz].
spacing_m: [f32; 3]Grid spacing [dx, dy, dz] in metres.
dt_s: f32Timestep dt in seconds.
density_kg_m3: f32Mass density $\rho > 0$ in $\text{kg}\cdot\text{m}^{-3}$.
bulk_modulus_pa: f32Bulk modulus $K > 0$ in $\text{Pa}$.
shear_modulus_pa: f32Shear modulus $\mu \ge 0$ in $\text{Pa}$.
boundary: ElasticVirieuxGpuBoundaryBoundary condition mode.
Implementations§
§impl ElasticVirieuxFdtdGpuParams
impl ElasticVirieuxFdtdGpuParams
pub fn lame_lambda_pa(&self) -> f32
pub fn lame_lambda_pa(&self) -> f32
First Lamé parameter $\lambda = K - \frac{2}{3}\mu$ in Pa.
pub fn p_wave_speed_m_s(&self) -> f32
pub fn p_wave_speed_m_s(&self) -> f32
Compressional P-wave speed $c_P = \sqrt{(K + \frac{4}{3}\mu)/\rho}$ in m/s.
pub fn validate(&self) -> Result<f32, ForgeError>
pub fn validate(&self) -> Result<f32, ForgeError>
Validate dimensions, medium positivity, and the 3D P-wave Courant stability bound.
pub fn cell_count(&self) -> usize
pub fn cell_count(&self) -> usize
Total cell count nx * ny * nz.
Trait Implementations§
§impl Clone for ElasticVirieuxFdtdGpuParams
impl Clone for ElasticVirieuxFdtdGpuParams
§fn clone(&self) -> ElasticVirieuxFdtdGpuParams
fn clone(&self) -> ElasticVirieuxFdtdGpuParams
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 ElasticVirieuxFdtdGpuParams
§impl Debug for ElasticVirieuxFdtdGpuParams
impl Debug for ElasticVirieuxFdtdGpuParams
§impl PartialEq for ElasticVirieuxFdtdGpuParams
impl PartialEq for ElasticVirieuxFdtdGpuParams
impl StructuralPartialEq for ElasticVirieuxFdtdGpuParams
Auto Trait Implementations§
impl Freeze for ElasticVirieuxFdtdGpuParams
impl RefUnwindSafe for ElasticVirieuxFdtdGpuParams
impl Send for ElasticVirieuxFdtdGpuParams
impl Sync for ElasticVirieuxFdtdGpuParams
impl Unpin for ElasticVirieuxFdtdGpuParams
impl UnsafeUnpin for ElasticVirieuxFdtdGpuParams
impl UnwindSafe for ElasticVirieuxFdtdGpuParams
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