1 #ifndef __CS_THERMAL_MODEL_H__
2 #define __CS_THERMAL_MODEL_H__
#define restrict
Definition: cs_defs.h:139
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:515
@ vel
Definition: cs_field_pointer.h:68
@ cp
Definition: cs_field_pointer.h:100
cs_real_t cs_thermal_model_demdt_ecsnt(cs_real_t pres, cs_real_t temp, cs_real_t yw, cs_real_t cpa, cs_real_t cpv, cs_real_t cpl, cs_real_t l00)
Compute the derivative of the internal energy related to the temperature at constant internal energy.
Definition: cs_thermal_model.c:475
cs_thermal_model_t * cs_get_glob_thermal_model(void)
Definition: cs_thermal_model.c:244
void cs_thermal_model_log_setup(void)
Definition: cs_thermal_model.c:256
void cs_thermal_model_cv(cs_real_t *xcvv)
Compute the isochoric heat capacity.
Definition: cs_thermal_model.c:823
void cs_thermal_model_add_kst(cs_real_t smbrs[])
Add the kinetic source term if needed.
Definition: cs_thermal_model.c:656
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 imasfl[], cs_real_t cflt[restrict])
Compute the CFL number related to the thermal equation.
Definition: cs_thermal_model.c:1307
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.c:328
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.c:624
const cs_thermal_model_t * cs_glob_thermal_model
void cs_thermal_model_pdivu(cs_real_t smbrs[restrict])
Add the term pdivu to the thermal equation rhs.
Definition: cs_thermal_model.c:1120
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.c:687
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.c:522
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.c:922
cs_temperature_scale_t
Definition: cs_thermal_model.h:64
@ CS_TEMPERATURE_SCALE_CELSIUS
Definition: cs_thermal_model.h:68
@ CS_TEMPERATURE_SCALE_KELVIN
Definition: cs_thermal_model.h:67
@ CS_TEMPERATURE_SCALE_NONE
Definition: cs_thermal_model.h:66
cs_thermal_model_variable_t
Definition: cs_thermal_model.h:53
@ CS_THERMAL_MODEL_ENTHALPY
Definition: cs_thermal_model.h:57
@ CS_THERMAL_MODEL_INTERNAL_ENERGY
Definition: cs_thermal_model.h:59
@ CS_THERMAL_MODEL_TEMPERATURE
Definition: cs_thermal_model.h:56
@ CS_THERMAL_MODEL_N_TYPES
Definition: cs_thermal_model.h:60
@ CS_THERMAL_MODEL_NONE
Definition: cs_thermal_model.h:55
@ CS_THERMAL_MODEL_TOTAL_ENERGY
Definition: cs_thermal_model.h:58
void cs_thermal_model_init(void)
Initialize thermal variables if needed.
Definition: cs_thermal_model.c:305
cs_real_t cs_thermal_model_demdt(cs_real_t pres, cs_real_t temp, cs_real_t yw)
Compute the derivative of the internal energy related to the temperature at constant pressure.
Definition: cs_thermal_model.c:428
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.c:876
cs_field_t * cs_thermal_model_field(void)
Definition: cs_thermal_model.c:216
real(c_double), pointer, save l00
Latent heat.
Definition: cstphy.f90:251
Field descriptor.
Definition: cs_field.h:131
Thermal model descriptor.
Definition: cs_thermal_model.h:75
int itpscl
Definition: cs_thermal_model.h:84
cs_thermal_model_variable_t thermal_variable
Definition: cs_thermal_model.h:78
cs_temperature_scale_t temperature_scale
Definition: cs_thermal_model.h:83
int itherm
Definition: cs_thermal_model.h:79
int cflp
Definition: cs_thermal_model.h:90
bool has_dissipation
Definition: cs_thermal_model.h:92
int cflt
Definition: cs_thermal_model.h:89
int has_kinetic_st
Definition: cs_thermal_model.h:88
bool has_pdivu
Definition: cs_thermal_model.h:91