PLUTO
|
Inversion scheme for RHD using a pressure fix. More...
#include "pluto.h"
Go to the source code of this file.
Macros | |
#define | MAX_ITER 20 |
Functions | |
static double | VelocitySquareFunc (double, Map_param *) |
int | PressureFix (Map_param *par) |
Inversion scheme for RHD using a pressure fix.
Fix p to a small value, solve for the square of velocity. This step involved re-computing W at each step of the iteration. Once the root has been found, we recompute total energy E. Return 0 if succesful, 1 otherwise.
Definition in file pressure_fix.c.
#define MAX_ITER 20 |
Definition at line 19 of file pressure_fix.c.
int PressureFix | ( | Map_param * | par | ) |
Fix p to a small value, solve for the square of velocity by using secant algorithm applied to Eq (9) of Mignone, Plewa & Bodo (2005). This step involved re-computing W at each step of the iteration. Once the root has been found, we recompute total energy E. Return 0 if succesful, 1 otherwise.
Definition at line 22 of file pressure_fix.c.
|
static |
Implement Eq (A3).
Definition at line 79 of file pressure_fix.c.