8.3
general documentation
cs_ht_convert.cpp File Reference
#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "cs_coal_ht_convert.h"
#include "cs_elec_model.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_log.h"
#include "cs_mesh_location.h"
#include "cs_physical_constants.h"
#include "cs_physical_model.h"
#include "cs_prototypes.h"
#include "cs_volume_zone.h"
#include "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. More...
 
void cs_ht_convert_h_to_t_cells_solid (void)
 Convert enthalpy to temperature at solid cells only. More...
 
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. More...
 
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. More...
 
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. More...
 

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