Class for the finite difference like gradient method (only working on Cartesian mesh with/without AMR).
More...
#include <GradientFiniteDifference.h>
Inherits Gradient.
Class for the finite difference like gradient method (only working on Cartesian mesh with/without AMR).
◆ GradientFiniteDifference()
| GradientFiniteDifference::GradientFiniteDifference |
( |
| ) |
|
◆ ~GradientFiniteDifference()
| GradientFiniteDifference::~GradientFiniteDifference |
( |
| ) |
|
|
override |
◆ computeGradients()
| void GradientFiniteDifference::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 numbers |
Reimplemented from Gradient.
The documentation for this class was generated from the following files: