MFEM  v4.6.0
Finite element discretization library
Public Types | Public Member Functions | Public Attributes | List of all members
mfem::FaceGeometricFactors Class Reference

Structure for storing face geometric factors: coordinates, Jacobians, determinants of the Jacobians, and normal vectors. More...

#include <mesh.hpp>

Collaboration diagram for mfem::FaceGeometricFactors:
[legend]

Public Types

enum  FactorFlags { COORDINATES = 1 << 0, JACOBIANS = 1 << 1, DETERMINANTS = 1 << 2, NORMALS = 1 << 3 }
 

Public Member Functions

 FaceGeometricFactors (const Mesh *mesh, const IntegrationRule &ir, int flags, FaceType type, MemoryType d_mt=MemoryType::DEFAULT)
 

Public Attributes

const Meshmesh
 
const IntegrationRuleIntRule
 
int computed_factors
 
FaceType type
 
Vector X
 Mapped (physical) coordinates of all quadrature points. More...
 
Vector J
 Jacobians of the element transformations at all quadrature points. More...
 
Vector detJ
 Determinants of the Jacobians at all quadrature points. More...
 
Vector normal
 Normals at all quadrature points. More...
 

Detailed Description

Structure for storing face geometric factors: coordinates, Jacobians, determinants of the Jacobians, and normal vectors.

Typically objects of this type are constructed and owned by objects of class Mesh. See Mesh::GetFaceGeometricFactors().

Definition at line 2237 of file mesh.hpp.

Member Enumeration Documentation

◆ FactorFlags

Enumerator
COORDINATES 
JACOBIANS 
DETERMINANTS 
NORMALS 

Definition at line 2245 of file mesh.hpp.

Constructor & Destructor Documentation

◆ FaceGeometricFactors()

mfem::FaceGeometricFactors::FaceGeometricFactors ( const Mesh mesh,
const IntegrationRule ir,
int  flags,
FaceType  type,
MemoryType  d_mt = MemoryType::DEFAULT 
)

Definition at line 12625 of file mesh.cpp.

Member Data Documentation

◆ computed_factors

int mfem::FaceGeometricFactors::computed_factors

Definition at line 2242 of file mesh.hpp.

◆ detJ

Vector mfem::FaceGeometricFactors::detJ

Determinants of the Jacobians at all quadrature points.

This array uses a column-major layout with dimensions (NQ x NF) where

  • NQ = number of quadrature points per face, and
  • NF = number of faces in the mesh.

Definition at line 2277 of file mesh.hpp.

◆ IntRule

const IntegrationRule* mfem::FaceGeometricFactors::IntRule

Definition at line 2241 of file mesh.hpp.

◆ J

Vector mfem::FaceGeometricFactors::J

Jacobians of the element transformations at all quadrature points.

This array uses a column-major layout with dimensions (NQ x SDIM x DIM x NF) where

  • NQ = number of quadrature points per face,
  • SDIM = space dimension of the mesh = mesh.SpaceDimension(),
  • DIM = dimension of the mesh = mesh.Dimension(), and
  • NF = number of faces in the mesh.

Definition at line 2271 of file mesh.hpp.

◆ mesh

const Mesh* mfem::FaceGeometricFactors::mesh

Definition at line 2240 of file mesh.hpp.

◆ normal

Vector mfem::FaceGeometricFactors::normal

Normals at all quadrature points.

This array uses a column-major layout with dimensions (NQ x DIM x NF) where

  • NQ = number of quadrature points per face,
  • SDIM = space dimension of the mesh = mesh.SpaceDimension(), and
  • NF = number of faces in the mesh.

Definition at line 2284 of file mesh.hpp.

◆ type

FaceType mfem::FaceGeometricFactors::type

Definition at line 2243 of file mesh.hpp.

◆ X

Vector mfem::FaceGeometricFactors::X

Mapped (physical) coordinates of all quadrature points.

This array uses a column-major layout with dimensions (NQ x SDIM x NF) where

  • NQ = number of quadrature points per face,
  • SDIM = space dimension of the mesh = mesh.SpaceDimension(), and
  • NF = number of faces in the mesh.

Definition at line 2262 of file mesh.hpp.


The documentation for this class was generated from the following files: