MFEM
v4.5.1
Finite element discretization library
|
Class representing the storage layout of a QuadratureFunction. More...
#include <qspace.hpp>
Public Member Functions | |
QuadratureSpace (Mesh *mesh_, int order_) | |
Create a QuadratureSpace based on the global rules from IntRules. More... | |
QuadratureSpace (Mesh &mesh_, const IntegrationRule &ir) | |
Create a QuadratureSpace with an IntegrationRule, valid only when the mesh has one element type. More... | |
QuadratureSpace (Mesh *mesh_, std::istream &in) | |
Read a QuadratureSpace from the stream in. More... | |
int | GetNE () const |
Returns number of elements in the mesh. More... | |
ElementTransformation * | GetTransformation (int idx) override |
Returns the element transformation of element idx. More... | |
Geometry::Type | GetGeometry (int idx) const override |
Returns the geometry type of element idx. More... | |
const IntegrationRule & | GetElementIntRule (int idx) const |
Get the IntegrationRule associated with mesh element idx. More... | |
int | GetPermutedIndex (int idx, int iq) const override |
Returns the permuted index of the iq quadrature point in entity idx. More... | |
void | Save (std::ostream &out) const override |
Write the QuadratureSpace to the stream out. More... | |
Public Member Functions inherited from mfem::QuadratureSpaceBase | |
int | GetSize () const |
Return the total number of quadrature points. More... | |
int | GetOrder () const |
Return the order of the quadrature rule(s) used by all elements. More... | |
int | GetNE () const |
Return the number of entities. More... | |
Mesh * | GetMesh () const |
Returns the mesh. More... | |
const IntegrationRule & | GetIntRule (int idx) const |
Return the IntegrationRule associated with entity idx. More... | |
virtual | ~QuadratureSpaceBase () |
Protected Member Functions | |
void | ConstructOffsets () |
void | Construct () |
Protected Member Functions inherited from mfem::QuadratureSpaceBase | |
QuadratureSpaceBase (Mesh &mesh_, int order_=0) | |
Protected constructor. Used by derived classes. More... | |
QuadratureSpaceBase (Mesh &mesh_, Geometry::Type geom, const IntegrationRule &ir) | |
Protected constructor. Used by derived classes. More... | |
void | ConstructIntRules (int dim) |
Fill the int_rule array for each geometry type using order. More... | |
Additional Inherited Members | |
Protected Attributes inherited from mfem::QuadratureSpaceBase | |
Mesh & | mesh |
The underlying mesh. More... | |
int | order |
The order of integration rule. More... | |
int | size |
Total number of quadrature points. More... | |
Array< int > | offsets |
Entity quadrature point offset array, of size num_entities + 1. More... | |
const IntegrationRule * | int_rule [Geometry::NumGeom] |
The quadrature rules used for each geometry type. More... | |
Class representing the storage layout of a QuadratureFunction.
Multiple QuadratureFunctions can share the same QuadratureSpace.
Definition at line 92 of file qspace.hpp.
|
inline |
Create a QuadratureSpace based on the global rules from IntRules.
Definition at line 99 of file qspace.hpp.
mfem::QuadratureSpace::QuadratureSpace | ( | Mesh & | mesh_, |
const IntegrationRule & | ir | ||
) |
Create a QuadratureSpace with an IntegrationRule, valid only when the mesh has one element type.
Definition at line 82 of file qspace.cpp.
mfem::QuadratureSpace::QuadratureSpace | ( | Mesh * | mesh_, |
std::istream & | in | ||
) |
Read a QuadratureSpace from the stream in.
Definition at line 59 of file qspace.cpp.
|
protected |
Definition at line 53 of file qspace.cpp.
|
protected |
Definition at line 38 of file qspace.cpp.
|
inline |
Get the IntegrationRule associated with mesh element idx.
Definition at line 121 of file qspace.hpp.
|
inlineoverridevirtual |
Returns the geometry type of element idx.
Implements mfem::QuadratureSpaceBase.
Definition at line 117 of file qspace.hpp.
|
inline |
Returns number of elements in the mesh.
Definition at line 110 of file qspace.hpp.
|
inlineoverridevirtual |
Returns the permuted index of the iq quadrature point in entity idx.
The member function QuadratureSpace::GetPermutedIndex always returns iq, the permutation is only nontrivial for FaceQuadratureSpace.
Implements mfem::QuadratureSpaceBase.
Definition at line 129 of file qspace.hpp.
|
inlineoverridevirtual |
Returns the element transformation of element idx.
Implements mfem::QuadratureSpaceBase.
Definition at line 113 of file qspace.hpp.
|
overridevirtual |
Write the QuadratureSpace to the stream out.
Implements mfem::QuadratureSpaceBase.
Definition at line 90 of file qspace.cpp.