Read-only view of one variable's cell-centered linear finite-volume gradient values. More...
#include <LinearFVGradientReader.h>
Public Types | |
| using | GradientContainer = std::vector< libMesh::NumericVector< libMesh::Number > * > |
| One vector per spatial component of the cell-centered gradient. | |
| using | GradientStateContainer = std::vector< GradientContainer > |
| Gradient fields indexed by solution time state. | |
Public Member Functions | |
| LinearFVGradientReader (const SystemBase &sys, const GradientStateContainer &state_values, const FVGradientMethod &method, unsigned int variable_number) | |
| const GradientContainer & | components () const |
| Access the underlying component vectors keyed by spatial direction. | |
| const GradientContainer & | components (const Moose::StateArg &state) const |
| Access the component vectors for a solution state. | |
| 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. | |
| Real | component (const ElemInfo &elem_info, unsigned int index, const Moose::StateArg &state) const |
| Read one gradient component at an element and solution state. | |
| RealVectorValue | gradient (const ElemInfo &elem_info) const |
| Read the full gradient at an element. | |
| RealVectorValue | gradient (const ElemInfo &elem_info, const Moose::StateArg &state) const |
| Read the full gradient at an element and solution state. | |
| RealVectorValue | gradient (const FaceInfo &fi) const |
| Read the full gradient interpolated to a face. | |
| RealVectorValue | gradient (const FaceInfo &fi, const Moose::StateArg &state) const |
| Read the full gradient interpolated to a face at a solution state. | |
Private Member Functions | |
| const GradientContainer & | stateComponents (const Moose::StateArg &state) const |
| Validate and select the component vectors for a solution state. | |
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 GradientStateContainer & | _state_values |
| Gradient fields indexed by solution time state. | |
| 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<libMesh::NumericVector<libMesh::Number> *> |
One vector per spatial component of the cell-centered gradient.
Definition at line 36 of file LinearFVGradientReader.h.
| using LinearFVGradientReader::GradientStateContainer = std::vector<GradientContainer> |
Gradient fields indexed by solution time state.
Definition at line 39 of file LinearFVGradientReader.h.
| LinearFVGradientReader::LinearFVGradientReader | ( | const SystemBase & | sys, |
| const GradientStateContainer & | state_values, | ||
| const FVGradientMethod & | method, | ||
| unsigned int | variable_number | ||
| ) |
| sys | System that owns the variables and gradient values. |
| state_values | Gradient fields indexed by solution time state. |
| method | Gradient method that produces the values read by this object. |
| variable_number | Variable number whose gradient this object reads. |
Definition at line 23 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 37 of file LinearFVGradientReader.C.
Referenced by component(), and gradient().
| Real LinearFVGradientReader::component | ( | const ElemInfo & | elem_info, |
| unsigned int | index, | ||
| const Moose::StateArg & | state | ||
| ) | const |
Read one gradient component at an element and solution state.
| elem_info | Element whose cell-centered gradient should be read. |
| index | Index of the spatial component of the gradient. |
| state | State whose gradient should be read. |
Definition at line 93 of file LinearFVGradientReader.C.
| const LinearFVGradientReader::GradientContainer & LinearFVGradientReader::components | ( | ) | const |
Access the underlying component vectors keyed by spatial direction.
Definition at line 43 of file LinearFVGradientReader.C.
Referenced by component(), and components().
| const LinearFVGradientReader::GradientContainer & LinearFVGradientReader::components | ( | const Moose::StateArg & | state | ) | const |
Access the component vectors for a solution state.
| state | State whose gradient components should be accessed. |
Definition at line 49 of file LinearFVGradientReader.C.
| 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 105 of file LinearFVGradientReader.C.
Referenced by LinearFVAnisotropicDiffusion::computeBoundaryRHSContribution(), LinearFVDiffusion::computeBoundaryRHSContribution(), LinearFVAnisotropicDiffusion::computeFluxRHSContribution(), LinearFVDiffusion::computeFluxRHSContribution(), gradient(), gradient(), gradient(), and LinearFVAdvection::setupFaceData().
| RealVectorValue LinearFVGradientReader::gradient | ( | const ElemInfo & | elem_info, |
| const Moose::StateArg & | state | ||
| ) | const |
Read the full gradient at an element and solution state.
| elem_info | Element whose cell-centered gradient should be read. |
| state | State whose gradient should be read. |
Definition at line 111 of file LinearFVGradientReader.C.
| 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 122 of file LinearFVGradientReader.C.
| RealVectorValue LinearFVGradientReader::gradient | ( | const FaceInfo & | fi, |
| const Moose::StateArg & | state | ||
| ) | const |
Read the full gradient interpolated to a face at a solution state.
| fi | Face whose interpolated gradient should be read. |
| state | State whose gradient should be read. |
Definition at line 128 of file LinearFVGradientReader.C.
|
inline |
Method object that produces the stored values.
Definition at line 65 of file LinearFVGradientReader.h.
Referenced by LinearFVGradientManager::updateFVGradient().
|
private |
Validate and select the component vectors for a solution state.
Definition at line 55 of file LinearFVGradientReader.C.
Referenced by component(), and components().
|
inline |
System whose DOF map indexes the stored values.
Definition at line 62 of file LinearFVGradientReader.h.
Referenced by LinearFVGradientManager::updateFVGradient().
|
private |
Method object that produces the stored values.
Definition at line 123 of file LinearFVGradientReader.h.
Referenced by method(), and stateComponents().
|
private |
Gradient fields indexed by solution time state.
Definition at line 120 of file LinearFVGradientReader.h.
Referenced by LinearFVGradientReader(), and stateComponents().
|
private |
System the variable belongs to.
Definition at line 114 of file LinearFVGradientReader.h.
Referenced by stateComponents(), and system().
|
private |
System number cached for hot lookups (from faces to dofs).
Definition at line 117 of file LinearFVGradientReader.h.
Referenced by component(), and gradient().
|
private |
Variable number whose gradients are read by this object.
Definition at line 126 of file LinearFVGradientReader.h.
Referenced by component(), gradient(), and stateComponents().