1#ifndef CS_1D_WALL_THERMAL_H
2#define CS_1D_WALL_THERMAL_H
264 const bool use_constant_time_step
308 fvm_writer_t *writer,
309 const fvm_nodal_t *nm,
void cs_1d_wall_thermal_local_models_create(void)
Allocate the array of structures local_models.
Definition: cs_1d_wall_thermal.cpp:908
void cs_1d_wall_post_temperature_field(fvm_writer_t *writer, const fvm_nodal_t *nm, int nt_cur, double t_cur)
Write temperature field (postprocessing)
Definition: cs_1d_wall_thermal.cpp:849
fvm_nodal_t * cs_1d_wall_thermal_export_nodal(void)
Create and return a nodal fvm export of the 1D mesh.
Definition: cs_1d_wall_thermal.cpp:737
void cs_1d_wall_thermal_create_post_mesh(void)
Create post-processing mesh.
Definition: cs_1d_wall_thermal.cpp:713
cs_1d_wall_thermal_t * cs_get_glob_1d_wall_thermal(void)
Provide access to cs_glob_1d_wall_thermal.
Definition: cs_1d_wall_thermal.cpp:1806
void cs_1d_wall_thermal_log(void)
Print information about the 1d wall thermal computation.
Definition: cs_1d_wall_thermal.cpp:1818
void cs_1d_wall_thermal_prepare_solve(const bool use_constant_time_step)
Update properties, time step and boundary conditions before solve step.
Definition: cs_1d_wall_thermal.cpp:682
void cs_1d_wall_thermal_compute_n_faces_from_definitions(void)
Compute total number of coupled faces.
Definition: cs_1d_wall_thermal.cpp:631
void cs_1d_wall_thermal_mesh_create(void)
Create the 1D mesh for each face and initialize the temperature.
Definition: cs_1d_wall_thermal.cpp:945
void cs_1d_wall_thermal_post_set_status(bool new_status)
Set postprocessing status.
Definition: cs_1d_wall_thermal.cpp:699
void cs_1d_wall_thermal_check(int iappel)
Data checking for the 1D thermal wall module.
Definition: cs_1d_wall_thermal.cpp:1871
void cs_1d_wall_thermal_create(void)
Initialize the cs_glob_1d_wall_thermal structure.
Definition: cs_1d_wall_thermal.cpp:440
void cs_1d_wall_thermal_finalize(void)
Destroy the global 1d wall thermal structure.
Definition: cs_1d_wall_thermal.cpp:1785
void cs_1d_wall_thermal_zone_define_neumann_bc_const(const cs_zone_t *zone, const cs_real_t phi_ext)
Define nuemann (flux) boundary conditions.
Definition: cs_1d_wall_thermal.cpp:591
void cs_1d_wall_thermal_zone_define_robin_bc_const(const cs_zone_t *zone, const cs_real_t t_ext, const cs_real_t h_ext)
Define Robin boundary condition.
Definition: cs_1d_wall_thermal.cpp:611
void cs_1d_wall_thermal_add_zone(const cs_zone_t *zone, const int n_layers)
Add faces of a boundary zone to 1D wall module.
Definition: cs_1d_wall_thermal.cpp:466
bool cs_1d_wall_thermal_is_used(void)
Check if 1d wall thermal module is used.
Definition: cs_1d_wall_thermal.cpp:1964
const cs_1d_wall_thermal_t * cs_glob_1d_wall_thermal
void cs_1d_wall_thermal_initialize(void)
Initialization step based on zones.
Definition: cs_1d_wall_thermal.cpp:651
bool cs_1d_wall_thermal_post_activated(void)
Check if postprocessing is activated.
Definition: cs_1d_wall_thermal.cpp:896
void cs_1d_wall_thermal_free(void)
Free the array of structures local_models.
Definition: cs_1d_wall_thermal.cpp:1769
void cs_1d_wall_thermal_read(void)
Read the restart file of the 1D-wall thermal module.
Definition: cs_1d_wall_thermal.cpp:1169
void cs_1d_wall_thermal_solve(cs_lnum_t ii, cs_real_t tf, cs_real_t hf)
Solve the 1D equation for a given face.
Definition: cs_1d_wall_thermal.cpp:1002
void cs_1d_wall_thermal_zone_define_dirichlet_bc_const(const cs_zone_t *zone, const cs_real_t t_ext)
Define a dirichlet boundary condition.
Definition: cs_1d_wall_thermal.cpp:572
void cs_1d_wall_thermal_zone_define_layer_properties_const(const cs_zone_t *zone, const int layer_id, const cs_real_t initial_temperature, const cs_real_t thermal_conductivity, const cs_real_t density, const cs_real_t heat_capacity)
Define layer's physical properties.
Definition: cs_1d_wall_thermal.cpp:541
void cs_1d_wall_thermal_zone_define_layer_mesh(const cs_zone_t *zone, const int layer_id, const int n_points, const cs_real_t thickness, const cs_real_t refine_factor)
Define a layers' mesh.
Definition: cs_1d_wall_thermal.cpp:512
void cs_1d_wall_thermal_write(void)
Write the restart file of the 1D-wall thermal module.
Definition: cs_1d_wall_thermal.cpp:1559
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
unsigned cs_gnum_t
global mesh entity number
Definition: cs_defs.h:317
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
Definition: cs_1d_wall_thermal.h:55
cs_real_t xlmbt1
Definition: cs_1d_wall_thermal.h:82
cs_real_t rgpt1d
Definition: cs_1d_wall_thermal.h:69
cs_real_t * z
Definition: cs_1d_wall_thermal.h:91
int iclt1d
Definition: cs_1d_wall_thermal.h:61
cs_real_t fept1d
Definition: cs_1d_wall_thermal.h:78
cs_real_t rcpt1d
Definition: cs_1d_wall_thermal.h:84
cs_real_t eppt1d
Definition: cs_1d_wall_thermal.h:66
cs_real_t * t
Definition: cs_1d_wall_thermal.h:93
cs_real_t dtpt1d
Definition: cs_1d_wall_thermal.h:87
int nppt1d
Definition: cs_1d_wall_thermal.h:57
cs_real_t hept1d
Definition: cs_1d_wall_thermal.h:75
cs_real_t tept1d
Definition: cs_1d_wall_thermal.h:72
1D wall thermal module descriptor.
Definition: cs_1d_wall_thermal.h:101
cs_gnum_t nfpt1t
Definition: cs_1d_wall_thermal.h:106
cs_lnum_t nfpt1d
Definition: cs_1d_wall_thermal.h:103
int nmxt1d
Definition: cs_1d_wall_thermal.h:110
cs_lnum_t * ifpt1d
Definition: cs_1d_wall_thermal.h:116
bool use_restart
Definition: cs_1d_wall_thermal.h:112
cs_lnum_t * izft1d
Definition: cs_1d_wall_thermal.h:114
cs_1d_wall_thermal_local_model_t * local_models
Definition: cs_1d_wall_thermal.h:125
cs_real_t * tppt1d
Definition: cs_1d_wall_thermal.h:120