Struct AcousticFluidFdtdGpuParams
pub struct AcousticFluidFdtdGpuParams {
pub dims: [u32; 3],
pub spacing_m: [f32; 3],
pub dt_s: f32,
pub density_kg_m3: f32,
pub bulk_modulus_pa: f32,
pub damping_per_s: f32,
pub boundary: AcousticFluidGpuBoundary,
}Expand description
Parameters for a 3D staggered fluid FDTD leapfrog step (ACOUSTIC_FLUID_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: f32Adiabatic bulk modulus $K > 0$ in $\text{Pa}$.
damping_per_s: f32Linear damping rate $\gamma \ge 0$ in $\text{s}^{-1}$.
boundary: AcousticFluidGpuBoundaryBoundary condition mode.
Implementations§
§impl AcousticFluidFdtdGpuParams
impl AcousticFluidFdtdGpuParams
pub fn validate(&self) -> Result<f32, ForgeError>
pub fn validate(&self) -> Result<f32, ForgeError>
Validate dimensions, medium positivity, and the 3D 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 AcousticFluidFdtdGpuParams
impl Clone for AcousticFluidFdtdGpuParams
§fn clone(&self) -> AcousticFluidFdtdGpuParams
fn clone(&self) -> AcousticFluidFdtdGpuParams
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 AcousticFluidFdtdGpuParams
§impl Debug for AcousticFluidFdtdGpuParams
impl Debug for AcousticFluidFdtdGpuParams
§impl PartialEq for AcousticFluidFdtdGpuParams
impl PartialEq for AcousticFluidFdtdGpuParams
impl StructuralPartialEq for AcousticFluidFdtdGpuParams
Auto Trait Implementations§
impl Freeze for AcousticFluidFdtdGpuParams
impl RefUnwindSafe for AcousticFluidFdtdGpuParams
impl Send for AcousticFluidFdtdGpuParams
impl Sync for AcousticFluidFdtdGpuParams
impl Unpin for AcousticFluidFdtdGpuParams
impl UnsafeUnpin for AcousticFluidFdtdGpuParams
impl UnwindSafe for AcousticFluidFdtdGpuParams
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