PLUTO
4.4-patch2
|
Compute coefficients for high-order reconstruction methods. More...
#include "pluto.h"
Functions | |
static void | PPM_CartCoeff (double **, double **, int, int) |
static void | PPM_FindWeights (double **, double **, int, Grid *) |
void | PPM_CoefficientsSet (Grid *grid) |
void | PPM_CoefficientsGet (PPM_Coeffs *ppm_coeffs, int dir) |
Compute the interpolation coefficients needed by high-order (3rd, 4th and 5th) reconstruction methods such as PPM or WENO3. The function PPM_CoefficientsSet() must be called to initialize arrays and compute the coefficients after the grid has been generated. The function PPM_CoefficientsGet() can be used at anytime to retrieve the coefficients in a particular direction.
Reconstruction coefficients are computed in different ways depending on the geometry and grid uniformity:
Reference
|
static |
Compute the standard PPM weigth coefficients for a uniformly spaced Cartesian grid.
void PPM_CoefficientsGet | ( | PPM_Coeffs * | ppm_coeffs, |
int | dir | ||
) |
Retrieve interpolation coefficients for parabolic reconstruction. This function can be called only if the previous one has been completed already.
[in] | grid | pointer to grid structure |
void PPM_CoefficientsSet | ( | Grid * | grid | ) |
Compute interpolation coefficients for PPM in every coordinate system.
|
static |
Find the coefficients numerically by inverting the beta matrix We define the matrix beta[0...n][0...j] so we need to index it as beta[k][j-jb]