1 #ifndef __CS_THERMAL_SYSTEM_H__
2 #define __CS_THERMAL_SYSTEM_H__
51 #define CS_THERMAL_EQNAME "thermal_equation"
52 #define CS_THERMAL_CP_NAME "thermal_capacity"
53 #define CS_THERMAL_LAMBDA_NAME "thermal_conductivity"
66 #define CS_THERMAL_POST_ENTHALPY (1 << 0)
#define BEGIN_C_DECLS
Definition: cs_defs.h:509
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:510
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:313
unsigned short int cs_flag_t
Definition: cs_defs.h:321
void cs_thermal_system_compute_steady_state(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step)
Build and solve a steady-state thermal system.
Definition: cs_thermal_system.c:746
void cs_thermal_system_destroy(void)
Free the main structure related to the thermal system.
Definition: cs_thermal_system.c:550
void cs_thermal_system_extra_op(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq)
Predefined extra-operations for the thermal system.
Definition: cs_thermal_system.c:873
cs_flag_t cs_thermal_model_type_t
Definition: cs_thermal_system.h:76
cs_thermal_model_type_bit_t
Bit values for physical modelling related to thermal system.
Definition: cs_thermal_system.h:106
@ CS_THERMAL_MODEL_IN_CELSIUS
Definition: cs_thermal_system.h:126
@ CS_THERMAL_MODEL_STEADY
Definition: cs_thermal_system.h:108
@ CS_THERMAL_MODEL_USE_TOTAL_ENERGY
Definition: cs_thermal_system.h:116
@ CS_THERMAL_MODEL_ANISOTROPIC_CONDUCTIVITY
Definition: cs_thermal_system.h:121
@ CS_THERMAL_MODEL_NAVSTO_ADVECTION
Definition: cs_thermal_system.h:109
@ CS_THERMAL_MODEL_USE_TEMPERATURE
Definition: cs_thermal_system.h:114
@ CS_THERMAL_MODEL_USE_ENTHALPY
Definition: cs_thermal_system.h:115
void cs_thermal_system_update(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *ts, bool cur2prev)
Update the quantities related to the thermal module.
Definition: cs_thermal_system.c:843
cs_equation_t * cs_thermal_system_get_equation(void)
Retrieve the main equation related to the thermal system.
Definition: cs_thermal_system.c:576
cs_thermal_system_t * cs_thermal_system_activate(cs_flag_t model, cs_flag_t numeric, cs_flag_t post)
Allocate and initialize the thermal system.
Definition: cs_thermal_system.c:391
bool cs_thermal_system_is_activated(void)
Check if the resolution of the thermal system has been activated.
Definition: cs_thermal_system.c:370
void cs_thermal_system_log_setup(void)
Summary of the main options related to cs_thermal_system_t structure.
Definition: cs_thermal_system.c:945
void cs_thermal_system_set_reference_temperature(cs_real_t ref)
Set the value of the reference temperature associated to the thermal system.
Definition: cs_thermal_system.c:312
cs_real_t * cs_thermal_system_get_face_temperature(void)
Retrieve the current temperature at face values.
Definition: cs_thermal_system.c:595
void cs_thermal_system_init_values(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *ts)
Set an initial values for all quantities related to this module This is done after the setup step.
Definition: cs_thermal_system.c:811
cs_real_t cs_thermal_system_get_reference_temperature(void)
Retrieve the value of the reference temperature associated to a thermal system.
Definition: cs_thermal_system.c:291
bool cs_thermal_system_needs_navsto(void)
Does the thermal system rely on the advection field associated to the Navier-Stokes equations ?
Definition: cs_thermal_system.c:350
void cs_thermal_system_extra_post(void *input, int mesh_id, int cat_id, int ent_flag[5], cs_lnum_t n_cells, cs_lnum_t n_i_faces, cs_lnum_t n_b_faces, const cs_lnum_t cell_ids[], const cs_lnum_t i_face_ids[], const cs_lnum_t b_face_ids[], const cs_time_step_t *time_step)
Predefined post-processing output for the thermal system. The prototype of this function is fixed sin...
Definition: cs_thermal_system.c:909
void cs_thermal_system_finalize_setup(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step)
Last step of the setup of the thermal system.
Definition: cs_thermal_system.c:718
void cs_thermal_system_compute(bool cur2prev, const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step)
Build and solve the thermal system.
Definition: cs_thermal_system.c:778
void cs_thermal_system_init_setup(void)
Start setting-up the thermal system At this stage, numerical settings should be completely determined...
Definition: cs_thermal_system.c:627
cs_flag_t cs_thermal_system_get_model(void)
Retrieve the model flag related to a thermal system.
Definition: cs_thermal_system.c:332
Definition: cs_cdo_connect.h:61
Definition: cs_cdo_quantities.h:137
Main structure to handle the discretization and the resolution of an equation.
Field descriptor.
Definition: cs_field.h:130
Structure associated to the definition of a property relying on the cs_xdef_t structure.
Definition: cs_thermal_system.h:132
cs_field_t * total_energy
Definition: cs_thermal_system.h:161
cs_flag_t numeric
Definition: cs_thermal_system.h:135
cs_field_t * enthalpy
Definition: cs_thermal_system.h:160
cs_real_t ref_temperature
Definition: cs_thermal_system.h:166
cs_equation_t * thermal_eq
Definition: cs_thermal_system.h:141
cs_flag_t post
Definition: cs_thermal_system.h:136
cs_property_t * unsteady_property
Definition: cs_thermal_system.h:146
cs_field_t * temperature
Definition: cs_thermal_system.h:159
cs_property_t * rho
Definition: cs_thermal_system.h:149
cs_property_t * lambda
Definition: cs_thermal_system.h:147
cs_flag_t model
Definition: cs_thermal_system.h:134
cs_real_t * kappa_array
Definition: cs_thermal_system.h:154
cs_property_t * kappa
Definition: cs_thermal_system.h:150
cs_property_t * cp
Definition: cs_thermal_system.h:148
time step descriptor
Definition: cs_time_step.h:64