Struct dzahui::solvers::fem::stokes_solver::StokesParams1DBuilder
source · pub struct StokesParams1DBuilder {
hydrostatic_pressure: Option<f64>,
rho: Option<f64>,
force_function: Option<Box<dyn Fn(f64) -> f64>>,
}
Expand description
General Information
Builder for stokes params in 1D
Fields
hydrostatic_pressure
- hydrostatic pressurerho
- densityforce_function
- force applied on the fluid
Fields§
§hydrostatic_pressure: Option<f64>
§rho: Option<f64>
§force_function: Option<Box<dyn Fn(f64) -> f64>>
Implementations§
source§impl StokesParams1DBuilder
impl StokesParams1DBuilder
sourcepub fn hydrostatic_pressure(self, pressure_value: f64) -> Self
pub fn hydrostatic_pressure(self, pressure_value: f64) -> Self
Set pressure
sourcepub fn build(self) -> StokesParams1D
pub fn build(self) -> StokesParams1D
Build StokesParams1D
Trait Implementations§
source§impl Default for StokesParams1DBuilder
impl Default for StokesParams1DBuilder
source§fn default() -> StokesParams1DBuilder
fn default() -> StokesParams1DBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for StokesParams1DBuilder
impl !Send for StokesParams1DBuilder
impl !Sync for StokesParams1DBuilder
impl Unpin for StokesParams1DBuilder
impl !UnwindSafe for StokesParams1DBuilder
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()
.