9.0
general documentation
Loading...
Searching...
No Matches
cs_combustion_ht_convert.cpp File Reference
#include "base/cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "bft/bft_error.h"
#include "base/cs_boundary.h"
#include "base/cs_boundary_conditions.h"
#include "cogz/cs_combustion_boundary_conditions.h"
#include "cogz/cs_combustion_gas.h"
#include "base/cs_field.h"
#include "base/cs_field_pointer.h"
#include "base/cs_log.h"
#include "base/cs_math.h"
#include "base/cs_mem.h"
#include "mesh/cs_mesh.h"
#include "mesh/cs_mesh_location.h"
#include "base/cs_physical_constants.h"
#include "pprt/cs_physical_model.h"
#include "base/cs_prototypes.h"
#include "cogz/cs_combustion_ht_convert.h"
Include dependency graph for cs_combustion_ht_convert.cpp:

Functions

cs_real_t cs_combustion_h_to_t (const cs_real_t x_sp[], cs_real_t h)
 Convert an enthalpy to temperature value for gas combustion.
cs_real_t cs_combustion_t_to_h (const cs_real_t x_sp[], cs_real_t t)
 Convert a temperature to enthalpy value for gas combustion.
void cs_combustion_ht_convert_h_to_t_faces (const cs_real_t h[], cs_real_t t[])
void cs_combustion_ht_convert_t_to_h_faces_l (cs_lnum_t n_faces, const cs_lnum_t face_ids[], const cs_real_t t[], cs_real_t h[])
 Convert temperature to enthalpy at selected boundary faces for gas combustion.
void cs_combustion_ht_convert_t_to_h_faces_z (const cs_zone_t *z, const cs_real_t t[], cs_real_t h[])
 Convert temperature to enthalpy for a given boundary zone with a gas combustio model, using dense storage for temperature and enthalpy arrays.

Function Documentation

◆ cs_combustion_h_to_t()

cs_real_t cs_combustion_h_to_t ( const cs_real_t x_sp[],
cs_real_t h )

Convert an enthalpy to temperature value for gas combustion.

Parameters
[in]x_spmass fraction of constituents
[in]henthalpy
Returns
temperature

◆ cs_combustion_ht_convert_h_to_t_faces()

void cs_combustion_ht_convert_h_to_t_faces ( const cs_real_t h[],
cs_real_t t[] )

◆ cs_combustion_ht_convert_t_to_h_faces_l()

void cs_combustion_ht_convert_t_to_h_faces_l ( cs_lnum_t n_faces,
const cs_lnum_t face_ids[],
const cs_real_t t[],
cs_real_t h[] )

Convert temperature to enthalpy at selected boundary faces for gas combustion.

This handles both user and model enthalpy conversions, so can be used safely whenever conversion is needed.

Parameters
[in]n_facesnumber of selected boundary faces
[in]face_idslist of associated face ids
[in]ttemperature values
[out]henthalpy values

◆ cs_combustion_ht_convert_t_to_h_faces_z()

void cs_combustion_ht_convert_t_to_h_faces_z ( const cs_zone_t * z,
const cs_real_t t[],
cs_real_t h[] )

Convert temperature to enthalpy for a given boundary zone with a gas combustio model, using dense storage for temperature and enthalpy arrays.

This handles both user and model enthalpy conversions, so can be used safely whenever conversion is needed.

Parameters
[in]zpointer to selected zone.
[in]ttemperature values
[out]henthalpy values

◆ cs_combustion_t_to_h()

cs_real_t cs_combustion_t_to_h ( const cs_real_t x_sp[],
cs_real_t t )

Convert a temperature to enthalpy value for gas combustion.

Parameters
[in]x_spmass fraction of constituents
[in]ttemperature at cells
Returns
enthalpy