Skip to main content

BehaviourData

Struct BehaviourData 

Source
pub struct BehaviourData<'a> {
    pub dt: f64,
    pub rdt: f64,
    pub k: &'a mut [f64],
    pub speed_of_sound: f64,
    pub s0: InitialState<'a>,
    pub s1: FinalState<'a>,
}
Expand description

The data of an integration at one material point, borrowed from the caller, as MGIS’s BehaviourDataView: Behaviour::integrate reads them and writes the results in place.

Fields§

§dt: f64

The time increment.

§rdt: f64

Given, the largest factor by which the behaviour may propose to scale the time step (1 forbids a larger one); written, the factor it proposes, also when it fails.

§k: &'a mut [f64]

The operator the IntegrationOptions ask for, written by the behaviour: Description::tangent_operator_size values, the blocks of Description::tangent_operator_blocks one after the other, each row major. Empty when none is asked.

§speed_of_sound: f64

The speed of sound, written when the IntegrationOptions ask for it.

§s0: InitialState<'a>

The state at the beginning of the time step.

§s1: FinalState<'a>

The state at the end of the time step.

Trait Implementations§

Source§

impl<'a> Debug for BehaviourData<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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

§

impl<'a> Forget for BehaviourData<'a>

§

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

§

impl<'a> Move for BehaviourData<'a>

§

impl<'a> RefUnwindSafe for BehaviourData<'a>

§

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

§

impl<'a> Sync for BehaviourData<'a>

§

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

§

impl<'a> UnsafeUnpin for BehaviourData<'a>
where &'a mut [f64]: UnsafeUnpin, &'a [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.