pub struct CfdSolution {
pub u: Vec<f64>,
pub v: Vec<f64>,
pub p: Vec<f64>,
pub nx: usize,
pub ny: usize,
pub lx: f64,
pub ly: f64,
pub max_divergence: f64,
pub converged_step: usize,
}Expand description
CFD solution fields returned to the caller.
Fields§
§u: Vec<f64>u-velocity at vertical faces, shape (nx+1, ny), row-major (j outer, i inner).
v: Vec<f64>v-velocity at horizontal faces, shape (nx, ny+1).
p: Vec<f64>pressure at cell centres, shape (nx, ny).
nx: usizeNumber of cells in x.
ny: usizeNumber of cells in y.
lx: f64Domain length in x (m).
ly: f64Domain length in y (m).
max_divergence: f64Maximum divergence (continuity residual) at convergence.
converged_step: usizeTime step at which convergence was achieved.
Auto Trait Implementations§
impl Freeze for CfdSolution
impl RefUnwindSafe for CfdSolution
impl Send for CfdSolution
impl Sync for CfdSolution
impl Unpin for CfdSolution
impl UnsafeUnpin for CfdSolution
impl UnwindSafe for CfdSolution
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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