CiarletElement

Struct CiarletElement 

Source
pub struct CiarletElement<T: RlstScalar, M: Map, TGeo: RlstScalar> { /* private fields */ }
Expand description

A Ciarlet element

Implementations§

Source§

impl<T: RlstScalar, M: Map, TGeo: RlstScalar> CiarletElement<T, M, TGeo>
where DynArray<T, 2>: Inverse<Output = DynArray<T, 2>>,

Source

pub fn create( family_name: String, cell_type: ReferenceCellType, degree: usize, value_shape: Vec<usize>, polynomial_coeffs: DynArray<T, 3>, interpolation_points: [Vec<DynArray<TGeo, 2>>; 4], interpolation_weights: [Vec<DynArray<T, 3>>; 4], continuity: Continuity, embedded_superdegree: usize, map: M, ) -> Self

Create a Ciarlet element.

The majority of users will not wish to use this directly, and should insteal call the createfunction for one of the following special cases of a general Ciarlet element:

Source

pub fn degree(&self) -> usize

The polynomial degree

Source

pub fn continuity(&self) -> Continuity

The continuity of the element

Source

pub fn interpolation_points(&self) -> &[Vec<DynArray<TGeo, 2>>; 4]

The interpolation points

Source

pub fn interpolation_weights(&self) -> &[Vec<DynArray<T, 3>>; 4]

The interpolation weights

Trait Implementations§

Source§

impl<T: RlstScalar, M: Map, TGeo: RlstScalar> Debug for CiarletElement<T, M, TGeo>

Source§

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

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

impl<T: RlstScalar, M: Map, TGeoInternal: RlstScalar> FiniteElement for CiarletElement<T, M, TGeoInternal>

Source§

type CellType = ReferenceCellType

Cell type Read more
Source§

type T = T

The scalar type
Source§

fn value_shape(&self) -> &[usize]

The shape of the values returned by functions in $\mathcal{V}$. Read more
Source§

fn value_size(&self) -> usize

The number of values returned. Read more
Source§

fn cell_type(&self) -> ReferenceCellType

The reference cell type, eg one of Point, Interval, Triangle, etc.
Source§

fn dim(&self) -> usize

The number of basis functions.
Source§

fn tabulate<TGeo: RlstScalar, Array2Impl: ValueArrayImpl<TGeo, 2>, Array4MutImpl: MutableArrayImpl<T, 4>>( &self, points: &Array<Array2Impl, 2>, nderivs: usize, data: &mut Array<Array4MutImpl, 4>, )

Tabulate the values of the basis functions and their derivatives at a set of points Read more
Source§

fn tabulate_array_shape(&self, nderivs: usize, npoints: usize) -> [usize; 4]

Get the required shape for a tabulation array.
Source§

fn entity_dofs( &self, entity_dim: usize, entity_number: usize, ) -> Option<&[usize]>

Return the dof indices that are associated with the subentity with index entity_number and dimension entity_dim. Read more
Source§

fn entity_closure_dofs( &self, entity_dim: usize, entity_number: usize, ) -> Option<&[usize]>

The DOFs that are associated with a closure of a subentity of the reference cell. Read more
Source§

impl<T: RlstScalar, M: Map, TGeoInternal: RlstScalar> MappedFiniteElement for CiarletElement<T, M, TGeoInternal>

Source§

type TransformationType = Transformation

Transformation type Read more
Source§

fn lagrange_superdegree(&self) -> usize

The smallest degree Lagrange space that contains all possible polynomials of the finite element’s polynomial space. Read more
Source§

fn push_forward<TGeo: RlstScalar, Array3GeoImpl: ValueArrayImpl<TGeo, 3>, Array4Impl: ValueArrayImpl<T, 4>, Array4MutImpl: MutableArrayImpl<T, 4>>( &self, reference_values: &Array<Array4Impl, 4>, nderivs: usize, jacobians: &Array<Array3GeoImpl, 3>, jacobian_determinants: &[TGeo], inverse_jacobians: &Array<Array3GeoImpl, 3>, physical_values: &mut Array<Array4MutImpl, 4>, )

Push function values forward to a physical cell. Read more
Source§

fn pull_back<TGeo: RlstScalar, Array3GeoImpl: ValueArrayImpl<TGeo, 3>, Array4Impl: ValueArrayImpl<T, 4>, Array4MutImpl: MutableArrayImpl<T, 4>>( &self, physical_values: &Array<Array4Impl, 4>, nderivs: usize, jacobians: &Array<Array3GeoImpl, 3>, jacobian_determinants: &[TGeo], inverse_jacobians: &Array<Array3GeoImpl, 3>, reference_values: &mut Array<Array4MutImpl, 4>, )

Pull function values back to the reference cell. Read more
Source§

fn physical_value_shape(&self, gdim: usize) -> Vec<usize>

The value shape on a physical cell
Source§

fn dof_transformation( &self, entity: ReferenceCellType, transformation: Transformation, ) -> Option<&DofTransformation<T>>

The DOF transformation for a sub-entity.
Source§

fn apply_dof_permutations<Type>(&self, data: &mut [Type], cell_orientation: i32)

Apply permutation parts of DOF transformations.
Source§

fn apply_dof_transformations(&self, data: &mut [T], cell_orientation: i32)

Apply non-permutation parts of DOF transformations.
Source§

fn physical_value_size(&self, gdim: usize) -> usize

The value size on a physical cell
Source§

fn apply_dof_permutations_and_transformations( &self, data: &mut [Self::T], cell_orientation: i32, )

Apply DOF transformations.

Auto Trait Implementations§

§

impl<T, M, TGeo> Freeze for CiarletElement<T, M, TGeo>
where M: Freeze,

§

impl<T, M, TGeo> RefUnwindSafe for CiarletElement<T, M, TGeo>

§

impl<T, M, TGeo> Send for CiarletElement<T, M, TGeo>
where M: Send,

§

impl<T, M, TGeo> Sync for CiarletElement<T, M, TGeo>
where M: Sync,

§

impl<T, M, TGeo> Unpin for CiarletElement<T, M, TGeo>
where M: Unpin, T: Unpin, TGeo: Unpin,

§

impl<T, M, TGeo> UnwindSafe for CiarletElement<T, M, TGeo>
where M: UnwindSafe, T: UnwindSafe, TGeo: 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
§

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src
where Scheme: ApproxScheme,

§

type Err = NoError

The error type produced by a failed conversion.
§

fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>

Convert the given value into an approximately equivalent representation.
§

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src
where Dst: ApproxFrom<Src, Scheme>, Scheme: ApproxScheme,

§

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.
§

fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>

Convert the subject into an approximately equivalent representation.
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
§

impl<T, Dst> ConvAsUtil<Dst> for T

§

fn approx(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject with the default scheme.
§

fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject with a specific scheme.
§

impl<T> ConvUtil for T

§

fn approx_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject to a given type with the default scheme.
§

fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject to a given type with a specific scheme.
§

fn into_as<Dst>(self) -> Dst
where Self: Sized + Into<Dst>,

Convert the subject to a given type.
§

fn try_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + TryInto<Dst>,

Attempt to convert the subject to a given type.
§

fn value_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ValueInto<Dst>,

Attempt a value conversion of the subject to a given type.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<Src> TryFrom<Src> for Src

§

type Err = NoError

The error type produced by a failed conversion.
§

fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>

Convert the given value into the subject type.
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.
§

impl<Src, Dst> TryInto<Dst> for Src
where Dst: TryFrom<Src>,

§

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.
§

fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>

Convert the subject into the destination type.
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<Src> ValueFrom<Src> for Src

§

type Err = NoError

The error type produced by a failed conversion.
§

fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>

Convert the given value into an exactly equivalent representation.
§

impl<Src, Dst> ValueInto<Dst> for Src
where Dst: ValueFrom<Src>,

§

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.
§

fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>

Convert the subject into an exactly equivalent representation.
§

impl<T, U> Imply<T> for U