8.1
general documentation
cs_gas_mix.h File Reference
#include "cs_defs.h"
+ Include dependency graph for cs_gas_mix.h:

Go to the source code of this file.

Data Structures

struct  cs_gas_mix_t
 Gas mix descriptor. More...
 
struct  cs_gas_mix_species_prop_t
 

Enumerations

enum  cs_gas_mix_type_t {
  CS_GAS_MIX_OFF = -1 , CS_GAS_MIX_AIR_HELIUM = 0 , CS_GAS_MIX_AIR_HYDROGEN = 1 , CS_GAS_MIX_AIR_STEAM = 2 ,
  CS_GAS_MIX_AIR_HELIUM_STEAM = 3 , CS_GAS_MIX_AIR_HYDROGEN_STEAM = 4 , CS_GAS_MIX_HELIUM_AIR = 5 , CS_GAS_MIX_USER
}
 

Functions

int cs_gas_mix_get_field_key (void)
 Get the field key for gas mix properties. More...
 
void cs_gas_mix_add_species (int f_id)
 Add a species field to the gas mix (set of fields). More...
 
void cs_gas_mix_add_species_with_properties (int f_id, cs_real_t mol_mass, cs_real_t cp, cs_real_t vol_diff, cs_real_t mu_a, cs_real_t mu_b, cs_real_t lambda_a, cs_real_t lambda_b, cs_real_t mu_ref, cs_real_t lambda_ref, cs_real_t tref_mu, cs_real_t tref_lambda, cs_real_t s_mu, cs_real_t s_lambda)
 Add a species field to the gas mix (set of fields). More...
 
void cs_gas_mix_add_property_fields (void)
 Add property fields specific to a gas mix. More...
 
void cs_gas_mix_finalize (void)
 Free array mapping gas mix species ids to field ids. More...
 

Variables

const cs_gas_mix_tcs_glob_gas_mix
 

Enumeration Type Documentation

◆ cs_gas_mix_type_t

Enumerator
CS_GAS_MIX_OFF 

gas mix model off

CS_GAS_MIX_AIR_HELIUM 

air/helium, helium deduced

CS_GAS_MIX_AIR_HYDROGEN 

air/hydrogen, hydrogen deduced

CS_GAS_MIX_AIR_STEAM 

air/steam, steam deduced

CS_GAS_MIX_AIR_HELIUM_STEAM 

helium/steam, steam deduced

CS_GAS_MIX_AIR_HYDROGEN_STEAM 

hydrogen/steam, steam deduced

CS_GAS_MIX_HELIUM_AIR 

helium/air, O2 from air deduced

CS_GAS_MIX_USER 

user defined

Function Documentation

◆ cs_gas_mix_add_property_fields()

void cs_gas_mix_add_property_fields ( void  )

Add property fields specific to a gas mix.

◆ cs_gas_mix_add_species()

void cs_gas_mix_add_species ( int  f_id)

Add a species field to the gas mix (set of fields).

Parameters
[in]f_idfield id of an already created scalar model field

◆ cs_gas_mix_add_species_with_properties()

void cs_gas_mix_add_species_with_properties ( int  f_id,
cs_real_t  mol_mass,
cs_real_t  cp,
cs_real_t  vol_diff,
cs_real_t  mu_a,
cs_real_t  mu_b,
cs_real_t  lambda_a,
cs_real_t  lambda_b,
cs_real_t  mu_ref,
cs_real_t  lambda_ref,
cs_real_t  tref_mu,
cs_real_t  tref_lambda,
cs_real_t  s_mu,
cs_real_t  s_lambda 
)

Add a species field to the gas mix (set of fields).

Parameters
[in]f_idid of field representing species mixture fraction.
[in]mol_massmolar mass
[in]cpspecific heat
[in]col_diffvolume diffusion
[in]mu_adynamic viscosity a
[in]mu_bdynamic viscosity b
[in]lambda_athermal conductivity a
[in]lambda_bthermal conductivity b
[in]mu_refreference viscosity (Sutherland)
[in]lambda_refreference conductivity (Sutherland)
[in]tref_mureference temperature for viscosity
[in]tref_lambdareference temperature for conductivity
[in]s_muSutherland temperature for viscosity
[in]s_lambdaSutherland temperature for conductivity

◆ cs_gas_mix_finalize()

void cs_gas_mix_finalize ( void  )

Free array mapping gas mix species ids to field ids.

◆ cs_gas_mix_get_field_key()

int cs_gas_mix_get_field_key ( void  )

Get the field key for gas mix properties.

Returns
field key id for gas mix properties

Variable Documentation

◆ cs_glob_gas_mix

const cs_gas_mix_t* cs_glob_gas_mix
extern