pub struct UncertainMarchConfigBuilder<R: CfdScalar + ProbabilisticType> { /* private fields */ }Expand description
Fluent builder for an UncertainMarchConfig. Required: solver, inflow_zone,
sensor_stream, march_for. The seed defaults to Seed::Rest.
Implementations§
Source§impl<R: CfdScalar + ProbabilisticType> UncertainMarchConfigBuilder<R>
impl<R: CfdScalar + ProbabilisticType> UncertainMarchConfigBuilder<R>
Sourcepub fn solver(self, config: DecNsConfig<R>) -> Self
pub fn solver(self, config: DecNsConfig<R>) -> Self
The DEC incompressible solver configuration (built via CfdConfigBuilder::dec_ns).
Sourcepub fn inflow_zone(self, zone: UncertainInflowZone<R>) -> Self
pub fn inflow_zone(self, zone: UncertainInflowZone<R>) -> Self
The sensor-fed inflow boundary patch (presence gate, collapse, dropout policy).
Sourcepub fn sensor_stream(self, stream: Vec<MaybeUncertain<R>>) -> Self
pub fn sensor_stream(self, stream: Vec<MaybeUncertain<R>>) -> Self
The per-step sensor stream: stream[i] feeds march step i. Must cover the horizon.
Sourcepub fn seed(self, seed: Seed) -> Self
pub fn seed(self, seed: Seed) -> Self
The initial condition (default Seed::Rest).
Sourcepub fn build(self) -> Result<UncertainMarchConfig<R>, PhysicsError>
pub fn build(self) -> Result<UncertainMarchConfig<R>, PhysicsError>
Finalize.
§Errors
PhysicsError::DimensionMismatch when a required field is missing or the sensor stream is
shorter than the horizon.
Auto Trait Implementations§
impl<R> !RefUnwindSafe for UncertainMarchConfigBuilder<R>
impl<R> !UnwindSafe for UncertainMarchConfigBuilder<R>
impl<R> Freeze for UncertainMarchConfigBuilder<R>where
Option<DecNsConfig<R>>: Freeze,
Option<UncertainInflowZone<R>>: Freeze,
Option<Vec<MaybeUncertain<R>>>: Freeze,
impl<R> Send for UncertainMarchConfigBuilder<R>where
Option<DecNsConfig<R>>: Send,
Option<UncertainInflowZone<R>>: Send,
Option<Vec<MaybeUncertain<R>>>: Send,
impl<R> Sync for UncertainMarchConfigBuilder<R>where
Option<DecNsConfig<R>>: Sync,
Option<UncertainInflowZone<R>>: Sync,
Option<Vec<MaybeUncertain<R>>>: Sync,
impl<R> Unpin for UncertainMarchConfigBuilder<R>where
Option<DecNsConfig<R>>: Unpin,
Option<UncertainInflowZone<R>>: Unpin,
Option<Vec<MaybeUncertain<R>>>: Unpin,
impl<R> UnsafeUnpin for UncertainMarchConfigBuilder<R>where
Option<DecNsConfig<R>>: UnsafeUnpin,
Option<UncertainInflowZone<R>>: UnsafeUnpin,
Option<Vec<MaybeUncertain<R>>>: UnsafeUnpin,
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> 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