Read-only view of one variable's cell-centered linear finite-volume gradient values. More...
#include <LinearFVGradientReader.h>
Public Types | |
| using | GradientContainer = std::vector< std::unique_ptr< libMesh::NumericVector< libMesh::Number > > > |
| One vector per spatial component of the cell-centered gradient. | |
Public Member Functions | |
| LinearFVGradientReader (const SystemBase &sys, const GradientContainer &components, const FVGradientMethod &method, unsigned int variable_number) | |
| const GradientContainer & | components () const |
| Access the underlying component vectors keyed by spatial direction. | |
| const SystemBase & | system () const |
| System whose DOF map indexes the stored values. | |
| const FVGradientMethod & | method () const |
| Method object that produces the stored values. | |
| Real | component (const ElemInfo &elem_info, unsigned int index) const |
| Read one gradient component at an element. | |
| RealVectorValue | gradient (const ElemInfo &elem_info) const |
| Read the full gradient at an element. | |
| RealVectorValue | gradient (const FaceInfo &fi) const |
| Read the full gradient interpolated to a face. | |
Private Attributes | |
| const SystemBase & | _sys |
| System the variable belongs to. | |
| const unsigned int | _system_number |
| System number cached for hot lookups (from faces to dofs). | |
| const GradientContainer & | _components |
| Component vectors keyed by spatial direction. | |
| const FVGradientMethod & | _method |
| Method object that produces the stored values. | |
| const unsigned int | _variable_number |
| Variable number whose gradients are read by this object. | |
Read-only view of one variable's cell-centered linear finite-volume gradient values.
Definition at line 32 of file LinearFVGradientReader.h.
| using LinearFVGradientReader::GradientContainer = std::vector<std::unique_ptr<libMesh::NumericVector<libMesh::Number> >> |
One vector per spatial component of the cell-centered gradient.
Definition at line 36 of file LinearFVGradientReader.h.
| LinearFVGradientReader::LinearFVGradientReader | ( | const SystemBase & | sys, |
| const GradientContainer & | components, | ||
| const FVGradientMethod & | method, | ||
| unsigned int | variable_number | ||
| ) |
| sys | System that owns the variables and gradient values. |
| components | Component vectors that store the gradient values. |
| method | Gradient method that produces the values read by this object. |
| variable_number | Variable number whose gradient this object reads. |
Definition at line 22 of file LinearFVGradientReader.C.
Read one gradient component at an element.
| elem_info | Element whose cell-centered gradient should be read. |
| index | Index of the spatial component of the gradient. |
Definition at line 35 of file LinearFVGradientReader.C.
Referenced by gradient().
|
inline |
Access the underlying component vectors keyed by spatial direction.
Definition at line 50 of file LinearFVGradientReader.h.
| RealVectorValue LinearFVGradientReader::gradient | ( | const ElemInfo & | elem_info | ) | const |
Read the full gradient at an element.
| elem_info | Element whose cell-centered gradient should be read. |
Definition at line 43 of file LinearFVGradientReader.C.
Referenced by LinearFVAnisotropicDiffusion::computeBoundaryRHSContribution(), LinearFVDiffusion::computeBoundaryRHSContribution(), LinearFVAnisotropicDiffusion::computeFluxRHSContribution(), LinearFVDiffusion::computeFluxRHSContribution(), gradient(), and LinearFVAdvection::setupFaceData().
| RealVectorValue LinearFVGradientReader::gradient | ( | const FaceInfo & | fi | ) | const |
Read the full gradient interpolated to a face.
| fi | Face whose interpolated gradient should be read. |
Definition at line 54 of file LinearFVGradientReader.C.
|
inline |
Method object that produces the stored values.
Definition at line 56 of file LinearFVGradientReader.h.
Referenced by LinearFVGradientInterface::updateFVGradient().
|
inline |
System whose DOF map indexes the stored values.
Definition at line 53 of file LinearFVGradientReader.h.
Referenced by LinearFVGradientInterface::updateFVGradient().
|
private |
Component vectors keyed by spatial direction.
Definition at line 85 of file LinearFVGradientReader.h.
Referenced by component(), and components().
|
private |
Method object that produces the stored values.
Definition at line 88 of file LinearFVGradientReader.h.
Referenced by method().
|
private |
System the variable belongs to.
Definition at line 79 of file LinearFVGradientReader.h.
Referenced by system().
|
private |
System number cached for hot lookups (from faces to dofs).
Definition at line 82 of file LinearFVGradientReader.h.
Referenced by component(), and gradient().
|
private |
Variable number whose gradients are read by this object.
Definition at line 91 of file LinearFVGradientReader.h.
Referenced by component(), and gradient().