8.2
general documentation
Compressible models options
+ Collaboration diagram for Compressible models options:

Modules

 Homogeneous two-phase compressible model options
 
 Common
 
 Enthalpic variables pointers
 
 Boundary conditions
 

Data Types

struct  cs_cf_model_t
 Compressible model general options descriptor. More...
 

Variables

integer(c_int), pointer, save ieos
 indicator of equation of state mapping cs_cf_model_t::ieos More...
 
integer(c_int), pointer, save ithvar
 thermodynamic variables indicator for initialization mapping cs_cf_model_t::ithvar More...
 
integer(c_int), pointer, save icfgrp
 indicator for thermodynamic variables initialization More...
 
integer, dimension(:), allocatable, target ifbet
 imposed thermal flux indicator at the boundary (some boundary contributions of the total energy eq. have to be cancelled) More...
 
integer, dimension(:), allocatable, target icvfli
 boundary convection flux indicator of a Rusanov or an analytical flux (some boundary contributions of the momentum eq. have to be cancelled) More...
 
real(c_double), pointer, save psginf
 Stiffened gas limit pressure (Pa) for single phase model Equal to zero in perfect gas mapping cs_cf_model_t::psginf. More...
 
real(c_double), pointer, save gammasg
 Stiffened gas polytropic coefficient (dimensionless) for single phase model mapping cs_cf_model_t::gammasg. More...
 
integer, save ienerg
 specific total energy for compressible algorithm More...
 
integer, save itempk
 temperature deduced from the specific total energy More...
 
int ieos
 
int ithvar
 
int icfgrp
 
double psginf
 
double gammasg
 

Detailed Description

\ defgroup compressible Compressible models options

Variable Documentation

◆ gammasg [1/2]

real(c_double), pointer, save gammasg

Stiffened gas polytropic coefficient (dimensionless) for single phase model mapping cs_cf_model_t::gammasg.

◆ gammasg [2/2]

gammasg

stiffened gas polytropic coefficient (dimensionless) for single phase model

◆ icfgrp [1/2]

integer(c_int), pointer, save icfgrp

indicator for thermodynamic variables initialization

◆ icfgrp [2/2]

icfgrp

indicator for hydrostatic balance in boundary conditions

In the cases where gravity is predominant, taking into account the hydrostatic pressure allows to get rid of perturbations which may appear near the horizontal walls when the flow is weakly convective.

Otherwise, when icfgrp=0, the pressure condition is calculated from the solution of the unidimensional Euler equations for a perfect gas near a wall, for the variables "normal velocity", "density" and "pressure":

Case of an expansion (M <= 0):

\begin{align*} P_p &= 0 & \textrm{if } 1 + \displaystyle\frac{\gamma-1}{2}M<0 \\ P_p &= P_i \left(1 + \displaystyle\frac{\gamma-1}{2}M\right) ^{\frac{2\gamma}{\gamma-1}} & \textrm{otherwise} \end{align*}

Case of a schock (M > 0):

\begin{eqnarray*} P_p = P_i \left(1 + \displaystyle\frac{\gamma(\gamma+1)}{4}M^2 +\gamma M \displaystyle\sqrt{1+\displaystyle\frac{(\gamma+1)^2}{16}M^2}\right) \end{eqnarray*}

with $M = \displaystyle\frac{\vect{u}_i \cdot \vect{n}}{c_i}$, internal Mach number calculated with the variables taken in the cell.

◆ icvfli

integer, dimension(:), allocatable, target icvfli

boundary convection flux indicator of a Rusanov or an analytical flux (some boundary contributions of the momentum eq. have to be cancelled)

◆ ienerg

integer, save ienerg

specific total energy for compressible algorithm

◆ ieos [1/2]

integer(c_int), pointer, save ieos

indicator of equation of state mapping cs_cf_model_t::ieos

◆ ieos [2/2]

ieos

indicator of equation of state

  • CS_EOS_IDEAL_GAS: ideal gas with a constant adiabatic coefficient
  • CS_EOS_STIFFENED_GAS: stiffened gas
  • CS_EOS_GAS_MIX: mix of ideal gas
  • CS_EOS_HOMOGENEOUS_TWO_PHASE: two-phase homogeneous model only, each phase follows a stiffened gas law.
  • CS_EOS_MOIST_AIR: moist air equation of state with condensable (mixture of two ideal gas)

◆ ifbet

integer, dimension(:), allocatable, target ifbet

imposed thermal flux indicator at the boundary (some boundary contributions of the total energy eq. have to be cancelled)

◆ itempk

integer, save itempk

temperature deduced from the specific total energy

◆ ithvar [1/2]

integer(c_int), pointer, save ithvar

thermodynamic variables indicator for initialization mapping cs_cf_model_t::ithvar

◆ ithvar [2/2]

ithvar

indicator for thermodynamic variables initialization

◆ psginf [1/2]

real(c_double), pointer, save psginf

Stiffened gas limit pressure (Pa) for single phase model Equal to zero in perfect gas mapping cs_cf_model_t::psginf.

◆ psginf [2/2]

psginf

stiffened gas limit pressure (zero in perfect gas) for single phase model in Pa