Block

Struct Block 

Source
pub struct Block<C, F, const G: usize, const M: usize, const N: usize, const P: usize> { /* private fields */ }

Implementations§

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> Block<C, F, G, M, N, P>
where F: FiniteElement<G, M, N, P>,

Source

pub fn volume(&self) -> Scalar

Trait Implementations§

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> Debug for Block<C, F, G, M, N, P>
where F: FiniteElement<G, M, N, P>,

Source§

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

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

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> ElasticFiniteElementBlock<C, F, G, M, N, P> for Block<C, F, G, M, N, P>
where C: Elastic, F: ElasticFiniteElement<C, G, M, N, P>, Self: SolidFiniteElementBlock<C, F, G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> ElasticFiniteElementModel for Block<C, F, G, M, N, P>
where C: Elastic, F: ElasticFiniteElement<C, G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> ElasticHyperviscousFiniteElementBlock<C, F, G, M, N, P> for Block<C, F, G, M, N, P>
where C: ElasticHyperviscous, F: ElasticHyperviscousFiniteElement<C, G, M, N, P>, Self: ViscoelasticFiniteElementBlock<C, F, G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> ElasticViscoplasticFiniteElementBlock<C, F, G, M, N, P> for Block<C, F, G, M, N, P>
where C: ElasticViscoplastic, F: ElasticViscoplasticFiniteElement<C, G, M, N, P>, Self: SolidFiniteElementBlock<C, F, G, M, N, P>,

Source§

impl<C, F, const G: usize, const N: usize, const P: usize> FiniteElementBlock<C, F, G, N> for Block<C, F, G, 3, N, P>

Source§

fn reset(&mut self)

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> FirstOrderMinimize<C, F, G, M, N, TensorVector<TensorRank1<3, 1>>> for Block<C, F, G, M, N, P>
where C: Hyperelastic, F: HyperelasticFiniteElement<C, G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> FirstOrderMinimize<C, F, G, M, N, Vector> for Block<C, F, G, M, N, P>

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> FirstOrderRoot<C, F, G, M, N, TensorVector<TensorRank1<3, 1>>, TensorVector<TensorVector<TensorRank2<3, 1, 1>>>, TensorVector<TensorRank1<3, 1>>> for Block<C, F, G, M, N, P>
where C: Elastic, F: ElasticFiniteElement<C, G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> FirstOrderRoot<C, F, G, M, N, Vector, SquareMatrix, Vector> for Block<C, F, G, M, N, P>

Source§

impl<C, F, const G: usize, const N: usize, const P: usize> From<(C, Vec<[usize; N]>, TensorVector<TensorRank1<3, 0>>)> for Block<C, F, G, 3, N, P>

Source§

fn from( (constitutive_model, connectivity, coordinates): (C, Connectivity<N>, NodalReferenceCoordinates), ) -> Self

Converts to this type from the input type.
Source§

impl<C, F, const G: usize, const N: usize, const P: usize> From<(C, Vec<[usize; N]>, TensorVector<TensorRank1<3, 0>>, f64)> for Block<C, F, G, M, N, P>

Source§

fn from( (constitutive_model, connectivity, coordinates, thickness): (C, Connectivity<N>, NodalReferenceCoordinates, Scalar), ) -> Self

Converts to this type from the input type.
Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> HyperelasticFiniteElementBlock<C, F, G, M, N, P> for Block<C, F, G, M, N, P>
where C: Hyperelastic, F: HyperelasticFiniteElement<C, G, M, N, P>, Self: ElasticFiniteElementBlock<C, F, G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> HyperviscoelasticFiniteElementBlock<C, F, G, M, N, P> for Block<C, F, G, M, N, P>
where C: Hyperviscoelastic, F: HyperviscoelasticFiniteElement<C, G, M, N, P>, Self: ElasticHyperviscousFiniteElementBlock<C, F, G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> SecondOrderMinimize<C, F, G, M, N, TensorVector<TensorRank1<3, 1>>, TensorVector<TensorVector<TensorRank2<3, 1, 1>>>, TensorVector<TensorRank1<3, 1>>> for Block<C, F, G, M, N, P>
where C: Hyperelastic, F: HyperelasticFiniteElement<C, G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> SecondOrderMinimize<C, F, G, M, N, Vector, SquareMatrix, Vector> for Block<C, F, G, M, N, P>

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> SolidFiniteElementBlock<C, F, G, M, N, P> for Block<C, F, G, M, N, P>
where F: SolidFiniteElement<G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> ThermalConductionFiniteElementBlock<C, F, G, M, N, P> for Block<C, F, G, M, N, P>

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> ThermalFiniteElementBlock<C, F, G, M, N, P> for Block<C, F, G, M, N, P>
where F: ThermalFiniteElement<G, M, N, P>,

Source§

fn nodal_temperatures_element( &self, element_connectivity: &[usize; N], nodal_temperatures: &NodalTemperatures, ) -> ElementNodalTemperatures<N>

Source§

fn temperature_gradients( &self, nodal_temperatures: &NodalTemperatures, ) -> Vec<TemperatureGradients<G>>

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> ViscoelasticFiniteElementBlock<C, F, G, M, N, P> for Block<C, F, G, M, N, P>
where C: Viscoelastic, F: ViscoelasticFiniteElement<C, G, M, N, P>, Self: SolidFiniteElementBlock<C, F, G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> ZerothOrderRoot<C, F, G, M, N, TensorVector<TensorRank1<3, 1>>> for Block<C, F, G, M, N, P>
where C: Elastic, F: ElasticFiniteElement<C, G, M, N, P>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> ZerothOrderRoot<C, F, G, M, N, Vector> for Block<C, F, G, M, N, P>

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> SolidFiniteElementModel for Block<C, F, G, M, N, P>
where C: Solid, F: SolidFiniteElement<G, M, N, P>,

Source§

impl<C, F, const G: usize, const N: usize, const P: usize> SurfaceFiniteElementBlock<C, F, G, N> for Block<C, F, G, M, N, P>

Auto Trait Implementations§

§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> Freeze for Block<C, F, G, M, N, P>
where C: Freeze,

§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> RefUnwindSafe for Block<C, F, G, M, N, P>

§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> Send for Block<C, F, G, M, N, P>
where C: Send, F: Send,

§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> Sync for Block<C, F, G, M, N, P>
where C: Sync, F: Sync,

§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> Unpin for Block<C, F, G, M, N, P>
where C: Unpin, F: Unpin,

§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> UnwindSafe for Block<C, F, G, M, N, P>
where C: UnwindSafe, F: UnwindSafe,

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 = 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.