7.1
general documentation
cs_gas_mix.c File Reference
#include "cs_defs.h"
#include <assert.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_field.h"
#include "cs_parall.h"
#include "cs_physical_model.h"
#include "cs_post.h"
#include "cs_gas_mix.h"
+ Include dependency graph for cs_gas_mix.c:

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 = &_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

Variable Documentation

◆ cs_glob_gas_mix

const cs_gas_mix_t* cs_glob_gas_mix = &_gas_mix