An object FineMesh is a regular fine mesh, used for finite volume computations. It is not used for multiresolution computations. More...
#include <FineMesh.h>
Public Member Functions | |
FineMesh () | |
Constructor of FineMesh class Generates a regular fine mesh containing 2**(Dimension*ScaleNb) cells. The cell-averages are initialized from the initial condition contained in file carmen.ini. More... | |
~FineMesh () | |
Destructor the regular fine mesh. More... | |
void | store () |
Stores cell-average values into temporary cell-average values. More... | |
void | storeGrad () |
Stores gradient values into temporary gradient values. More... | |
void | computeDivergence (int) |
Computes the divergence vector with the space discretization scheme. More... | |
void | computeDivergence_cell (int) |
Computes one Cell Divirgence. More... | |
void | RungeKutta_cell (int) |
Computes one Runge-Kutta step. More... | |
void | RungeKutta (int) |
Computes the Runge-Kutta step. More... | |
void | computeIntegral () |
Computes integral values like e.g. flame velocity, global error, etc. More... | |
void | computeCorrection (int) |
Computes divergence cleaning source term (only for MHD). More... | |
void | computeCorrection_cell (int) |
Computes divergence cleaning source term (only for MHD) at one cell. More... | |
void | computeGradient (int) |
Computes velocity gradient (only for Navier-Stokes). one cell. More... | |
void | computeGradient_cell (int) |
Computes velocity gradient (only for Navier-Stokes). each cells. More... | |
void | computeTimeAverage () |
Computes the time-average value in every cell. More... | |
void | checkStability () const |
Checks if the computation is numerically unstable, i.e. if one of the cell-averages is overflow. In case of numerical instability, the computation is stopped and a message appears. More... | |
void | writeHeader (const char *FileName) const |
Write header for GNUplot, Data Explorer, TecPLot and VTK into file FileName. More... | |
void | writeAverage (const char *FileName) |
Write cell-averages for GNUplot, Data Explorer, TecPLot and VTK into file FileName. More... | |
void | writeTimeAverage (const char *FileName) const |
Write time-averages into file FileName. More... | |
void | backup () |
Backs up the tree structure and the cell-averages into a file carmen.bak. In further computations, the data can be recovered using Restore(). More... | |
void | restore () |
Restores the tree structure and the cell-averages from the file carmen.bak. This file was created by the method Backup(). More... | |
Public Attributes | |
Cell *** | Neighbour_iL |
Cell *** | Neighbour_iU |
Cell *** | Neighbour_jL |
Cell *** | Neighbour_jU |
Cell *** | Neighbour_kL |
Cell *** | Neighbour_kU |
Cell * | MeshCell |
An object FineMesh is a regular fine mesh, used for finite volume computations. It is not used for multiresolution computations.
It contains an array of cells *MeshCell.
NOTE: for reasons of simplicity, only periodic and Neuman boundary conditions have been implemented.
FineMesh::FineMesh | ( | ) |
Constructor of FineMesh class Generates a regular fine mesh containing 2**(Dimension*ScaleNb) cells. The cell-averages are initialized from the initial condition contained in file carmen.ini.
!!DEBUG
FineMesh::~FineMesh | ( | ) |
Destructor the regular fine mesh.
void FineMesh::backup | ( | ) |
Backs up the tree structure and the cell-averages into a file carmen.bak. In further computations, the data can be recovered using Restore().
void FineMesh::checkStability | ( | ) | const |
Checks if the computation is numerically unstable, i.e. if one of the cell-averages is overflow. In case of numerical instability, the computation is stopped and a message appears.
void FineMesh::computeCorrection | ( | int | mode | ) |
Computes divergence cleaning source term (only for MHD).
int | It can be zero or one. Associated to the time integration scheme. |
void FineMesh::computeCorrection_cell | ( | int | n | ) |
Computes divergence cleaning source term (only for MHD) at one cell.
int | It can be zero or one. Associated to the time integration scheme. |
void FineMesh::computeDivergence | ( | int | mode | ) |
Computes the divergence vector with the space discretization scheme.
int | It can be zero or one. Associated to the time integration scheme. |
void FineMesh::computeDivergence_cell | ( | int | n | ) |
Computes one Cell Divirgence.
int | It can be zero or one. Associated to the time integration scheme. |
2D resistive part of the model added to the Flux
void FineMesh::computeGradient | ( | int | mode | ) |
Computes velocity gradient (only for Navier-Stokes). one cell.
int | It can be zero or one. Associated to the time integration scheme. |
void FineMesh::computeGradient_cell | ( | int | n | ) |
Computes velocity gradient (only for Navier-Stokes). each cells.
int | It can be zero or one. Associated to the time integration scheme. |
void FineMesh::computeIntegral | ( | ) |
Computes integral values like e.g. flame velocity, global error, etc.
void FineMesh::computeTimeAverage | ( | ) |
Computes the time-average value in every cell.
void FineMesh::restore | ( | ) |
Restores the tree structure and the cell-averages from the file carmen.bak. This file was created by the method Backup().
void FineMesh::RungeKutta | ( | int | mode | ) |
Computes the Runge-Kutta step.
int | It can be zero or one. Associated to the time integration scheme. |
void FineMesh::RungeKutta_cell | ( | int | n | ) |
Computes one Runge-Kutta step.
int | It can be zero or one. Associated to the time integration scheme. |
void FineMesh::store | ( | ) |
Stores cell-average values into temporary cell-average values.
void FineMesh::storeGrad | ( | ) |
Stores gradient values into temporary gradient values.
void FineMesh::writeAverage | ( | const char * | FileName | ) |
Write cell-averages for GNUplot, Data Explorer, TecPLot and VTK into file FileName.
FileName | Name of the file to write. |
void FineMesh::writeHeader | ( | const char * | FileName | ) | const |
Write header for GNUplot, Data Explorer, TecPLot and VTK into file FileName.
FileName | Name of the file to write. |
void FineMesh::writeTimeAverage | ( | const char * | FileName | ) | const |
Write time-averages into file FileName.
FileName | Name of the file to write. |
Cell* FineMesh::MeshCell |
Array of cells
Cell*** FineMesh::Neighbour_iL |
Parallel variable
Cell *** FineMesh::Neighbour_iU |
Parallel variable
Cell *** FineMesh::Neighbour_jL |
Parallel variable
Cell *** FineMesh::Neighbour_jU |
Parallel variable
Cell *** FineMesh::Neighbour_kL |
Parallel variable
Cell *** FineMesh::Neighbour_kU |
Parallel variable