PLUTO  4.4-patch2
Functions
eos.c File Reference

Taub-Matthews (TM) EOS for relativistic hydro and MHD. More...

#include "pluto.h"

Functions

void SoundSpeed2 (const State *q, int beg, int end, int pos, Grid *grid)
 
void Enthalpy (double **v, double *h, int beg, int end)
 
void Entropy (double **v, double *s, int beg, int end)
 

Detailed Description

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

Function Documentation

◆ Enthalpy()

void Enthalpy ( double **  v,
double *  h,
int  beg,
int  end 
)

Compute the enthalpy.

Parameters
[in]v1D array of primitive quantities
[in]h1D array of enthalpy values
[in]beginitial index of computation
[in]endfinal index of computation
Returns
This function has no return value.

◆ Entropy()

void Entropy ( double **  v,
double *  s,
int  beg,
int  end 
)

Compute the entropy.

Parameters
[in]v1D array of primitive quantities
[in]s1D array of entropy values
[in]isinitial index of computation
[in]iefinal index of computation
Returns
This function has no return value.

◆ SoundSpeed2()

void SoundSpeed2 ( const State q,
int  beg,
int  end,
int  pos,
Grid grid 
)

Define the square of the sound speed.

Parameters
[in]ppointer to a state structure
[in]beginitial index of computation
[in]endfinal index of computation
[in]posan integer specifying the spatial position inside the cell (only for spatially-dependent EOS)
[in]gridpointer to an array of Grid structures
Returns
This function has no return value.