39 Real neighbor_value)
const
42 return {face_value, face_value};
49 const std::unordered_set<unsigned int> & variable_numbers)
const
56 FaceInfoRange face_info_range(fe_problem.mesh().ownedFaceInfoBegin(),
57 fe_problem.mesh().ownedFaceInfoEnd());
60 fe_problem, system, gradient, variable_numbers, *
this);
63 fe_problem.checkExceptionAndStopSolve();
65 for (
auto & vec : gradient)
71 ElemInfoRange elem_info_range(fe_problem.mesh().ownedElemInfoBegin(),
72 fe_problem.mesh().ownedElemInfoEnd());
75 fe_problem, system, gradient, variable_numbers);
78 fe_problem.checkExceptionAndStopSolve();
registerMooseObject("MooseApp", FVGreenGaussGradient)
The gradient in a volume using Green Gauss theorem and a cell-centered finite-volume approximation ca...
StoredRange< MooseMesh::const_face_info_iterator, const FaceInfo * > FaceInfoRange
The gradient in a volume using Green Gauss theorem and a cell-centered finite-volume approximation ca...
StoredRange< MooseMesh::const_elem_info_iterator, const ElemInfo * > ElemInfoRange
Class used for caching additional information for elements such as the volume and centroid.
Base class for linear finite-volume cell-gradient methods.
static InputParameters validParams()
Input parameters shared by all the gradient methods.
std::vector< std::unique_ptr< libMesh::NumericVector< libMesh::Number > > > GradientContainer
One vector per spatial component of the cell-centered gradient.
Green-Gauss cell-centered gradient method for linear finite-volume variables.
static InputParameters validParams()
virtual InternalFaceValues internalFaceValues(const FaceInfo &fi, const ElemInfo &elem_info, const ElemInfo &neighbor_info, const MooseLinearVariableFV< Real > &variable, Real elem_value, Real neighbor_value) const
Return the two Green-Gauss face values on an internal face.
void computeGradientWithoutLimiter(SystemBase &system, GradientContainer &gradient, const std::unordered_set< unsigned int > &variable_numbers) const override
Compute the method-specific gradient before this base class applies any limiter.
std::pair< Real, Real > InternalFaceValues
Element-side and neighbor-side values contributed by an internal face.
FVGreenGaussGradient(const InputParameters ¶ms)
This data structure is used to store geometric and variable related metadata about each cell face in ...
This class provides variable solution interface for linear finite volume problems.
Base class for a system (of equations)
THREAD_ID numThreads() const
FEProblemBase & feProblem()
libMesh::CompareTypes< T, T2 >::supertype linearInterpolation(const T &value1, const T2 &value2, const FaceInfo &fi, const bool one_is_elem, const InterpMethod interp_method=InterpMethod::Average)
A simple linear interpolation of values between cell centers to a cell face.
void parallel_reduce(const Range &range, Body &body, unsigned int n_threads=libMesh::n_threads())