PLUTO  4.4-patch2
Functions
ppm_coeffs.c File Reference

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)
 

Detailed Description

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:

Authors
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
June 23, 2017

Reference

Function Documentation

◆ PPM_CartCoeff()

void PPM_CartCoeff ( double **  wp,
double **  wm,
int  beg,
int  end 
)
static

Compute the standard PPM weigth coefficients for a uniformly spaced Cartesian grid.

◆ PPM_CoefficientsGet()

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.

Parameters
[in]gridpointer to grid structure
Returns
a pointer to a static structure containing the coefficients (actually pointers to array of coefficients) in the direction given by g_dir.

◆ PPM_CoefficientsSet()

void PPM_CoefficientsSet ( Grid grid)

Compute interpolation coefficients for PPM in every coordinate system.

◆ PPM_FindWeights()

void PPM_FindWeights ( double **  wp,
double **  wm,
int  dir,
Grid grid 
)
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]