pub struct CarriedInternalVariables<'a, B, const G: usize, V, const D: usize>where
V: Tensor,{ /* private fields */ }Expand description
The internal variables carried alongside the nodal coordinates, stepped by their share of whatever increment the solver lends out.
A step is offered before it is taken, so what the increment is measured from and what the residual is evaluated at come apart while one is being considered. Increments are always taken from the state last kept, which is what makes offering several of them in a row harmless.
Implementations§
Source§impl<'a, B, const G: usize, V, const D: usize> CarriedInternalVariables<'a, B, G, V, D>where
B: ElasticIVElements<G, V, D>,
V: Tensor,
impl<'a, B, const G: usize, V, const D: usize> CarriedInternalVariables<'a, B, G, V, D>where
B: ElasticIVElements<G, V, D>,
V: Tensor,
pub fn new( model: &'a Model<B, D>, initial: InternalVariablesField<G, V>, ) -> Self
pub fn stepped(&self) -> Ref<'_, InternalVariablesField<G, V>>
pub fn step( &self, nodal_coordinates: &NodalCoordinates<D>, nodal_decrement: &Vector, step: Scalar, commit: bool, ) -> Result<(), ElementModelError>
Auto Trait Implementations§
impl<'a, B, const G: usize, V, const D: usize> !Freeze for CarriedInternalVariables<'a, B, G, V, D>
impl<'a, B, const G: usize, V, const D: usize> !RefUnwindSafe for CarriedInternalVariables<'a, B, G, V, D>
impl<'a, B, const G: usize, V, const D: usize> !Sync for CarriedInternalVariables<'a, B, G, V, D>
impl<'a, B, const G: usize, V, const D: usize> Send for CarriedInternalVariables<'a, B, G, V, D>
impl<'a, B, const G: usize, V, const D: usize> Unpin for CarriedInternalVariables<'a, B, G, V, D>where
V: Unpin,
impl<'a, B, const G: usize, V, const D: usize> UnsafeUnpin for CarriedInternalVariables<'a, B, G, V, D>
impl<'a, B, const G: usize, V, const D: usize> UnwindSafe for CarriedInternalVariables<'a, B, G, V, D>where
B: RefUnwindSafe,
V: 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