MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
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.
 
Vector J
 Jacobians of the element transformations at all quadrature points.
 
Vector detJ
 Determinants of the Jacobians at all quadrature points.
 

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 2789 of file mesh.hpp.

Member Enumeration Documentation

◆ FactorFlags

Enumerator
COORDINATES 
JACOBIANS 
DETERMINANTS 

Definition at line 2800 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 14183 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 14197 of file mesh.cpp.

Member Data Documentation

◆ computed_factors

int mfem::GeometricFactors::computed_factors

Definition at line 2798 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 2835 of file mesh.hpp.

◆ IntRule

const IntegrationRule* mfem::GeometricFactors::IntRule

Definition at line 2797 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 2829 of file mesh.hpp.

◆ mesh

const Mesh* mfem::GeometricFactors::mesh

Definition at line 2796 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 2820 of file mesh.hpp.


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