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

Structure for storing mesh geometric factors: coordinates, Jacobians, and determinants of the Jacobians. More...

#include <mesh.hpp>

Collaboration diagram for mfem::GeometricFactors:
[legend]

Public Types

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

Public Member Functions

 GeometricFactors (const Mesh *mesh, const IntegrationRule &ir, int flags, MemoryType d_mt=MemoryType::DEFAULT)
 
 GeometricFactors (const GridFunction &nodes, const IntegrationRule &ir, int flags, MemoryType d_mt=MemoryType::DEFAULT)
 

Public Attributes

const Meshmesh
 
const IntegrationRuleIntRule
 
int computed_factors
 
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...
 

Detailed Description

Structure for storing mesh geometric factors: coordinates, Jacobians, and determinants of the Jacobians.

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

Definition at line 1915 of file mesh.hpp.

Member Enumeration Documentation

◆ FactorFlags

Enumerator
COORDINATES 
JACOBIANS 
DETERMINANTS 

Definition at line 1927 of file mesh.hpp.

Constructor & Destructor Documentation

◆ GeometricFactors() [1/2]

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

Definition at line 12077 of file mesh.cpp.

◆ GeometricFactors() [2/2]

mfem::GeometricFactors::GeometricFactors ( const GridFunction nodes,
const IntegrationRule ir,
int  flags,
MemoryType  d_mt = MemoryType::DEFAULT 
)

Definition at line 12091 of file mesh.cpp.

Member Data Documentation

◆ computed_factors

int mfem::GeometricFactors::computed_factors

Definition at line 1925 of file mesh.hpp.

◆ detJ

Vector mfem::GeometricFactors::detJ

Determinants of the Jacobians at all quadrature points.

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

  • NQ = number of quadrature points per element, and
  • NE = number of elements in the mesh.

Definition at line 1962 of file mesh.hpp.

◆ IntRule

const IntegrationRule* mfem::GeometricFactors::IntRule

Definition at line 1924 of file mesh.hpp.

◆ J

Vector mfem::GeometricFactors::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 NE) where

  • NQ = number of quadrature points per element,
  • SDIM = space dimension of the mesh = mesh.SpaceDimension(),
  • DIM = dimension of the mesh = mesh.Dimension(), and
  • NE = number of elements in the mesh.

Definition at line 1956 of file mesh.hpp.

◆ mesh

const Mesh* mfem::GeometricFactors::mesh

Definition at line 1923 of file mesh.hpp.

◆ X

Vector mfem::GeometricFactors::X

Mapped (physical) coordinates of all quadrature points.

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

  • NQ = number of quadrature points per element,
  • SDIM = space dimension of the mesh = mesh.SpaceDimension(), and
  • NE = number of elements in the mesh.

Definition at line 1947 of file mesh.hpp.


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