9.0
general documentation
Loading...
Searching...
No Matches
cs_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 "comb/cs_coal_ht_convert.h"
#include "cogz/cs_combustion_ht_convert.h"
#include "elec/cs_elec_model.h"
#include "base/cs_field.h"
#include "base/cs_field_pointer.h"
#include "base/cs_log.h"
#include "base/cs_mem.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 "base/cs_volume_zone.h"
#include "base/cs_ht_convert.h"
Include dependency graph for cs_ht_convert.cpp:

Functions

void cs_ht_convert_h_to_t_cells (const cs_real_t h[], cs_real_t t[])
 Convert enthalpy to temperature at all cells.
void cs_ht_convert_h_to_t_cells_solid (void)
 Convert enthalpy to temperature at solid cells only.
void cs_ht_convert_h_to_t_faces (const cs_real_t h[], cs_real_t t[])
 Convert enthalpy to temperature at all boundary faces.
void cs_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.
void cs_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, using dense storage for temperature and enthalpy arrays.

Detailed Description

Enthalpy to and from temperature conversion.

Other fields may be involved in the conversion.

TODO: when possible (based on calling functions's conversion to C) a function pointer-based logic would allow migrating this functionnality to cs_physical_properties, without adding high level physical model dependencies (i.e. cs_physical_model.h) to that lower-level API.

Function Documentation

◆ cs_ht_convert_h_to_t_cells()

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

Convert enthalpy to temperature at all cells.

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

Parameters
[in]henthalpy values
[out]ttemperature values

◆ cs_ht_convert_h_to_t_cells_solid()

void cs_ht_convert_h_to_t_cells_solid ( void )

Convert enthalpy to temperature at solid cells only.

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

◆ cs_ht_convert_h_to_t_faces()

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

Convert enthalpy to temperature at all boundary faces.

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

Parameters
[in]henthalpy values
[out]ttemperature values

◆ cs_ht_convert_t_to_h_faces_l()

void cs_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.

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_ht_convert_t_to_h_faces_z()

void cs_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, 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