Serac  0.1
Serac is an implicit thermal strucural mechanics simulation code.
Public Member Functions | Public Attributes | List of all members
serac::GeometricFactors Struct Reference

a class that computes and stores positions and jacobians at each quadrature point More...

#include <geometric_factors.hpp>

Public Member Functions

 GeometricFactors ()
 default ctor, leaving this object uninitialized
 
 GeometricFactors (const Domain &domain, int q, mfem::Geometry::Type elem_geom)
 calculate positions and jacobians for quadrature points belonging to elements with the specified geometry, belonging to the provided mesh. More...
 
 GeometricFactors (const Domain &domain, int q, mfem::Geometry::Type elem_geom, FaceType type)
 calculate positions and jacobians for quadrature points belonging to boundary elements with the specified geometry, belonging to the provided mesh. More...
 

Public Attributes

mfem::Vector X
 Mapped (physical) coordinates of all quadrature points. More...
 
mfem::Vector J
 Jacobians of the element transformations at all quadrature points. More...
 
std::vector< int > elements
 list of element indices that are part of the associated domain
 
std::size_t num_elements
 the number of elements in the domain
 

Detailed Description

a class that computes and stores positions and jacobians at each quadrature point

Note
analogous to mfem::GeometricFactors, except that it implements the position/jacobian calculations on boundary elements and on simplex elements

Definition at line 16 of file geometric_factors.hpp.

Constructor & Destructor Documentation

◆ GeometricFactors() [1/2]

serac::GeometricFactors::GeometricFactors ( const Domain domain,
int  q,
mfem::Geometry::Type  elem_geom 
)

calculate positions and jacobians for quadrature points belonging to elements with the specified geometry, belonging to the provided mesh.

Parameters
domainthe domain of integration
qa parameter controlling the number of quadrature points per element
elem_geomwhich kind of element geometry to select

Definition at line 62 of file geometric_factors.cpp.

◆ GeometricFactors() [2/2]

serac::GeometricFactors::GeometricFactors ( const Domain domain,
int  q,
mfem::Geometry::Type  elem_geom,
FaceType  type 
)

calculate positions and jacobians for quadrature points belonging to boundary elements with the specified geometry, belonging to the provided mesh.

Parameters
domainthe domain of integration
qa parameter controlling the number of quadrature points per element
elem_geomwhich kind of element geometry to select
typewhether or not the faces are on the boundary (supported) or interior (unsupported)

Definition at line 140 of file geometric_factors.cpp.

Member Data Documentation

◆ J

mfem::Vector serac::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 58 of file geometric_factors.hpp.

◆ X

mfem::Vector serac::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 49 of file geometric_factors.hpp.


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