Skip to main content

FinalState

Struct FinalState 

Source
pub struct FinalState<'a> {
    pub gradients: &'a [f64],
    pub thermodynamic_forces: &'a mut [f64],
    pub material_properties: &'a [f64],
    pub internal_state_variables: &'a mut [f64],
    pub external_state_variables: &'a [f64],
}
Expand description

The state at the end of the time step, borrowed from the caller: the caller gives the gradients, material properties and external state variables, the behaviour writes the thermodynamic forces and internal state variables.

Every array must have the length the Description gives.

Fields§

§gradients: &'a [f64]

The gradients.

§thermodynamic_forces: &'a mut [f64]

The thermodynamic forces, written by the behaviour.

§material_properties: &'a [f64]

The material properties.

§internal_state_variables: &'a mut [f64]

The internal state variables, written by the behaviour.

§external_state_variables: &'a [f64]

The external state variables, temperature first.

Trait Implementations§

Source§

impl<'a> Debug for FinalState<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for FinalState<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> !UnwindSafe for FinalState<'a>

§

impl<'a> Forget for FinalState<'a>

§

impl<'a> Freeze for FinalState<'a>
where &'a [f64]: Freeze, &'a mut [f64]: Freeze,

§

impl<'a> Move for FinalState<'a>

§

impl<'a> RefUnwindSafe for FinalState<'a>

§

impl<'a> Send for FinalState<'a>
where &'a [f64]: Send,

§

impl<'a> Sync for FinalState<'a>

§

impl<'a> Unpin for FinalState<'a>
where &'a [f64]: Unpin, &'a mut [f64]: Unpin,

§

impl<'a> UnsafeUnpin for FinalState<'a>
where &'a [f64]: UnsafeUnpin, &'a mut [f64]: UnsafeUnpin,

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.