pub struct DomainBuilder { /* private fields */ }Expand description
Builder for Domain following a fluent API.
Implementations§
Source§impl DomainBuilder
impl DomainBuilder
pub fn new() -> Self
Sourcepub fn spatial_extent(self, l: f64) -> Self
pub fn spatial_extent(self, l: f64) -> Self
Set symmetric spatial extent: domain spans [−L, L]³.
Sourcepub fn velocity_extent(self, lv: f64) -> Self
pub fn velocity_extent(self, lv: f64) -> Self
Set symmetric velocity extent: domain spans [−Lv, Lv]³.
Sourcepub fn spatial_resolution(self, n: i128) -> Self
pub fn spatial_resolution(self, n: i128) -> Self
Set spatial resolution (same in all dimensions).
Sourcepub fn velocity_resolution(self, n: i128) -> Self
pub fn velocity_resolution(self, n: i128) -> Self
Set velocity resolution (same in all dimensions).
Sourcepub fn spatial_bc(self, bc: SpatialBoundType) -> Self
pub fn spatial_bc(self, bc: SpatialBoundType) -> Self
Set spatial boundary condition.
Sourcepub fn velocity_bc(self, bc: VelocityBoundType) -> Self
pub fn velocity_bc(self, bc: VelocityBoundType) -> Self
Set velocity boundary condition.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DomainBuilder
impl RefUnwindSafe for DomainBuilder
impl Send for DomainBuilder
impl Sync for DomainBuilder
impl Unpin for DomainBuilder
impl UnsafeUnpin for DomainBuilder
impl UnwindSafe for DomainBuilder
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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