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 F: FiniteElement<G, M, N, P>,

Source

pub fn volume(&self) -> Quantity<Volume>

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<Quantity<Power>, ElementModelError>

Source§

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

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize, V, E> ElasticIVElements<G, V, 3> for Block<C, F, G, M, N, P>
where C: ElasticIV<V>, C::Residual: Erase<Erased = E>, F: ElasticIVFiniteElement<C, G, M, N, P, V, E>, E: Tensor, for<'a> &'a C::Residual: Div<C::TangentVv, Output = V>, for<'a> &'a V: Mul<Quantity<Dimensionless>, Output = V> + Mul<Scalar, Output = V>, for<'a> &'a Matrix: Mul<&'a V, Output = Vector>, V: Erase<Erased = E> + Jacobian + Solution, <V as Tensor>::Unit: UnitDiv<<V as Tensor>::Unit, Output = Dimensionless>,

Source§

fn internal_variables_initial(&self) -> InternalVariablesField<G, V>

The internal variables every integration point starts from.
Source§

fn internal_variables_increment( &self, nodal_coordinates: &NodalCoordinates<3>, internal_variables: &InternalVariablesField<G, V>, nodal_decrement: &NodalCoordinates<3>, step: Scalar, ) -> Result<InternalVariablesField<G, V>, ElementModelError>

Steps the internal variables everywhere alongside a decrement of the nodal coordinates, rather than solving them where the coordinates now are. Read more
Source§

fn internal_variables_root( &self, local_solver: &NewtonRaphson, nodal_coordinates: &NodalCoordinates<3>, internal_variables: &InternalVariablesField<G, V>, ) -> Result<InternalVariablesField<G, V>, ElementModelError>

Solves the internal variables everywhere, holding the deformation fixed. Read more
Source§

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

Source§

fn nodal_forces_eliminated_into( &self, nodal_coordinates: &NodalCoordinates<3>, internal_variables: &InternalVariablesField<G, V>, nodal_forces: &mut NodalForcesSolid<3>, ) -> Result<(), ElementModelError>

The nodal forces with the residual of the internal variables eliminated into them, for when they are carried rather than solved. Read more
Source§

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

Source§

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

Source§

fn nodal_forces_eliminated( &self, nodal_coordinates: &NodalCoordinates<D>, internal_variables: &InternalVariablesField<G, V>, ) -> Result<NodalForcesSolid<D>, ElementModelError>

Source§

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

Source§

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

Source§

type Field = List<<C as StateEvolution<Time, Y>>::Field>

The whole-mesh field this topology’s plastic state lives on.
Source§

type State = TensorVector<TensorList<TensorTuple<TensorRank2<3, Intermediate, Reference>, Y>, G>>

The per-element grouped state — a per-Gauss-point list for one block, a TensorTuple of those for Blocks.
Source§

type History = TensorVector<TensorVector<TensorList<TensorTuple<TensorRank2<3, Intermediate, Reference>, Y>, G>>>

Time history of Self::State.
Source§

fn flatten( state: &ViscoplasticStateVariables<G, Y>, ) -> TensorVector<PointStateVariables<Y>>

Flattens Self::State into Self::Field’s Point.
Source§

fn unflatten( flat: &TensorVector<PointStateVariables<Y>>, ) -> ViscoplasticStateVariables<G, Y>

The inverse of Self::flatten.
Source§

fn dae_rate( &self, t: Quantity<Time>, nodal_coordinates: &NodalCoordinates<3>, flat: &TensorVector<PointStateVariables<Y>>, ) -> Result<TensorVector<Derivative<EvolvedIncrement<C, Time, Y>, Time>>, ElementModelError>

Evaluates every Gauss point’s plastic rate at nodal_coordinates.
Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize, Y> ElasticViscoplasticElements<TensorVector<TensorList<TensorTuple<TensorRank2<3, Intermediate, Reference>, Y>, G>>, 3> for Block<C, F, G, M, N, P>

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<ViscoplasticEvolution<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, Reference, Length>>)> 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, Reference, Length>>)> 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, Reference, Length>>)> 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, Reference, Length>>)> 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, Reference, Length>>, Quantity<Length>)> for Block<C, F, G, M, N, P>

Source§

fn from( (constitutive_model, connectivity, coordinates, thickness): (C, Vec<[usize; N]>, &NodalReferenceCoordinates<3>, Quantity<Length>), ) -> 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, V, E> HyperelasticIVElements<G, V, 3> for Block<C, F, G, M, N, P>
where C: HyperelasticIV<V>, C::Residual: Erase<Erased = E>, F: HyperelasticIVFiniteElement<C, G, M, N, P, V, E>, Self: ElasticIVElements<G, V, 3>, E: Tensor, for<'a> &'a C::Residual: Div<C::TangentVv, Output = V>, for<'a> &'a V: Mul<Quantity<Dimensionless>, Output = V> + Mul<Scalar, Output = V>, for<'a> &'a Matrix: Mul<&'a V, Output = Vector>, V: Erase<Erased = E> + Jacobian + Solution, <V as Tensor>::Unit: UnitDiv<<V as Tensor>::Unit, Output = Dimensionless>,

Source§

fn helmholtz_free_energy( &self, nodal_coordinates: &NodalCoordinates<3>, internal_variables: &InternalVariablesField<G, V>, ) -> Result<Quantity<Energy>, ElementModelError>

Source§

impl<C, F, const G: usize, const M: usize, const N: usize, const P: usize, Y> HyperelasticViscoplasticElements<TensorVector<TensorList<TensorTuple<TensorRank2<3, Intermediate, Reference>, 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<Quantity<Energy>, 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 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 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 C: Thermal, 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 NodalDampingsSolid<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<NodalDampingsSolid<D>, ElementModelError>

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> !Sync 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> 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> 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.