https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FVGreenGaussGradient.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "FVGradientMethod.h"
13
14#include <utility>
15
17class ElemInfo;
18class FaceInfo;
19template <typename>
21
26{
27public:
30
31protected:
33 SystemBase & system,
34 GradientContainer & gradient,
35 const std::unordered_set<unsigned int> & variable_numbers) const override;
36
38 using InternalFaceValues = std::pair<Real, Real>;
39
53 const ElemInfo & elem_info,
54 const ElemInfo & neighbor_info,
55 const MooseLinearVariableFV<Real> & variable,
56 Real elem_value,
57 Real neighbor_value) const;
58
60};
The gradient in a volume using Green Gauss theorem and a cell-centered finite-volume approximation ca...
Class used for caching additional information for elements such as the volume and centroid.
Definition ElemInfo.h:26
Base class for linear finite-volume cell-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.
This data structure is used to store geometric and variable related metadata about each cell face in ...
Definition FaceInfo.h:38
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
This class provides variable solution interface for linear finite volume problems.
Base class for a system (of equations)
Definition SystemBase.h:87