symfem.moments
¶
Functions to create integral moments.
Module Contents¶
Functions¶
|
Get the information for a moment. |
Generate DOFs due to integral moments on sub entities. |
Attributes¶
- symfem.moments.MomentType¶
- symfem.moments.SingleMomentTypeInput¶
- symfem.moments.MomentTypeInput¶
- symfem.moments._extract_moment_data(moment_data: MomentTypeInput, sub_type: str) MomentType ¶
Get the information for a moment.
- Parameters:
moment_data – The moment data
sub_type – The subentity type
- Returns:
The moment type, finite elment, order, mapping, and keyword arguments for the moment
- symfem.moments.make_integral_moment_dofs(reference: symfem.references.Reference, vertices: MomentTypeInput | None = None, edges: MomentTypeInput | None = None, faces: MomentTypeInput | None = None, volumes: MomentTypeInput | None = None, cells: MomentTypeInput | None = None, facets: MomentTypeInput | None = None, ridges: MomentTypeInput | None = None, peaks: MomentTypeInput | None = None) List[symfem.functionals.BaseFunctional] ¶
Generate DOFs due to integral moments on sub entities.
- Parameters:
reference – The reference cell.
vertices – DOFs on dimension 0 entities.
edges – DOFs on dimension 1 entities.
faces – DOFs on dimension 2 entities.
volumes – DOFs on dimension 3 entities.
cells – DOFs on codimension 0 entities.
facets – DOFs on codimension 1 entities.
ridges – DOFs on codimension 2 entities.
peaks – DOFs on codimension 3 entities.
- Returns:
A list of DOFs for the element