Struct StaggeredFluidOffsets
pub struct StaggeredFluidOffsets {
pub p_space_cell_frac: [f64; 3],
pub p_time_step_frac: f64,
pub vx_space_cell_frac: [f64; 3],
pub vy_space_cell_frac: [f64; 3],
pub vz_space_cell_frac: [f64; 3],
pub v_time_step_frac: f64,
}Expand description
Staggered component offsets in fractions of grid spacing and solver clock ticks (AQ-02).
Fields§
§p_space_cell_frac: [f64; 3]Spatial offset of pressure in grid cells (dx, dy, dz).
p_time_step_frac: f64Temporal offset of pressure in solver timesteps.
vx_space_cell_frac: [f64; 3]Spatial offset of vx in grid cells.
vy_space_cell_frac: [f64; 3]Spatial offset of vy in grid cells.
vz_space_cell_frac: [f64; 3]Spatial offset of vz in grid cells.
v_time_step_frac: f64Temporal offset of velocity components in solver timesteps.
Implementations§
§impl StaggeredFluidOffsets
impl StaggeredFluidOffsets
pub const fn canonical_staggered() -> StaggeredFluidOffsets
pub const fn canonical_staggered() -> StaggeredFluidOffsets
Standard Yee/Virieux acoustic staggered grid: $p$ at $(0,0,0), t=0$; $v_x$ at $(0.5,0,0)$, $v_y$ at $(0,0.5,0)$, $v_z$ at $(0,0,0.5)$ at $t=0.5$.
pub const fn collocated() -> StaggeredFluidOffsets
pub const fn collocated() -> StaggeredFluidOffsets
Already collocated cell-center representation (all offsets zero).
pub fn is_staggered(&self) -> bool
pub fn is_staggered(&self) -> bool
Returns true if any velocity offset differs from the pressure offset.
Trait Implementations§
§impl Clone for StaggeredFluidOffsets
impl Clone for StaggeredFluidOffsets
§fn clone(&self) -> StaggeredFluidOffsets
fn clone(&self) -> StaggeredFluidOffsets
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 StaggeredFluidOffsets
§impl Debug for StaggeredFluidOffsets
impl Debug for StaggeredFluidOffsets
§impl PartialEq for StaggeredFluidOffsets
impl PartialEq for StaggeredFluidOffsets
impl StructuralPartialEq for StaggeredFluidOffsets
Auto Trait Implementations§
impl Freeze for StaggeredFluidOffsets
impl RefUnwindSafe for StaggeredFluidOffsets
impl Send for StaggeredFluidOffsets
impl Sync for StaggeredFluidOffsets
impl Unpin for StaggeredFluidOffsets
impl UnsafeUnpin for StaggeredFluidOffsets
impl UnwindSafe for StaggeredFluidOffsets
Blanket Implementations§
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