pub struct BodyForceOneForm<R: RealField> { /* private fields */ }Expand description
A body-force-per-unit-mass field as an edge 1-form on a cubical lattice. A forcing input, not a marching state: no arithmetic is provided.
Implementations§
Source§impl<R: RealField> BodyForceOneForm<R>
impl<R: RealField> BodyForceOneForm<R>
Sourcepub fn new<const D: usize>(
field: CausalTensor<R>,
manifold: &Manifold<LatticeComplex<D, R>, R>,
) -> Result<Self, PhysicsError>
pub fn new<const D: usize>( field: CausalTensor<R>, manifold: &Manifold<LatticeComplex<D, R>, R>, ) -> Result<Self, PhysicsError>
Construct from a grade-1 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 edge cochain.
Trait Implementations§
impl<R: PartialEq + RealField> StructuralPartialEq for BodyForceOneForm<R>
Auto Trait Implementations§
impl<R> Freeze for BodyForceOneForm<R>where
CausalTensor<R>: Freeze,
impl<R> RefUnwindSafe for BodyForceOneForm<R>where
CausalTensor<R>: RefUnwindSafe,
impl<R> Send for BodyForceOneForm<R>where
CausalTensor<R>: Send,
impl<R> Sync for BodyForceOneForm<R>where
CausalTensor<R>: Sync,
impl<R> Unpin for BodyForceOneForm<R>where
CausalTensor<R>: Unpin,
impl<R> UnsafeUnpin for BodyForceOneForm<R>where
CausalTensor<R>: UnsafeUnpin,
impl<R> UnwindSafe for BodyForceOneForm<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