Base class for the gradient method.
More...
#include <Gradient.h>
Inherited by GradientFiniteDifference, and GradientGreenGauss.
Base class for the gradient method.
◆ Gradient()
◆ ~Gradient()
◆ computeGradients()
virtual void Gradient::computeGradients |
( |
Cell * |
, |
|
|
std::vector< Coord > & |
, |
|
|
const std::vector< Variable > & |
, |
|
|
const std::vector< int > & |
|
|
) |
| |
|
inlinevirtual |
Compute gradients of a cell.
- Parameters
-
cell | Cell whose gradient must be calculated |
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 | Phase numbers |
Reimplemented in GradientFiniteDifference, and GradientGreenGauss.
◆ getType()
virtual const TypeGrad & Gradient::getType |
( |
| ) |
const |
|
inlinevirtual |
◆ m_type
The documentation for this class was generated from the following files:
- /Users/fabien/depotsSephiroth/gitLab/ECOGEN/ecogen/src/Gradients/Gradient.h
- /Users/fabien/depotsSephiroth/gitLab/ECOGEN/ecogen/src/Gradients/Gradient.cpp