8.3
general documentation
cs_gas_mix.cpp File Reference
#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cs_log.h"
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_array.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_math.h"
#include "cs_mesh_quantities.h"
#include "cs_parall.h"
#include "cs_physical_constants.h"
#include "cs_physical_model.h"
#include "cs_post.h"
#include "cs_thermal_model.h"
#include "cs_velocity_pressure.h"
#include "cs_gas_mix.h"
+ Include dependency graph for cs_gas_mix.cpp:

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_physical_properties (void)
 Fills physical properties which are variable in time for the gas mixtures modelling with or without steam inside the fluid domain. In presence of steam, this one is deduced from the noncondensable gases transported as scalars (by means of the mass fraction of each species). More...
 
void cs_gas_mix_finalize (void)
 Free array mapping gas mix species ids to field ids. More...
 
void cs_gas_mix_initialization (void)
 Initialization of calculation variables for gas mixture modelling in presence of the steam gas or another gas used as variable deduced and not solved. More...
 

Variables

static cs_gas_mix_species_prop_t _gas_mix_species_prop
 
const cs_gas_mix_tcs_glob_gas_mix = &_gas_mix
 

Detailed Description

Base gas mix data.

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

◆ cs_gas_mix_initialization()

void cs_gas_mix_initialization ( void  )

Initialization of calculation variables for gas mixture modelling in presence of the steam gas or another gas used as variable deduced and not solved.

◆ cs_gas_mix_physical_properties()

void cs_gas_mix_physical_properties ( void  )

Fills physical properties which are variable in time for the gas mixtures modelling with or without steam inside the fluid domain. In presence of steam, this one is deduced from the noncondensable gases transported as scalars (by means of the mass fraction of each species).

Variable Documentation

◆ _gas_mix_species_prop

cs_gas_mix_species_prop_t _gas_mix_species_prop
static
Initial value:
=
{
-1.,
-1.,
-1.,
-1.,
-1.,
-1.,
-1.,
-1.,
-1.,
-1.,
-1.,
-1.,
-1.,
}

◆ cs_glob_gas_mix

const cs_gas_mix_t* cs_glob_gas_mix = &_gas_mix