8.2
general documentation
cs_coal_source_terms.c File Reference

Coal combustion model: source terms computation. More...

#include "cs_defs.h"
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_array.h"
#include "cs_coal.h"
#include "cs_coal_ht_convert.h"
#include "cs_field.h"
#include "cs_field_default.h"
#include "cs_field_pointer.h"
#include "cs_gradient.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_physical_constants.h"
#include "cs_physical_model.h"
#include "cs_thermal_model.h"
#include "cs_time_step.h"
#include "cs_turbulence_model.h"
#include "cs_coal_source_terms.h"
+ Include dependency graph for cs_coal_source_terms.c:

Functions

void cs_coal_source_terms_scalar (int fld_id, cs_real_t smbrs[], cs_real_t rovsdt[])
 Compute scalar source terms for pulverized coal flame. More...
 

Detailed Description

Coal combustion model: source terms computation.

Function Documentation

◆ cs_coal_source_terms_scalar()

void cs_coal_source_terms_scalar ( int  fld_id,
cs_real_t  smbrs[],
cs_real_t  rovsdt[] 
)

Compute scalar source terms for pulverized coal flame.

Warning
the treatement is different from that of cs_user_source_terms.

We solve:

\[ rovsdt D(var) = smbrs \]

rovsdt and smbrs already contain eventual user source terms. So they have to be incremented and not erased.

For stability reasons, only positive terms can be added in rovsdt. There is no contraint for smbrs.

In the case of a source term in $ cexp + cimp var $, it has to be written:

  • $ smbrs = smbrs + cexp + cimp var $
  • $ rovsdt = rovsdt + \max(-cimp,0) $

Here are $ rovsdt $ and $ smbrs $ (they contain $ \rho volume$) smbrs in kg variable/s: i.e.: - for velocity $ kg . m . s^{-2} $

  • for temperature $ kg . [degres] . s^{-1} $
  • for enthalpy $ J . s^{-1} $
  • rovsdt $ kg . s^{-1} $
Parameters
[in]fld_idscalar field id
[in,out]smbrsexplicit second member
[in,out]rovsdtimplicit diagonal part