Trait fenris::element::ElementConnectivity
source · pub trait ElementConnectivity<T>: Debug + Connectivitywhere
T: Scalar,
DefaultAllocator: BiDimAllocator<T, Self::GeometryDim, Self::ReferenceDim>,{
type Element: FiniteElement<T, GeometryDim = Self::GeometryDim, ReferenceDim = Self::ReferenceDim>;
type GeometryDim: SmallDim;
type ReferenceDim: SmallDim;
// Required method
fn element(
&self,
all_vertices: &[OPoint<T, Self::GeometryDim>]
) -> Option<Self::Element>;
// Provided method
fn populate_element_variables<'a, SolutionDim>(
&self,
u_local: MatrixViewMut<'_, T, SolutionDim, Dyn>,
u_global: impl Into<DVectorView<'a, T>>
)
where T: Zero,
SolutionDim: DimName { ... }
}
Expand description
TODO: Do we really need the Debug bound?
Required Associated Types§
type Element: FiniteElement<T, GeometryDim = Self::GeometryDim, ReferenceDim = Self::ReferenceDim>
type GeometryDim: SmallDim
type ReferenceDim: SmallDim
Required Methods§
Provided Methods§
sourcefn populate_element_variables<'a, SolutionDim>(
&self,
u_local: MatrixViewMut<'_, T, SolutionDim, Dyn>,
u_global: impl Into<DVectorView<'a, T>>
)where
T: Zero,
SolutionDim: DimName,
fn populate_element_variables<'a, SolutionDim>( &self, u_local: MatrixViewMut<'_, T, SolutionDim, Dyn>, u_global: impl Into<DVectorView<'a, T>> )where T: Zero, SolutionDim: DimName,
TODO: Move this out of the trait itself?