Class used for caching additional information for elements such as the volume and centroid. More...
#include <ElemInfo.h>
Public Member Functions | |
ElemInfo (const Elem *const elem) | |
Constructor using a real element from libmesh. More... | |
ElemInfo () | |
Default constructor. More... | |
const Elem * | elem () const |
Real | volume () const |
const Point & | centroid () const |
Real | coordFactor () const |
Real & | coordFactor () |
const std::vector< std::vector< dof_id_type > > & | dofIndices () const |
std::vector< std::vector< dof_id_type > > & | dofIndices () |
SubdomainID | subdomain_id () const |
We return the subdomain ID of the corresponding libmesh element. More... | |
Protected Attributes | |
const Elem *const | _elem |
Reference to the element in libmesh. More... | |
Real | _volume |
Volume of the element. More... | |
Point | _centroid |
Centroid of the element. More... | |
Real | _coord_transform_factor |
Cached coordinate transformation factor. More... | |
std::vector< std::vector< dof_id_type > > | _dof_indices |
Cached dof indices mainly for segregated linear FV evaluations with the following structure: _dof_indices[system_number][variable_number] = dof_index Systems with no FV variables will store an empty vector and should not be accessed. More... | |
Class used for caching additional information for elements such as the volume and centroid.
This also supports the ghost elements used in the finite volume setting (for the time being).
Definition at line 25 of file ElemInfo.h.
ElemInfo::ElemInfo | ( | const Elem *const | elem | ) |
Constructor using a real element from libmesh.
Definition at line 14 of file ElemInfo.C.
|
inline |
Default constructor.
Definition at line 32 of file ElemInfo.h.
|
inline |
Definition at line 36 of file ElemInfo.h.
Referenced by FaceInfo::computeBoundaryCoefficients(), FVInitialConditionTempl< T >::computeElement(), FaceInfo::computeInternalCoefficients(), FaceInfo::elemCentroid(), FaceInfo::neighborCentroid(), and FaceInfo::skewnessCorrectionVector().
|
inline |
Definition at line 37 of file ElemInfo.h.
|
inline |
Definition at line 38 of file ElemInfo.h.
|
inline |
Definition at line 39 of file ElemInfo.h.
Referenced by LinearFVFluxKernel::addMatrixContribution(), LinearFVFluxKernel::addRightHandSideContribution(), MooseMesh::cacheFVElementalDoFs(), FVInitialConditionTempl< T >::computeElement(), MooseLinearVariableFV< Real >::getElemValue(), MooseLinearVariableFV< Real >::gradSln(), and LinearFVElementalKernel::setCurrentElemInfo().
|
inline |
Definition at line 40 of file ElemInfo.h.
|
inline |
Definition at line 34 of file ElemInfo.h.
Referenced by MooseMesh::cacheFVElementalDoFs(), FaceInfo::computeInternalCoefficients(), LinearFVReaction::computeMatrixContribution(), LinearFVTimeDerivative::computeMatrixContribution(), LinearFVSource::computeRightHandSideContribution(), FaceInfo::elem(), FaceInfo::elemPtr(), FaceInfo::FaceInfo(), FaceInfo::neighbor(), FaceInfo::neighborPtr(), and LinearFVTimeDerivative::setCurrentElemInfo().
|
inline |
We return the subdomain ID of the corresponding libmesh element.
Definition at line 43 of file ElemInfo.h.
Referenced by LinearFVFluxKernel::addMatrixContribution(), LinearFVFluxKernel::addRightHandSideContribution(), MooseMesh::cacheFVElementalDoFs(), FaceInfo::elemSubdomainID(), MooseLinearVariableFV< Real >::getElemValue(), and FaceInfo::neighborSubdomainID().
|
inline |
Definition at line 35 of file ElemInfo.h.
Referenced by FaceInfo::elemVolume(), and FaceInfo::neighborVolume().
|
protected |
|
protected |
Cached coordinate transformation factor.
Definition at line 53 of file ElemInfo.h.
Referenced by coordFactor().
|
protected |
Cached dof indices mainly for segregated linear FV evaluations with the following structure: _dof_indices[system_number][variable_number] = dof_index Systems with no FV variables will store an empty vector and should not be accessed.
This will be checked through multiple asserts in the assembly routines. Furthermore, if the current variable is not active on the subdomain or if it is an FE variable of this element, we return an invalid_dof_index.
Definition at line 60 of file ElemInfo.h.
Referenced by dofIndices().
|
protected |
Reference to the element in libmesh.
Definition at line 47 of file ElemInfo.h.
Referenced by elem(), and subdomain_id().
|
protected |