PLUTO  4.0
 All Data Structures Files Functions Variables Enumerations Macros Pages
Functions
energy_solve.c File Reference

Inversion scheme for RMHD using total energy density. More...

#include "pluto.h"

Functions

int EnergySolve (Map_param *par)
 

Detailed Description

Try to recover gas pressure from conserved variables {D, m, E, B} using the algorithm outlined in Section A3 of Mignone & McKinney (2007). Specifically, we solve Eq. (A4) or (A6) depending on the value of SUBTRACT_DENSITY (YES/NO). Here W = rho*h*lorentz^2, E, D, etc... have the same meaning as in the mentioned paper.

References

Author
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
Oct 4, 2012

Function Documentation

int EnergySolve ( Map_param par)

Solve f(W) = 0, where f(W) is Equation (A4) or (A6).

Returns
Return (0) is successful, (1) otherwise.