Struct dzahui::solvers::fem::stokes_solver::StokesParams2DBuilder
source · pub struct StokesParams2DBuilder {
boundary_conditions: Option<Vec<[f64; 2]>>,
hydrostatic_pressure: Option<f64>,
force_function: Option<Box<dyn Fn([f64; 2]) -> [f64; 2]>>,
rho: Option<f64>,
nu: Option<f64>,
}
Expand description
General Information
Builder for stokes params in 2D. Equation not implemented
Fields
boundary_condtions
- conditions on 2D boundaryhydrostatic_pressure
- hydrostatic pressureforce_function
- force applied on the fluidrho
- densitynu
- viscosity
Fields§
§boundary_conditions: Option<Vec<[f64; 2]>>
§hydrostatic_pressure: Option<f64>
§force_function: Option<Box<dyn Fn([f64; 2]) -> [f64; 2]>>
§rho: Option<f64>
§nu: Option<f64>
Implementations§
source§impl StokesParams2DBuilder
impl StokesParams2DBuilder
sourcepub fn boundary_conditions(self, boundary_conditions: Vec<[f64; 2]>) -> Self
pub fn boundary_conditions(self, boundary_conditions: Vec<[f64; 2]>) -> Self
Set boundary conditions
sourcepub fn kinematic_viscosity(self, viscosity_value: f64) -> Self
pub fn kinematic_viscosity(self, viscosity_value: f64) -> Self
Set nu
sourcepub fn force_function(self, func: Box<dyn Fn([f64; 2]) -> [f64; 2]>) -> Self
pub fn force_function(self, func: Box<dyn Fn([f64; 2]) -> [f64; 2]>) -> Self
Set force function
sourcepub fn build(self) -> StokesParams2D
pub fn build(self) -> StokesParams2D
Build params
Trait Implementations§
source§impl Default for StokesParams2DBuilder
impl Default for StokesParams2DBuilder
source§fn default() -> StokesParams2DBuilder
fn default() -> StokesParams2DBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for StokesParams2DBuilder
impl !Send for StokesParams2DBuilder
impl !Sync for StokesParams2DBuilder
impl Unpin for StokesParams2DBuilder
impl !UnwindSafe for StokesParams2DBuilder
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.