9.2
general documentation
cs_1d_wall_thermal.h File Reference
#include "base/cs_base.h"
#include "base/cs_zone.h"
#include "fvm/fvm_nodal.h"
#include "fvm/fvm_writer.h"
+ Include dependency graph for cs_1d_wall_thermal.h:

Go to the source code of this file.

Classes

struct  cs_1d_wall_thermal_local_model_t
 
struct  cs_1d_wall_thermal_t
 1D wall thermal module descriptor. More...
 

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...
 
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_thermal_create_post_mesh (void)
 Create post-processing 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_tcs_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...
 

Variables

const cs_1d_wall_thermal_tcs_glob_1d_wall_thermal
 

Function Documentation

◆ cs_1d_wall_post_temperature_field()

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)

Parameters
[in]writerpointer to fvm_writer_t to use
[in]nmpointer to fvm_nodal_t (1D mesh)
[in]nt_curcurrent time step
[in]t_curcurrent time

◆ cs_1d_wall_thermal_add_zone()

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.

Parameters
[in]zoneboundary zone to add
[in]n_layersnumber of layers

◆ cs_1d_wall_thermal_check()

void cs_1d_wall_thermal_check ( int  iappel)

Data checking for the 1D thermal wall module.

Parameters
[in]iappelCall number:
  • 1: first call during the initialization (called once) Checking the number of cells nfpt1d.
  • 2: second call during the initialization (called once) Checking ifpt1d, nppt1d, eppt1d and rgpt1d arrays.
  • 3: called at each time step Checking iclt1d, xlmbt1, rcpt1d and dtpt1d arrays.

◆ cs_1d_wall_thermal_compute_n_faces_from_definitions()

void cs_1d_wall_thermal_compute_n_faces_from_definitions ( void  )

Compute total number of coupled faces.

◆ cs_1d_wall_thermal_create()

void cs_1d_wall_thermal_create ( void  )

Initialize the cs_glob_1d_wall_thermal structure.

◆ cs_1d_wall_thermal_create_post_mesh()

void cs_1d_wall_thermal_create_post_mesh ( void  )

Create post-processing mesh.

◆ cs_1d_wall_thermal_export_nodal()

fvm_nodal_t * cs_1d_wall_thermal_export_nodal ( void  )

Create and return a nodal fvm export of the 1D mesh.

Returns
fvm_nodal_t pointer. Lifecycle is handled by caller!

◆ cs_1d_wall_thermal_finalize()

void cs_1d_wall_thermal_finalize ( void  )

Destroy the global 1d wall thermal structure.

◆ cs_1d_wall_thermal_free()

void cs_1d_wall_thermal_free ( void  )

Free the array of structures local_models.

◆ cs_1d_wall_thermal_initialize()

void cs_1d_wall_thermal_initialize ( void  )

Initialization step based on zones.

◆ cs_1d_wall_thermal_is_used()

bool cs_1d_wall_thermal_is_used ( void  )

Check if 1d wall thermal module is used.

Returns
true if active, false otherwise

◆ cs_1d_wall_thermal_local_models_create()

void cs_1d_wall_thermal_local_models_create ( void  )

Allocate the array of structures local_models.

◆ cs_1d_wall_thermal_log()

void cs_1d_wall_thermal_log ( void  )

Print information about the 1d wall thermal computation.

◆ cs_1d_wall_thermal_mesh_create()

void cs_1d_wall_thermal_mesh_create ( void  )

Create the 1D mesh for each face and initialize the temperature.

◆ cs_1d_wall_thermal_post_activated()

bool cs_1d_wall_thermal_post_activated ( void  )

Check if postprocessing is activated.

Returns
true if postprocessing is used, false otherwise.

◆ cs_1d_wall_thermal_post_set_status()

void cs_1d_wall_thermal_post_set_status ( bool  new_status)

Set postprocessing status.

Parameters
[in]new_statuspostprocessing status to set

◆ cs_1d_wall_thermal_prepare_solve()

void cs_1d_wall_thermal_prepare_solve ( const bool  use_constant_time_step)

Update properties, time step and boundary conditions before solve step.

Parameters
[in]use_constant_time_stepUse constant time step or not

◆ cs_1d_wall_thermal_read()

void cs_1d_wall_thermal_read ( void  )

Read the restart file of the 1D-wall thermal module.

◆ cs_1d_wall_thermal_solve()

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.

Parameters
[in]iiface number
[in]tffluid temperature at the boundarys
[in]hfexchange coefficient for the fluid

◆ cs_1d_wall_thermal_write()

void cs_1d_wall_thermal_write ( void  )

Write the restart file of the 1D-wall thermal module.

◆ cs_1d_wall_thermal_zone_define_dirichlet_bc_const()

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.

◆ cs_1d_wall_thermal_zone_define_layer_mesh()

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.

◆ cs_1d_wall_thermal_zone_define_layer_properties_const()

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.

◆ cs_1d_wall_thermal_zone_define_neumann_bc_const()

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.

◆ cs_1d_wall_thermal_zone_define_robin_bc_const()

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_get_glob_1d_wall_thermal()

cs_1d_wall_thermal_t * cs_get_glob_1d_wall_thermal ( void  )

Provide access to cs_glob_1d_wall_thermal.

Variable Documentation

◆ cs_glob_1d_wall_thermal

const cs_1d_wall_thermal_t* cs_glob_1d_wall_thermal
extern