#include "base/cs_defs.h"#include <assert.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "bft/bft_error.h"#include "bft/bft_mem.h"#include "bft/bft_printf.h"#include "base/cs_base.h"#include "base/cs_file.h"#include "base/cs_dispatch.h"#include "base/cs_log.h"#include "base/cs_math.h"#include "base/cs_parall.h"#include "base/cs_physical_constants.h"#include "pprt/cs_physical_model.h"#include "comb/cs_coal.h"#include "cogz/cs_combustion_bsh.h"#include "cogz/cs_combustion_gas.h"#include "pprt/cs_combustion_model.h"
Include dependency graph for cs_combustion_model.cpp:Macros | |
| #define | MAX_ELEMENTARY_COMPONENTS 20 |
Functions | |
| void | cs_combustion_enthalpy_and_cp_from_janaf (int ncoel, int ngazem, int npo, const char nomcoel[][13], double ehcoel[], double cpcoel[], double coeff_therm[][2][5], const double wmolce[], const double th[]) |
| Compute Enthalpy and Cp based on the JANAF band. More... | |
| void | cs_combustion_dirac_pdf (cs_lnum_t n_cells, int indpdf[], cs_real_t tpdf[], const cs_real_t fm[], cs_real_t fp2m[], const cs_real_t fmini[], const cs_real_t fmaxi[], cs_real_t dirmin[], cs_real_t dirmax[], cs_real_t fdeb[], cs_real_t ffin[], cs_real_t hrec[]) |
| Compute rectangle-Dirac pdf parameters. More... | |
Combustion model selection parameters.
| #define MAX_ELEMENTARY_COMPONENTS 20 |
| void cs_combustion_dirac_pdf | ( | cs_lnum_t | n_cells, |
| int | indpdf[], | ||
| cs_real_t | tpdf[], | ||
| const cs_real_t | fm[], | ||
| cs_real_t | fp2m[], | ||
| const cs_real_t | fmini[], | ||
| const cs_real_t | fmaxi[], | ||
| cs_real_t | dirmin[], | ||
| cs_real_t | dirmax[], | ||
| cs_real_t | fdeb[], | ||
| cs_real_t | ffin[], | ||
| cs_real_t | hrec[] | ||
| ) |
Compute rectangle-Dirac pdf parameters.
From P. Plion & A. Escaich
| [in] | n_cells | number of cells |
| [out] | indpdf | indicator for pdf integration or mean value |
| [out] | tpdf | indicator for pdf shape:
|
| [in] | fm | mean mixture fraction at cell centers |
| [in,out] | fp2m | mean mixture fraction variance at cell centers |
| [in,out] | fmini | mixture fraction low boundary |
| [in] | fmaxi | mixture fraction high boundary |
| [out] | dirmin | Dirac's peak value at |
| [out] | dirmax | Dirac's peak value at |
| [out] | fdeb | abscissa of rectangle low boundary |
| [out] | ffin | abscissa of rectangle high boundary |
| [out] | hrec | rectangle height |
| void cs_combustion_enthalpy_and_cp_from_janaf | ( | int | ncoel, |
| int | ngazem, | ||
| int | npo, | ||
| const char | nomcoel[][13], | ||
| double | ehcoel[], | ||
| double | cpcoel[], | ||
| double | coeff_therm[][2][5], | ||
| const double | wmolce[], | ||
| const double | th[] | ||
| ) |
Compute Enthalpy and Cp based on the JANAF band.
| [in] | ncoel | number of elementary constituents |
| [in] | ngazem | number of elementary constituents |
| [in] | npo | number of interpolation points |
| [in] | nomcoel | names of elementary constituants |
| [out] | ehcoel | enthalpy for each elementary species (for point i and species j, ehcoel[i*ngazem + j]) |
| [out] | cpcoel | cp for each elementary species (for point i and species j, cpcoel[i*ngazem + j]) |
| [out] | coeff_therm | coefficients for the Burke-Scumann model, or null otherwise |
| [in] | wmolce | molar mass of each species |
| [in] | th | temperature in K |