pub struct LbmConfig {
pub nx: usize,
pub ny: usize,
pub nz: usize,
pub tau: f64,
pub rho0: f64,
pub force_x: f64,
pub force_y: f64,
pub force_z: f64,
}Expand description
Configuration for an LBM simulation.
Fields§
§nx: usizeGrid size in X direction (cells).
ny: usizeGrid size in Y direction (cells).
nz: usizeGrid size in Z direction (cells).
tau: f64BGK relaxation time τ (lattice units, τ > 0.5 for stability).
rho0: f64Initial density (ρ₀, lattice units, default 1.0).
force_x: f64Body force in X (lattice units per step²).
force_y: f64Body force in Y.
force_z: f64Body force in Z.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LbmConfig
impl RefUnwindSafe for LbmConfig
impl Send for LbmConfig
impl Sync for LbmConfig
impl Unpin for LbmConfig
impl UnsafeUnpin for LbmConfig
impl UnwindSafe for LbmConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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