9.0
general documentation
Loading...
Searching...
No Matches
cs_steady_laminar_flamelet_source_terms.cpp File Reference
#include "base/cs_defs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "bft/bft_mem.h"
#include "bft/bft_printf.h"
#include "base/cs_boundary_conditions.h"
#include "base/cs_field.h"
#include "base/cs_field_default.h"
#include "base/cs_field_pointer.h"
#include "base/cs_field_operator.h"
#include "mesh/cs_mesh.h"
#include "mesh/cs_mesh_quantities.h"
#include "base/cs_parameters.h"
#include "pprt/cs_physical_model.h"
#include "turb/cs_turbulence_model.h"
#include "cogz/cs_steady_laminar_flamelet_source_terms.h"
Include dependency graph for cs_steady_laminar_flamelet_source_terms.cpp:

Functions

void cs_f_combustion_reconstruct_variance (int iprev)
void cs_steady_laminar_flamelet_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.

Detailed Description

Specific physic routine: STE/VTE and progress variable equations.

Function Documentation

◆ cs_f_combustion_reconstruct_variance()

void cs_f_combustion_reconstruct_variance ( int iprev)

◆ cs_steady_laminar_flamelet_source_terms()

void cs_steady_laminar_flamelet_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