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

Collect various thermodynamic functions for the HD module. More...

#include "pluto.h"

Functions

void SoundSpeed2 (double **u, double *cs2, double *h, int beg, int end, int pos, Grid *grid)
 
void Enthalpy (double **uprim, double *h, int beg, int end)
 
void Entropy (double **v, double *s, int is, int ie)
 

Detailed Description

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

Function Documentation

void Enthalpy ( double **  uprim,
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.
void Entropy ( double **  v,
double *  s,
int  is,
int  ie 
)

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.
void SoundSpeed2 ( double **  u,
double *  cs2,
double *  h,
int  beg,
int  end,
int  pos,
Grid grid 
)

Define the square of the sound speed.

Parameters
[in]u1D array of primitive quantities
[out]cs21D array containing the square of the sound speed
[in]h1D array of enthalpy values
[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.