My Project
programmer's documentation
Functions
cs_hgn_phase_thermo.h File Reference
#include "cs_defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
Include dependency graph for cs_hgn_phase_thermo.h:

Go to the source code of this file.

Functions

void cs_hgn_thermo_define_stiffened_gas (int iph, cs_real_t cv, cs_real_t gamma, cs_real_t pinf, cs_real_t qprim, cs_real_t q)
 Define stiffened gas parameters for phase iph. More...
 
cs_real_t cs_hgn_phase_thermo_entropy_ve (cs_real_t vol, cs_real_t energ, int iph)
 Computation of the entropy of phase iph (0 or 1). More...
 
cs_real_t cs_hgn_phase_thermo_temperature_ve (cs_real_t vol, cs_real_t energ, int iph)
 Computation of the temperature of phase iph. More...
 
cs_real_t cs_hgn_phase_thermo_pressure_ve (cs_real_t vol, cs_real_t energ, int iph)
 Computation of the pressure of phase iph. More...
 
cs_real_t cs_hgn_phase_thermo_internal_energy_tp (cs_real_t T, cs_real_t P, int iph)
 Computation of internal energy of phase iph in plane (T,P). More...
 
cs_real_t cs_hgn_phase_thermo_specific_volume_tp (cs_real_t T, cs_real_t P, int iph)
 Computation of specific volume of phase iph in plane (T,P). More...
 
cs_real_t cs_hgn_phase_thermo_entropy_tp (cs_real_t T, cs_real_t P, int iph)
 Computation of entropy of phase iph in plane (T,P). More...
 
cs_real_t cs_hgn_phase_thermo_internal_energy_sv (cs_real_t s, cs_real_t v, int iph)
 Computation of internal energy of phase iph in plane (s,v). More...
 

Function Documentation

◆ cs_hgn_phase_thermo_entropy_tp()

cs_real_t cs_hgn_phase_thermo_entropy_tp ( cs_real_t  T,
cs_real_t  P,
int  iph 
)

Computation of entropy of phase iph in plane (T,P).

Parameters
[in]Ttemperature
[in]Ppressure
[in]iphindex of phase

Computation of entropy of phase iph in plane (T,P).

   This function returns the specific entropy of phase iph with respect
   to the temperature of phase iph and to the pressure energy of phase iph.
Parameters
[in]Ttemperature (in K)
[in]Ppressure (in Pa)
[in]iphindex of phase

◆ cs_hgn_phase_thermo_entropy_ve()

cs_real_t cs_hgn_phase_thermo_entropy_ve ( cs_real_t  vol,
cs_real_t  energ,
int  iph 
)

Computation of the entropy of phase iph (0 or 1).

   This function returns the entropy of phase iph with respect to the
   specific volume of phase iph and to the specific energy of phase iph.
Parameters
[in]volspecific volume of phase iph
[in]energspecific energy of phase iph
[in]iphindex of phase

Computation of the entropy of phase iph (0 or 1).

   This function returns the entropy of phase iph with respect to the
   specific volume of phase iph and to the specific energy of phase iph.
Parameters
[in]volspecific volume of phase iph (in m^3/kg)
[in]energspecific energy of phase iph (in J/kg)
[in]iphindex of phase

◆ cs_hgn_phase_thermo_internal_energy_sv()

cs_real_t cs_hgn_phase_thermo_internal_energy_sv ( cs_real_t  s,
cs_real_t  v,
int  iph 
)

Computation of internal energy of phase iph in plane (s,v).

Parameters
[in]sentropy
[in]vspecific volume
[in]iphindex of phase

Computation of internal energy of phase iph in plane (s,v).

   This function returns the internal energy of phase iph with respect
   to the specific entropy of phase iph and to the specific volume of
   phase iph.
Parameters
[in]sspecific entropy (in J/kg/K)
[in]vspecific volume (in m^3/kg)
[in]iphindex of phase

◆ cs_hgn_phase_thermo_internal_energy_tp()

cs_real_t cs_hgn_phase_thermo_internal_energy_tp ( cs_real_t  T,
cs_real_t  P,
int  iph 
)

Computation of internal energy of phase iph in plane (T,P).

Parameters
[in]Ttemperature
[in]Ppressure
[in]iphindex of phase

Computation of internal energy of phase iph in plane (T,P).

   This function returns the internal energy of phase iph with respect
   to the temperature of phase iph and to the pressure energy of phase iph.
Parameters
[in]Ttemperature (in K)
[in]Ppressure (in Pa)
[in]iphindex of phase

◆ cs_hgn_phase_thermo_pressure_ve()

cs_real_t cs_hgn_phase_thermo_pressure_ve ( cs_real_t  vol,
cs_real_t  energ,
int  iph 
)

Computation of the pressure of phase iph.

   This function returns the pressure of phase iph with respect to the
   specific volume of phase iph and to the specific energy of phase iph.
Parameters
[in]volthe specific volume of phase iph
[in]energthe specific energy of phase iph
[in]iphindex of phase

Computation of the pressure of phase iph.

   This function returns the pressure of phase iph with respect to the
   specific volume of phase iph and to the specific energy of phase iph.
Parameters
[in]volthe specific volume of phase iph (in m^3/kg)
[in]energthe specific energy of phase iph (in J/kg)
[in]iphindex of phase

◆ cs_hgn_phase_thermo_specific_volume_tp()

cs_real_t cs_hgn_phase_thermo_specific_volume_tp ( cs_real_t  T,
cs_real_t  P,
int  iph 
)

Computation of specific volume of phase iph in plane (T,P).

Parameters
[in]Ttemperature
[in]Ppressure
[in]iphindex of phase

Computation of specific volume of phase iph in plane (T,P).

   This function returns the specific volume of phase iph with respect
   to the temperature of phase iph and to the pressure energy of phase iph.
Parameters
[in]Ttemperature (in K)
[in]Ppressure (in Pa)
[in]iphindex of phase

◆ cs_hgn_phase_thermo_temperature_ve()

cs_real_t cs_hgn_phase_thermo_temperature_ve ( cs_real_t  vol,
cs_real_t  energ,
int  iph 
)

Computation of the temperature of phase iph.

   This function returns the temperature of phase iph with respect to the
   specific volume of phase iph and to the specific energy of phase iph.
Parameters
[in]volthe specific volume of phase iph
[in]energthe specific energy of phase iph
[in]iphindex of phase

Computation of the temperature of phase iph.

   This function returns the temperature of phase iph with respect to the
   specific volume of phase iph and to the specific energy of phase iph.
Parameters
[in]volthe specific volume of phase iph (in m^3/kg)
[in]energthe specific energy of phase iph (in J/kg)
[in]iphindex of phase

◆ cs_hgn_thermo_define_stiffened_gas()

void cs_hgn_thermo_define_stiffened_gas ( int  iph,
cs_real_t  cv,
cs_real_t  gamma,
cs_real_t  pinf,
cs_real_t  qprim,
cs_real_t  q 
)

Define stiffened gas parameters for phase iph.

Parameters
[in]iphindex of phase (0 or 1)
[in]cvheat capacity
[in]gammapolytropic coefficient
[in]pinfminimum pressure
[in]qprimentropy parameter
[in]q(DOXYGEN_SHOULD_SKIP_THIS)
[in]iphindex of phase (0 or 1)
[in]cvheat capacity (in J/kg/K)
[in]gammapolytropic coefficient (-)
[in]pinfminimum pressure (in Pa)
[in]qprimentropy parameter (in J/kg/K)
[in]qreference for specific enthalpy (in J/kg)