|
METHOD
|
#include <flux.h>


Public Member Functions | |
| FluxMethod (Data *data, Model *model) | |
| virtual | ~FluxMethod () |
| virtual void | F (double *cons, double *prims, double *aux, double *f, double *fnet)=0 |
| virtual void | fluxReconstruction (double *cons, double *prims, double *aux, double *f, double *frecon, int dir, int vars)=0 |
Public Attributes | |
| Data * | data |
| Model * | model |
Abstract base class for flux reconstruction methods
|
pure virtual |
Numerical flux function.
Pure virtual function to set the API for the numerical flux function. The net flux through a cell is stored in the fnet vector as a result of the state vectors given.
| [in] | *cons | pointer to conserved vector |
| [in] | *prims | pointer to primitive vector |
| [in] | *aux | pointer to auxiliary vector |
| [in] | *f | pointer to a flux work array to store the initial flux vector |
| [in,out] | *fnet | pointer to the array containing the net flux through every cell |
Implemented in FVS.
|
pure virtual |
Flux reconstruction.
Reconstructs the fluxes at the center of the cells to the faces upwind and downwind and computes the difference, giving an approximation of the net flux (in the specified direction) at the cell faces. Method uses a second order WENO reconstruction.
| [in] | *cons | pointer to conserved vector |
| [in] | *prims | pointer to primitive vector |
| [in] | *aux | pointer to auxiliary vector |
| [in] | *f | pointer to a flux work array to store the initial flux vector |
| [in,out] | *frecon | pointer to the array containing the reconstructed values of the fluxes at the cell faces |
| [in] | dir | the direction in which to determine flux reconstruction with (0, 1, 2) = (x, y, z) |
| [in] | vars | size of the vector to reconstruct (saves time when using subgrid models). Default values is -1, which autos to Ncons. |
Implemented in FVS.
| Data* FluxMethod::data |
| Model* FluxMethod::model |