1#ifndef __CS_THERMAL_MODEL_H__
2#define __CS_THERMAL_MODEL_H__
#define BEGIN_C_DECLS
Definition cs_defs.h:542
#define CS_F_HOST_DEVICE
Definition cs_defs.h:561
double cs_real_t
Floating-point value.
Definition cs_defs.h:342
#define END_C_DECLS
Definition cs_defs.h:543
@ vel
Definition cs_field_pointer.h:70
@ cp
Definition cs_field_pointer.h:102
void cs_thermal_model_log_setup(void)
Definition cs_thermal_model.cpp:258
cs_field_t * cs_thermal_model_field(void)
Definition cs_thermal_model.cpp:216
void cs_thermal_model_cv(cs_real_t *xcvv)
Compute the isochoric heat capacity.
Definition cs_thermal_model.cpp:849
void cs_thermal_model_add_kst(cs_real_t smbrs[])
Add the kinetic source term if needed.
Definition cs_thermal_model.cpp:697
void cs_thermal_model_pdivu(cs_real_t smbrs[])
Add the term pdivu to the thermal equation rhs.
Definition cs_thermal_model.cpp:1205
void cs_thermal_model_c_square(const cs_real_t cp[], const cs_real_t temp[], const cs_real_t pres[], const cs_real_t fracv[], const cs_real_t fracm[], const cs_real_t frace[], cs_real_t dc2[])
Compute the inverse of the square of sound velocity multiplied by gamma.
Definition cs_thermal_model.cpp:330
cs_thermal_model_t * cs_get_glob_thermal_model(void)
Definition cs_thermal_model.cpp:246
void cs_thermal_model_kinetic_st_finalize(const cs_real_t cromk1[], const cs_real_t cromk[])
Finalize the computation of the kinetic energy based source term.
Definition cs_thermal_model.cpp:661
const cs_thermal_model_t * cs_glob_thermal_model
void cs_thermal_model_cflp(const cs_real_t croma[], const cs_real_t trav2[][3], const cs_real_t cvara_pr[], const cs_real_t imasfl[], cs_real_t cflp[])
Compute the CFL number related to the pressure equation.
Definition cs_thermal_model.cpp:731
void cs_thermal_model_cflt(const cs_real_t croma[], const cs_real_t tempk[], const cs_real_t tempka[], const cs_real_t xcvv[], const cs_real_t vel[][3], const cs_real_t i_massflux[], const cs_real_t b_massflux[], cs_real_t cflt[])
Compute the CFL number related to the thermal equation.
Definition cs_thermal_model.cpp:1417
void cs_thermal_model_kinetic_st_prepare(const cs_real_t imasfl[], const cs_real_t bmasfl[], const cs_real_t vela[][3], const cs_real_t vel[][3])
First pass to compute the contribution of the kinetic energy based source term from the prediction st...
Definition cs_thermal_model.cpp:550
void cs_thermal_model_newton_t(int method, const cs_real_t *pk1, const cs_real_t th_scal[], const cs_real_t cvar_pr[], const cs_real_t cvara_pr[], const cs_real_t yw[], cs_real_t yv[], cs_real_t temp[])
Perform the Newton method to compute the temperature from the internal energy.
Definition cs_thermal_model.cpp:957
CS_F_HOST_DEVICE cs_real_t cs_thermal_model_demdt_ecsnt(const cs_real_t pres, const cs_real_t temp, const cs_real_t yw, const cs_real_t rvsra, const cs_real_t cva, const cs_real_t cvv, const cs_real_t cpl, const cs_real_t l00)
Compute the derivative of the internal energy related to the temperature at constant internal energy.
Definition cs_thermal_model.cpp:501
cs_temperature_scale_t
Definition cs_thermal_model.h:65
@ CS_TEMPERATURE_SCALE_CELSIUS
Definition cs_thermal_model.h:69
@ CS_TEMPERATURE_SCALE_KELVIN
Definition cs_thermal_model.h:68
@ CS_TEMPERATURE_SCALE_NONE
Definition cs_thermal_model.h:67
cs_thermal_model_variable_t
Definition cs_thermal_model.h:53
@ CS_THERMAL_MODEL_ENTHALPY
Definition cs_thermal_model.h:58
@ CS_THERMAL_MODEL_INTERNAL_ENERGY
Definition cs_thermal_model.h:60
@ CS_THERMAL_MODEL_TEMPERATURE
Definition cs_thermal_model.h:57
@ CS_THERMAL_MODEL_N_TYPES
Definition cs_thermal_model.h:61
@ CS_THERMAL_MODEL_NONE
Definition cs_thermal_model.h:56
@ CS_THERMAL_MODEL_TOTAL_ENERGY
Definition cs_thermal_model.h:59
@ CS_THERMAL_MODEL_INIT
Definition cs_thermal_model.h:55
CS_F_HOST_DEVICE cs_real_t cs_thermal_model_demdt(const cs_real_t pres, const cs_real_t temp, const cs_real_t yw, const cs_real_t rvsra, const cs_real_t cva, const cs_real_t cvv, const cs_real_t cpl, const cs_real_t l00)
Compute the derivative of the internal energy related to the temperature at constant pressure.
Definition cs_thermal_model.cpp:452
void cs_thermal_model_init(void)
Initialize thermal variables if needed.
Definition cs_thermal_model.cpp:307
void cs_thermal_model_dissipation(const cs_real_t vistot[], const cs_real_t gradv[][3][3], cs_real_t smbrs[])
Compute and add the dissipation term of the thermal equation to its right hand side.
Definition cs_thermal_model.cpp:907
Field descriptor.
Definition cs_field.h:158
Thermal model descriptor.
Definition cs_thermal_model.h:76
int cflp
Definition cs_thermal_model.h:91
int itpscl
Definition cs_thermal_model.h:85
bool has_dissipation
Definition cs_thermal_model.h:93
int itherm
Definition cs_thermal_model.h:80
cs_temperature_scale_t temperature_scale
Definition cs_thermal_model.h:84
int cflt
Definition cs_thermal_model.h:90
bool has_pdivu
Definition cs_thermal_model.h:92
int has_kinetic_st
Definition cs_thermal_model.h:89
cs_thermal_model_variable_t thermal_variable
Definition cs_thermal_model.h:79