Skip to main content

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 C: Viscoelastic, F: ViscoelasticFiniteElement<C, G, M, N, P>,

Source

pub fn deformation_gradient_rates( &self, nodal_coordinates: &NodalCoordinates<3>, nodal_velocities: &NodalVelocities<3>, ) -> Vec<DeformationGradientRateList<G>>

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 N: usize, const P: usize> ElasticElements<2> for Block<C, F, G, 2, N, P>
where C: Elastic, F: PlanarElasticFiniteElement<C, G, N, P>,

Source§

fn nodal_forces_into( &self, nodal_coordinates: &NodalCoordinates<2>, nodal_forces: &mut NodalForcesSolid<2>, ) -> Result<(), ElementModelError>

Source§

fn nodal_stiffnesses_into( &self, nodal_coordinates: &NodalCoordinates<2>, nodal_stiffnesses: &mut NodalStiffnessesSolid<2>, ) -> Result<(), ElementModelError>

Source§

fn nodal_forces( &self, nodal_coordinates: &NodalCoordinates<D>, ) -> Result<NodalForcesSolid<D>, ElementModelError>

Source§

fn nodal_stiffnesses( &self, nodal_coordinates: &NodalCoordinates<D>, ) -> Result<NodalStiffnessesSolid<D>, ElementModelError>

Source§

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

Source§

fn nodal_forces_into( &self, nodal_coordinates: &NodalCoordinates<3>, nodal_forces: &mut NodalForcesSolid<3>, ) -> Result<(), ElementModelError>

Source§

fn nodal_stiffnesses_into( &self, nodal_coordinates: &NodalCoordinates<3>, nodal_stiffnesses: &mut NodalStiffnessesSolid<3>, ) -> Result<(), ElementModelError>

Source§

fn nodal_forces( &self, nodal_coordinates: &NodalCoordinates<D>, ) -> Result<NodalForcesSolid<D>, ElementModelError>

Source§

fn nodal_stiffnesses( &self, nodal_coordinates: &NodalCoordinates<D>, ) -> Result<NodalStiffnessesSolid<D>, ElementModelError>

Source§

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

Source§

fn viscous_dissipation( &self, nodal_coordinates: &NodalCoordinates<3>, nodal_velocities: &NodalVelocities<3>, ) -> Result<Scalar, ElementModelError>

Source§

fn dissipation_potential( &self, nodal_coordinates: &NodalCoordinates<3>, nodal_velocities: &NodalVelocities<3>, ) -> Result<Scalar, ElementModelError>

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize, Y> ElasticViscoplasticElements<TensorVector<TensorList<TensorTuple<TensorRank2<3, 2, 0>, Y>, G>>, 3> for Block<C, F, G, M, N, P>
where C: ElasticViscoplastic<Y>, F: ElasticViscoplasticFiniteElement<C, G, M, N, P, Y>, Y: Tensor,

Source§

fn initial_state(&self) -> ViscoplasticStateVariables<G, Y>

Source§

fn nodal_forces_into( &self, nodal_coordinates: &NodalCoordinates<3>, state_variables: &ViscoplasticStateVariables<G, Y>, nodal_forces: &mut NodalForcesSolid<3>, ) -> Result<(), ElementModelError>

Source§

fn nodal_stiffnesses_into( &self, nodal_coordinates: &NodalCoordinates<3>, state_variables: &ViscoplasticStateVariables<G, Y>, nodal_stiffnesses: &mut NodalStiffnessesSolid<3>, ) -> Result<(), ElementModelError>

Source§

fn state_variables_evolution( &self, nodal_coordinates: &NodalCoordinates<3>, state_variables: &ViscoplasticStateVariables<G, Y>, ) -> Result<ViscoplasticStateVariables<G, Y>, ElementModelError>

Source§

fn nodal_forces( &self, nodal_coordinates: &NodalCoordinates<D>, state_variables: &S, ) -> Result<NodalForcesSolid<D>, ElementModelError>

Source§

fn nodal_stiffnesses( &self, nodal_coordinates: &NodalCoordinates<D>, state_variables: &S, ) -> Result<NodalStiffnessesSolid<D>, ElementModelError>

Source§

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

Source§

fn node_neighbors(&self, neighbors: &mut [Vec<usize>])

Source§

impl<C, F, const G: usize, const N: usize, const P: usize> From<(C, PrimitiveConnectivity<2, N>, &TensorVector<TensorRank1<2, 0>>)> for Block<C, F, G, 2, N, P>

Source§

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

Converts to this type from the input type.
Source§

impl<C, F, const G: usize, const N: usize, const P: usize> From<(C, PrimitiveConnectivity<3, N>, &TensorVector<TensorRank1<3, 0>>)> for Block<C, F, G, 3, N, P>

Source§

fn from( (constitutive_model, connectivity, coordinates): (C, PrimitiveConnectivity<3, N>, &NodalReferenceCoordinates<3>), ) -> 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<2, 0>>)> for Block<C, F, G, 2, N, P>

Source§

fn from( (constitutive_model, connectivity, coordinates): (C, Vec<[usize; N]>, &NodalReferenceCoordinates<2>), ) -> 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>>)> for Block<C, F, G, 3, N, P>

Source§

fn from( (constitutive_model, connectivity, coordinates): (C, Vec<[usize; N]>, &NodalReferenceCoordinates<3>), ) -> 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, Vec<[usize; N]>, &NodalReferenceCoordinates<3>, Scalar), ) -> Self

Converts to this type from the input type.
Source§

impl<C, F, const G: usize, const N: usize, const P: usize> HyperelasticElements<2> for Block<C, F, G, 2, N, P>

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> HyperelasticElements<3> for Block<C, F, G, M, N, P>
where C: Hyperelastic, F: HyperelasticFiniteElement<C, G, M, N, P>, Self: ElasticElements<3>,

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize, Y> HyperelasticViscoplasticElements<TensorVector<TensorList<TensorTuple<TensorRank2<3, 2, 0>, Y>, G>>, 3> for Block<C, F, G, M, N, P>

Source§

fn helmholtz_free_energy( &self, nodal_coordinates: &NodalCoordinates<3>, state_variables: &ViscoplasticStateVariables<G, Y>, ) -> Result<Scalar, ElementModelError>

Source§

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

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> SolidElements<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> ThermalConductionElements for Block<C, F, G, M, N, P>

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize> ThermalElements<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> ViscoelasticElements<3> for Block<C, F, G, M, N, P>
where C: Viscoelastic, F: ViscoelasticFiniteElement<C, G, M, N, P>,

Source§

fn nodal_forces_into( &self, nodal_coordinates: &NodalCoordinates<3>, nodal_velocities: &NodalVelocities<3>, nodal_forces: &mut NodalForcesSolid<3>, ) -> Result<(), ElementModelError>

Source§

fn nodal_stiffnesses_into( &self, nodal_coordinates: &NodalCoordinates<3>, nodal_velocities: &NodalVelocities<3>, nodal_stiffnesses: &mut NodalStiffnessesSolid<3>, ) -> Result<(), ElementModelError>

Source§

fn nodal_forces( &self, nodal_coordinates: &NodalCoordinates<D>, nodal_velocities: &NodalVelocities<D>, ) -> Result<NodalForcesSolid<D>, ElementModelError>

Source§

fn nodal_stiffnesses( &self, nodal_coordinates: &NodalCoordinates<D>, nodal_velocities: &NodalVelocities<D>, ) -> Result<NodalStiffnessesSolid<D>, ElementModelError>

Source§

impl<C, F, const G: usize, const N: usize, const P: usize> SurfaceElements<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>

§

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>

§

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> UnsafeUnpin for Block<C, F, G, M, N, P>
where C: UnsafeUnpin,

§

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.