36 const std::unordered_set<unsigned int> & variable_numbers)
const
43 FaceInfoRange face_info_range(fe_problem.mesh().ownedFaceInfoBegin(),
44 fe_problem.mesh().ownedFaceInfoEnd());
47 fe_problem, system, gradient, variable_numbers);
50 fe_problem.checkExceptionAndStopSolve();
52 for (
auto & vec : gradient)
58 ElemInfoRange elem_info_range(fe_problem.mesh().ownedElemInfoBegin(),
59 fe_problem.mesh().ownedElemInfoEnd());
62 fe_problem, system, gradient, variable_numbers);
65 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
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()
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.
FVGreenGaussGradient(const InputParameters ¶ms)
Base class for a system (of equations)
FEProblemBase & feProblem()
void parallel_reduce(const Range &range, Body &body, unsigned int n_threads=libMesh::n_threads())