pub struct PressureZeroForm<R>where
R: RealField,{ /* private fields */ }Expand description
A pressure field as a vertex 0-form on a cubical lattice. Diagnostic carrier (the Leray-form solver removes pressure from the time loop); no arithmetic is provided.
Implementations§
Source§impl<R> PressureZeroForm<R>where
R: RealField,
impl<R> PressureZeroForm<R>where
R: RealField,
Sourcepub fn new<const D: usize>(
field: CausalTensor<R>,
manifold: &Manifold<LatticeComplex<D, R>, R>,
) -> Result<PressureZeroForm<R>, PhysicsError>
pub fn new<const D: usize>( field: CausalTensor<R>, manifold: &Manifold<LatticeComplex<D, R>, R>, ) -> Result<PressureZeroForm<R>, PhysicsError>
Construct from a grade-0 cochain, validating length and finiteness.
§Errors
PhysicsError::DimensionMismatchon a length/grade mismatch.PhysicsError::NumericalInstabilityon NaN or infinite coefficients.
Sourcepub fn as_tensor(&self) -> &CausalTensor<R>
pub fn as_tensor(&self) -> &CausalTensor<R>
The underlying vertex cochain.
Trait Implementations§
Source§impl<R> Clone for PressureZeroForm<R>
impl<R> Clone for PressureZeroForm<R>
Source§fn clone(&self) -> PressureZeroForm<R>
fn clone(&self) -> PressureZeroForm<R>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R> Debug for PressureZeroForm<R>
impl<R> Debug for PressureZeroForm<R>
Source§impl<R> PartialEq for PressureZeroForm<R>
impl<R> PartialEq for PressureZeroForm<R>
impl<R> StructuralPartialEq for PressureZeroForm<R>
Auto Trait Implementations§
impl<R> Freeze for PressureZeroForm<R>where
CausalTensor<R>: Freeze,
impl<R> RefUnwindSafe for PressureZeroForm<R>where
CausalTensor<R>: RefUnwindSafe,
impl<R> Send for PressureZeroForm<R>where
CausalTensor<R>: Send,
impl<R> Sync for PressureZeroForm<R>where
CausalTensor<R>: Sync,
impl<R> Unpin for PressureZeroForm<R>where
CausalTensor<R>: Unpin,
impl<R> UnsafeUnpin for PressureZeroForm<R>where
CausalTensor<R>: UnsafeUnpin,
impl<R> UnwindSafe for PressureZeroForm<R>where
CausalTensor<R>: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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