Skip to main content

CarriedInternalVariables

Struct CarriedInternalVariables 

Source
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,

Source

pub fn new( model: &'a Model<B, D>, initial: InternalVariablesField<G, V>, ) -> Self

Source

pub fn stepped(&self) -> Ref<'_, InternalVariablesField<G, V>>

Source

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>
where B: Sync, V: Send,

§

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>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Is<T> for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.