ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
GradientGreenGauss Class Reference

Class for the Green-Gauss gradient method working on all mesh types. More...

#include <GradientGreenGauss.h>

Inherits Gradient.

Collaboration diagram for GradientGreenGauss:
[legend]

Public Member Functions

 GradientGreenGauss ()
 ~GradientGreenGauss () override
void addGradInterface (Coord &grad, CellInterface &cellInterface, Cell &cell, double const &faceValue)
 Add the contribution of the interface to build the cell gradient.
void computeGradients (Cell *cell, std::vector< Coord > &grads, const std::vector< Variable > &nameVariables, const std::vector< int > &numPhases) override
 Compute gradients (temperature, velocity, density) of a cell.
Public Member Functions inherited from Gradient
 Gradient ()
virtual ~Gradient ()
virtual const TypeGrad & getType () const

Additional Inherited Members

Protected Attributes inherited from Gradient
TypeGrad m_type

Detailed Description

Class for the Green-Gauss gradient method working on all mesh types.

Constructor & Destructor Documentation

◆ GradientGreenGauss()

GradientGreenGauss::GradientGreenGauss ( )

◆ ~GradientGreenGauss()

GradientGreenGauss::~GradientGreenGauss ( )
override

Member Function Documentation

◆ 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
gradGradient to add the interface contribution
cellInterfaceCell interface of interest used to set outward normal
cellCell whose gradient must be calculated (here to access its element)
faceValueValue of the face interpolated using barycenter
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
gradsArray 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))
nameVariablesName of the variable for which the gradient is calculated
numPhasesPhases number's

Reimplemented from Gradient.

Here is the call graph for this function:

The documentation for this class was generated from the following files: