9.2
general documentation
cs_combustion_slfm.cpp File Reference

Steady laminar flamelet gas combustion model. More...

#include "base/cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "bft/bft_error.h"
#include "bft/bft_printf.h"
#include "base/cs_array.h"
#include "base/cs_array_reduce.h"
#include "base/cs_base.h"
#include "base/cs_boundary_conditions.h"
#include "base/cs_dispatch.h"
#include "cdo/cs_equation_param.h"
#include "base/cs_field.h"
#include "base/cs_field_default.h"
#include "base/cs_field_operator.h"
#include "base/cs_field_pointer.h"
#include "base/cs_physical_constants.h"
#include "base/cs_log.h"
#include "turb/cs_les_filter.h"
#include "base/cs_math.h"
#include "base/cs_parall.h"
#include "base/cs_physical_properties.h"
#include "base/cs_restart.h"
#include "base/cs_restart_default.h"
#include "mesh/cs_mesh.h"
#include "mesh/cs_mesh_quantities.h"
#include "rayt/cs_rad_transfer.h"
#include "turb/cs_turbulence_model.h"
#include "pprt/cs_combustion_model.h"
#include "pprt/cs_physical_model.h"
#include "cogz/cs_combustion_gas.h"
#include "cogz/cs_combustion_boundary_conditions.h"
#include "cogz/cs_combustion_ht_convert.h"
#include "cogz/cs_combustion_slfm.h"
+ Include dependency graph for cs_combustion_slfm.cpp:

Functions

void cs_combustion_slfm_fields_init (void)
 Initialize specific fields for slfm gas combustion model. More...
 
void cs_combustion_slfm_physical_properties (int iterns)
 Compute physical properties for steady laminar flamelet model. More...
 
void cs_combustion_scalar_dissipation_rate (const cs_field_t *f, const cs_real_t *cpro_rho, const cs_real_t *fp2m, cs_real_t *cpro_totki)
 Compute scalar dissipation rate for steady laminar flamelet model. More...
 
void cs_combustion_reconstruct_variance (const cs_real_t *fm, const cs_real_t *fsqm, cs_real_t *recvr)
 Reconstruct scalar variance in case of transporting 2nd order moment. More...
 
void cs_combustion_slfm_max_mid_min_progvar (const cs_real_t zm, cs_real_t *cmax, cs_real_t *cmid, cs_real_t *cmin)
 Retrieve maximal, middle and minimal values of progress variable respectively on stable/unstable/mixing branches with a given mixture fraction. More...
 
void cs_combustion_slfm_source_terms (cs_field_t *f_sc, cs_real_t smbrs[], cs_real_t rovsdt[])
 Defines the source terms for the soot mass fraction and the precursor number for soot model of Moss et al for one time step. More...
 

Detailed Description

Steady laminar flamelet gas combustion model.

Function Documentation

◆ cs_combustion_reconstruct_variance()

void cs_combustion_reconstruct_variance ( const cs_real_t fm,
const cs_real_t fsqm,
cs_real_t recvr 
)

Reconstruct scalar variance in case of transporting 2nd order moment.

Parameters
[in]fmpointer to the mixture fraction
[in]fsqmpointer to the 2nd order moment of mixture fraction
[in,out]recvrpointer to the reconstructed variance

◆ cs_combustion_scalar_dissipation_rate()

void cs_combustion_scalar_dissipation_rate ( const cs_field_t f,
const cs_real_t cpro_rho,
const cs_real_t fp2m,
cs_real_t cpro_totki 
)

Compute scalar dissipation rate for steady laminar flamelet model.

Parameters
[in]fpointer to the scalar field used to compute the dissipation rate
[in]cpro_rhopointer to the density
[in]fp2mthe variance associated to the scalar field
[in,out]cpro_totkipointer to the scalar dissipation rate

◆ cs_combustion_slfm_fields_init()

void cs_combustion_slfm_fields_init ( void  )

Initialize specific fields for slfm gas combustion model.

◆ cs_combustion_slfm_max_mid_min_progvar()

void cs_combustion_slfm_max_mid_min_progvar ( const cs_real_t  zm,
cs_real_t cmax,
cs_real_t cmid,
cs_real_t cmin 
)

Retrieve maximal, middle and minimal values of progress variable respectively on stable/unstable/mixing branches with a given mixture fraction.

  • Neither heat loss nor variance is considered
Parameters
[in]zmmixture fraction value
[in]cmaxmaximal value of progress variable at given zm
[in]cmidmiddle value of progress variable at given zm
[in]cminminimal value of progress variable at given zm

◆ cs_combustion_slfm_physical_properties()

void cs_combustion_slfm_physical_properties ( int  iterns)

Compute physical properties for steady laminar flamelet model.

Parameters
[in]iternsNavier-Stokes sub-iterations indicator:
  • if strictly negative, indicate that this function is called outside Navier-Stokes loop
  • if positive, Navier-Stokes iteration number.

◆ cs_combustion_slfm_source_terms()

void cs_combustion_slfm_source_terms ( cs_field_t f_sc,
cs_real_t  smbrs[],
cs_real_t  rovsdt[] 
)

Defines the source terms for the soot mass fraction and the precursor number for soot model of Moss et al for one time step.

The equations read: $ rovsdt \delta a = smbrs $

$ rovsdt $ et $ smbrs $ could already contain source term and don't have to be erased but incremented.

For stability sake, only positive terms should be add in $ rovsdt $. There is no constrain for $ smbrs $.

For a source term written $ S_{exp} + S_{imp} a $, source terms are: $ smbrs  = smbrs  + S_{exp} + S_{imp} a $ $ rovsdt = rovsdt + \max(-S_{imp},0) $

Here are set $ rovsdt $ and $ smbrs $ containning $ \rho \Omega $

  • $ smbrs $ in $ kg_a.s^{-1} $ (ex: for velocity: $ kg.m.s^{-2} $, for temperature: $ kg.C.s^{-1} $, for enthalpy: $ J.s^{-1} $)
  • $ rovsdt $ en $ kg.s^{-1} $
Parameters
[in]f_scpointer to scalar field
[in,out]smbrsexplicit right hand side
[in,out]rovsdtimplicit terms