Class for the Green-Gauss gradient method working on all mesh types.
More...
#include <GradientGreenGauss.h>
Inherits Gradient.
Class for the Green-Gauss gradient method working on all mesh types.
◆ GradientGreenGauss()
| GradientGreenGauss::GradientGreenGauss |
( |
| ) |
|
◆ ~GradientGreenGauss()
| GradientGreenGauss::~GradientGreenGauss |
( |
| ) |
|
|
override |
◆ addGradInterface()
| void GradientGreenGauss::addGradInterface |
( |
Coord & | grad, |
|
|
CellInterface & | cellInterface, |
|
|
Cell & | cell, |
|
|
double const & | faceValue ) |
Add the contribution of the interface to build the cell gradient.
- Parameters
-
| grad | Gradient to add the interface contribution |
| cellInterface | Cell interface of interest used to set outward normal |
| cell | Cell whose gradient must be calculated (here to access its element) |
| faceValue | Value of the face interpolated using barycenter |
◆ computeGradients()
| void GradientGreenGauss::computeGradients |
( |
Cell * | cell, |
|
|
std::vector< Coord > & | grads, |
|
|
const std::vector< Variable > & | nameVariables, |
|
|
const std::vector< int > & | numPhases ) |
|
overridevirtual |
Compute gradients (temperature, velocity, density) of a cell.
- Parameters
-
| grads | Array of desired gradients, e.g. for temperature each component represents phase temperature and for velocity each component represents the gradient of a velocity component (grad(u), grad(v), grad(w)) |
| nameVariables | Name of the variable for which the gradient is calculated |
| numPhases | Phases number's |
Reimplemented from Gradient.
The documentation for this class was generated from the following files: