pub struct DiffussionParamsTimeDependentBuilder {
mu: Option<f64>,
b: Option<f64>,
boundary_conditions: Option<[f64; 2]>,
initial_conditions: Option<Vec<f64>>,
}
Expand description
General Information
Builder for diffussion params in 1D with time-dependance
Fields
mu
- Movement termb
- Velocity termboundary_conditions
- Dirichlet conditionsinitial_conditions
- Internal initial conditions
Fields§
§mu: Option<f64>
§b: Option<f64>
§boundary_conditions: Option<[f64; 2]>
§initial_conditions: Option<Vec<f64>>
Implementations§
source§impl DiffussionParamsTimeDependentBuilder
impl DiffussionParamsTimeDependentBuilder
sourcepub fn boundary_conditions(self, left: f64, right: f64) -> Self
pub fn boundary_conditions(self, left: f64, right: f64) -> Self
Set boundary conditions
sourcepub fn initial_conditions<A: IntoIterator<Item = f64>>(
self,
initial_conditions: A
) -> Self
pub fn initial_conditions<A: IntoIterator<Item = f64>>(
self,
initial_conditions: A
) -> Self
Set initial conditions - basic
sourcepub fn initial_conditions_from_function<A: Fn(f64) -> f64, B: AsRef<str>>(
_func: A,
_mesh: B
) -> Self
pub fn initial_conditions_from_function<A: Fn(f64) -> f64, B: AsRef<str>>(
_func: A,
_mesh: B
) -> Self
Use function
sourcepub fn build(self) -> DiffussionParamsTimeDependent
pub fn build(self) -> DiffussionParamsTimeDependent
Build DiffussionParams
Trait Implementations§
source§impl Default for DiffussionParamsTimeDependentBuilder
impl Default for DiffussionParamsTimeDependentBuilder
source§fn default() -> DiffussionParamsTimeDependentBuilder
fn default() -> DiffussionParamsTimeDependentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DiffussionParamsTimeDependentBuilder
impl Send for DiffussionParamsTimeDependentBuilder
impl Sync for DiffussionParamsTimeDependentBuilder
impl Unpin for DiffussionParamsTimeDependentBuilder
impl UnwindSafe for DiffussionParamsTimeDependentBuilder
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()
.