#include "base/cs_defs.h"#include <math.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include "bft/bft_error.h"#include "bft/bft_printf.h"#include "base/cs_base.h"#include "base/cs_boundary_zone.h"#include "base/cs_math.h"#include "base/cs_field.h"#include "base/cs_field_pointer.h"#include "base/cs_mem.h"#include "fvm/fvm_writer.h"#include "fvm/fvm_nodal_append.h"#include "mesh/cs_mesh.h"#include "mesh/cs_mesh_location.h"#include "mesh/cs_mesh_quantities.h"#include "base/cs_parall.h"#include "base/cs_parameters_check.h"#include "base/cs_physical_constants.h"#include "base/cs_post.h"#include "base/cs_restart.h"#include "base/cs_restart_default.h"#include "base/cs_wall_condensation.h"#include "rayt/cs_rad_transfer.h"#include "base/cs_1d_wall_thermal.h"
Include dependency graph for cs_1d_wall_thermal.cpp:Functions | |
| void | cs_1d_wall_thermal_create (void) |
| Initialize the cs_glob_1d_wall_thermal structure. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| void | cs_1d_wall_thermal_compute_n_faces_from_definitions (void) |
| Compute total number of coupled faces. More... | |
| void | cs_1d_wall_thermal_initialize (void) |
| Initialization step based on zones. More... | |
| void | cs_1d_wall_thermal_prepare_solve (const bool use_constant_time_step) |
| Update properties, time step and boundary conditions before solve step. More... | |
| void | cs_1d_wall_thermal_post_set_status (bool new_status) |
| Set postprocessing status. More... | |
| void | cs_1d_wall_thermal_create_post_mesh (void) |
| Create post-processing mesh. More... | |
| fvm_nodal_t * | cs_1d_wall_thermal_export_nodal (void) |
| Create and return a nodal fvm export of the 1D mesh. More... | |
| 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) More... | |
| bool | cs_1d_wall_thermal_post_activated (void) |
| Check if postprocessing is activated. More... | |
| void | cs_1d_wall_thermal_local_models_create (void) |
| Allocate the array of structures local_models. More... | |
| void | cs_1d_wall_thermal_mesh_create (void) |
| Create the 1D mesh for each face and initialize the temperature. More... | |
| 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. More... | |
| void | cs_1d_wall_thermal_read (void) |
| Read the restart file of the 1D-wall thermal module. More... | |
| void | cs_1d_wall_thermal_write (void) |
| Write the restart file of the 1D-wall thermal module. More... | |
| void | cs_1d_wall_thermal_free (void) |
| Free the array of structures local_models. More... | |
| void | cs_1d_wall_thermal_finalize (void) |
| Destroy the global 1d wall thermal structure. More... | |
| cs_1d_wall_thermal_t * | cs_get_glob_1d_wall_thermal (void) |
| Provide access to cs_glob_1d_wall_thermal. More... | |
| void | cs_1d_wall_thermal_log (void) |
| Print information about the 1d wall thermal computation. More... | |
| void | cs_1d_wall_thermal_check (int iappel) |
| Data checking for the 1D thermal wall module. More... | |
| bool | cs_1d_wall_thermal_is_used (void) |
| Check if 1d wall thermal module is used. More... | |
Modelling the thermal wall with a 1D approach.
| 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)
| [in] | writer | pointer to fvm_writer_t to use |
| [in] | nm | pointer to fvm_nodal_t (1D mesh) |
| [in] | nt_cur | current time step |
| [in] | t_cur | current time |
| 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.
| [in] | zone | boundary zone to add |
| [in] | n_layers | number of layers |
| void cs_1d_wall_thermal_check | ( | int | iappel | ) |
Data checking for the 1D thermal wall module.
| [in] | iappel | Call number:
|
| void cs_1d_wall_thermal_compute_n_faces_from_definitions | ( | void | ) |
Compute total number of coupled faces.
| void cs_1d_wall_thermal_create | ( | void | ) |
Initialize the cs_glob_1d_wall_thermal structure.
| void cs_1d_wall_thermal_create_post_mesh | ( | void | ) |
Create post-processing mesh.
| fvm_nodal_t * cs_1d_wall_thermal_export_nodal | ( | void | ) |
Create and return a nodal fvm export of the 1D mesh.
| void cs_1d_wall_thermal_finalize | ( | void | ) |
Destroy the global 1d wall thermal structure.
| void cs_1d_wall_thermal_free | ( | void | ) |
Free the array of structures local_models.
| void cs_1d_wall_thermal_initialize | ( | void | ) |
Initialization step based on zones.
| bool cs_1d_wall_thermal_is_used | ( | void | ) |
Check if 1d wall thermal module is used.
| void cs_1d_wall_thermal_local_models_create | ( | void | ) |
Allocate the array of structures local_models.
| void cs_1d_wall_thermal_log | ( | void | ) |
Print information about the 1d wall thermal computation.
| void cs_1d_wall_thermal_mesh_create | ( | void | ) |
Create the 1D mesh for each face and initialize the temperature.
| bool cs_1d_wall_thermal_post_activated | ( | void | ) |
Check if postprocessing is activated.
| void cs_1d_wall_thermal_post_set_status | ( | bool | new_status | ) |
Set postprocessing status.
| [in] | new_status | postprocessing status to set |
| void cs_1d_wall_thermal_prepare_solve | ( | const bool | use_constant_time_step | ) |
Update properties, time step and boundary conditions before solve step.
| [in] | use_constant_time_step | Use constant time step or not |
| void cs_1d_wall_thermal_read | ( | void | ) |
Read the restart file of the 1D-wall thermal module.
Solve the 1D equation for a given face.
| [in] | ii | face number |
| [in] | tf | fluid temperature at the boundarys |
| [in] | hf | exchange coefficient for the fluid |
| void cs_1d_wall_thermal_write | ( | void | ) |
Write the restart file of the 1D-wall thermal module.
| 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.
| 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.
| 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.
| 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.
| 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.
| cs_1d_wall_thermal_t * cs_get_glob_1d_wall_thermal | ( | void | ) |
Provide access to cs_glob_1d_wall_thermal.