PLUTO  4.4-patch2
Functions
mp5_states.c File Reference

MP5 states. More...

#include "pluto.h"

Functions

void States (const Sweep *sweep, int beg, int end, Grid *grid)
 
double MP5_States (double *F, int i, int dir)
 
double WENOZ_States (double *F, int j, int dir)
 

Detailed Description

Compute interface states using the 5th-order monotonicity-preserving schemes of Suresh & Huynh (1997).

Author
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
Jun 24, 2021

References

Function Documentation

◆ MP5_States()

double MP5_States ( double *  F,
int  i,
int  dir 
)

Monotonicity-preserving reconstruction of Suresh-Huynh, JCP (1997) 136.

Parameters
[in]Fa 1D array to be reconstructed
[in]jthe point at which reconstruction is needed.
[in]diran integer with value +1/-1 giving the orientation
Returns
On output it returns the right-edge value.

◆ States()

void States ( const Sweep sweep,
int  beg,
int  end,
Grid grid 
)

Compute states using piecewise linear interpolation.

Parameters
[in]sweeppointer to a Sweep structure
[in]begstarting point where vp and vm must be computed
[in]endfinal point where vp and vm must be computed
[in]gridpointer to array of Grid structures
Returns
This function has no return value.

◆ WENOZ_States()

double WENOZ_States ( double *  F,
int  j,
int  dir 
)

Monotonicity-preserving reconstruction of Suresh-Huynh, JCP (1997) 136.

Parameters
[in]Fa 1D array to be reconstructed
[in]jthe point at which reconstruction is needed.
Returns
On output it returns the right-edge value.