pub struct MaterialEllipticOperator<'a, Material>(/* private fields */);Expand description
A wrapper that turns any hyper elastic material into an elliptic operator for use
with fenris assembly operations.
The wrapper assumes a displacement-based formulation, i.e. that the solution field is the displacement $\vec u (\vec X) = \vec x(\vec X) - \vec X$. In other words, the nodal weights should correspond to displacements, not deformed positions. Alternatively, you may transform deformed positions to displacements as a preprocessing step before handing off the resulting displacements to assembly functionality relying on this operator wrapper.
This implies the following relations:
$$ \begin{aligned} \vec F &= \vec I + (\nabla \vec u)^T, \\ \vec P (\vec F) &= g^T (\nabla \vec u), \\ \mathcal{C}_{\vec P}(\vec F, \vec a, \vec b) &= \mathcal{C}_g(\nabla \vec u, \vec a, \vec b). \\ \end{aligned} $$
Implementations§
Source§impl<'a, Material> MaterialEllipticOperator<'a, Material>
impl<'a, Material> MaterialEllipticOperator<'a, Material>
pub fn new(material: &'a Material) -> Self
Trait Implementations§
Source§impl<'a, T, GeometryDim, Material> EllipticContraction<T, GeometryDim> for MaterialEllipticOperator<'a, Material>where
T: Real,
GeometryDim: SmallDim,
Material: HyperelasticMaterial<T, GeometryDim>,
DefaultAllocator: DimAllocator<T, GeometryDim>,
impl<'a, T, GeometryDim, Material> EllipticContraction<T, GeometryDim> for MaterialEllipticOperator<'a, Material>where
T: Real,
GeometryDim: SmallDim,
Material: HyperelasticMaterial<T, GeometryDim>,
DefaultAllocator: DimAllocator<T, GeometryDim>,
Source§fn contract(
&self,
u_grad: &OMatrix<T, GeometryDim, GeometryDim>,
a: &OVector<T, GeometryDim>,
b: &OVector<T, GeometryDim>,
parameters: &Self::Parameters,
) -> OMatrix<T, Self::SolutionDim, Self::SolutionDim>
fn contract( &self, u_grad: &OMatrix<T, GeometryDim, GeometryDim>, a: &OVector<T, GeometryDim>, b: &OVector<T, GeometryDim>, parameters: &Self::Parameters, ) -> OMatrix<T, Self::SolutionDim, Self::SolutionDim>
Source§fn accumulate_contractions_into(
&self,
output: DMatrixViewMut<'_, T>,
alpha: T,
u_grad: &OMatrix<T, GeometryDim, Self::SolutionDim>,
a: DVectorView<'_, T>,
b: DVectorView<'_, T>,
parameters: &Self::Parameters,
)
fn accumulate_contractions_into( &self, output: DMatrixViewMut<'_, T>, alpha: T, u_grad: &OMatrix<T, GeometryDim, Self::SolutionDim>, a: DVectorView<'_, T>, b: DVectorView<'_, T>, parameters: &Self::Parameters, )
Source§impl<'a, T, GeometryDim, Material> EllipticEnergy<T, GeometryDim> for MaterialEllipticOperator<'a, Material>where
T: Real,
GeometryDim: SmallDim,
Material: HyperelasticMaterial<T, GeometryDim>,
DefaultAllocator: DimAllocator<T, GeometryDim>,
impl<'a, T, GeometryDim, Material> EllipticEnergy<T, GeometryDim> for MaterialEllipticOperator<'a, Material>where
T: Real,
GeometryDim: SmallDim,
Material: HyperelasticMaterial<T, GeometryDim>,
DefaultAllocator: DimAllocator<T, GeometryDim>,
fn compute_energy( &self, u_grad: &OMatrix<T, GeometryDim, GeometryDim>, parameters: &Self::Parameters, ) -> T
Source§impl<'a, T, GeometryDim, Material> EllipticOperator<T, GeometryDim> for MaterialEllipticOperator<'a, Material>where
T: Real,
GeometryDim: SmallDim,
Material: HyperelasticMaterial<T, GeometryDim>,
DefaultAllocator: DimAllocator<T, GeometryDim>,
impl<'a, T, GeometryDim, Material> EllipticOperator<T, GeometryDim> for MaterialEllipticOperator<'a, Material>where
T: Real,
GeometryDim: SmallDim,
Material: HyperelasticMaterial<T, GeometryDim>,
DefaultAllocator: DimAllocator<T, GeometryDim>,
Source§fn compute_elliptic_operator(
&self,
u_grad: &OMatrix<T, GeometryDim, GeometryDim>,
parameters: &Self::Parameters,
) -> OMatrix<T, GeometryDim, Self::SolutionDim>
fn compute_elliptic_operator( &self, u_grad: &OMatrix<T, GeometryDim, GeometryDim>, parameters: &Self::Parameters, ) -> OMatrix<T, GeometryDim, Self::SolutionDim>
Source§fn compute_elliptic_operator_transpose(
&self,
u_grad: &OMatrix<T, GeometryDim, Self::SolutionDim>,
parameters: &Self::Parameters,
) -> OMatrix<T, Self::SolutionDim, GeometryDim>
fn compute_elliptic_operator_transpose( &self, u_grad: &OMatrix<T, GeometryDim, Self::SolutionDim>, parameters: &Self::Parameters, ) -> OMatrix<T, Self::SolutionDim, GeometryDim>
Source§impl<'a, T, GeometryDim, Material> Operator<T, GeometryDim> for MaterialEllipticOperator<'a, Material>where
T: Real,
GeometryDim: SmallDim,
Material: HyperelasticMaterial<T, GeometryDim>,
DefaultAllocator: DimAllocator<T, GeometryDim>,
impl<'a, T, GeometryDim, Material> Operator<T, GeometryDim> for MaterialEllipticOperator<'a, Material>where
T: Real,
GeometryDim: SmallDim,
Material: HyperelasticMaterial<T, GeometryDim>,
DefaultAllocator: DimAllocator<T, GeometryDim>,
type SolutionDim = GeometryDim
Source§type Parameters = <Material as HyperelasticMaterial<T, GeometryDim>>::Parameters
type Parameters = <Material as HyperelasticMaterial<T, GeometryDim>>::Parameters
Auto Trait Implementations§
impl<'a, Material> Freeze for MaterialEllipticOperator<'a, Material>
impl<'a, Material> RefUnwindSafe for MaterialEllipticOperator<'a, Material>where
Material: RefUnwindSafe,
impl<'a, Material> Send for MaterialEllipticOperator<'a, Material>where
Material: Sync,
impl<'a, Material> Sync for MaterialEllipticOperator<'a, Material>where
Material: Sync,
impl<'a, Material> Unpin for MaterialEllipticOperator<'a, Material>
impl<'a, Material> UnwindSafe for MaterialEllipticOperator<'a, Material>where
Material: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.