![]() |
programmer's documentation
|
#include "cs_defs.h"
#include <assert.h>
#include <string.h>
#include <math.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "fvm_writer.h"
#include "cs_base.h"
#include "cs_fan.h"
#include "cs_field.h"
#include "cs_gui_util.h"
#include "cs_field_pointer.h"
#include "cs_field_operator.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_location.h"
#include "cs_mesh_quantities.h"
#include "cs_halo.h"
#include "cs_halo_perio.h"
#include "cs_log.h"
#include "cs_multigrid.h"
#include "cs_parameters.h"
#include "cs_physical_constants.h"
#include "cs_prototypes.h"
#include "cs_rotation.h"
#include "cs_sles.h"
#include "cs_sles_it.h"
#include "cs_time_moment.h"
#include "cs_time_step.h"
#include "cs_turbomachinery.h"
#include "cs_selector.h"
#include "cs_rad_transfer.h"
#include "cs_thermal_model.h"
#include "cs_post.h"
Functions | |
void | cs_user_radiative_transfer_bcs (int nvarcl, const int bc_type[], int icodcl[], int izfrdp[], int isothp[], cs_real_t *tmin, cs_real_t *tmax, cs_real_t *tx, const cs_real_t dt[], cs_real_t rcodcl[], const cs_real_t thwall[], const cs_real_t qincid[], cs_real_t hfcnvp[], cs_real_t flcnvp[], cs_real_t xlamp[], cs_real_t epap[], cs_real_t epsp[], cs_real_t textp[], cs_real_t tintp[]) |
User definition of radiative transfer boundary conditions. More... | |
void cs_user_radiative_transfer_bcs | ( | int | nvarcl, |
const int | bc_type[], | ||
int | icodcl[], | ||
int | izfrdp[], | ||
int | isothp[], | ||
cs_real_t * | tmin, | ||
cs_real_t * | tmax, | ||
cs_real_t * | tx, | ||
const cs_real_t | dt[], | ||
cs_real_t | rcodcl[], | ||
const cs_real_t | thwall[], | ||
const cs_real_t | qincid[], | ||
cs_real_t | hfcnvp[], | ||
cs_real_t | flcnvp[], | ||
cs_real_t | xlamp[], | ||
cs_real_t | epap[], | ||
cs_real_t | epsp[], | ||
cs_real_t | textp[], | ||
cs_real_t | tintp[] | ||
) |
User definition of radiative transfer boundary conditions.
See Examples of data settings for radiative transfers for examples.
We define zones of wall boundaries, and we assign a type. This allows to apply the boundary conditions and realize balance sheets by treating them separately for each zone. For each boundary face face_id (not just wall faces) a zone number IZFRDP(face_id) must be assigned. Warning: it is essential that ALL boundary faces have been assigned to a zone. The number of zones (the value of IZFRDP(face_id)) is arbitrarily chosen by the user, but must be a positive integer less than or equal to cs_glob_rad_transfer_params->nbzrdm (value set in parameter cs_user_radiation_parameters.h).
The following face characteristics must be set:
Depending on the value of isothp, other values may also need to be set:
[in] | nvarcl | total number of variable BC's |
[in] | bc_type | boundary face types |
[in] | icodcl | boundary face code
|
[in] | izfrdp | boundary faces -> zone number |
[in] | isothp | boundary face type for radative transfer
|
[out] | tmin | min allowed value of the wall temperature |
[out] | tmax | max allowed value of the wall temperature |
[in] | tx | relaxation coefficient (0 < tx < 1) |
[in] | dt | time step (per cell) |
[in] | rcodcl | boundary condition values rcodcl(3) = flux density value (negative for gain) in W/m2 |
[in] | thwall | inside current wall temperature (K) |
[in] | qincid | radiative incident flux (W/m2) |
[in] | hfcnvp | convective exchange coefficient (W/m2/K) |
[in] | flcnvp | convective flux (W/m2) |
[out] | xlamp | conductivity (W/m/K) |
[out] | epap | thickness (m) |
[out] | epsp | emissivity (>0) |
[out] | textp | outside temperature (K) |
[out] | tintp | initial inside temperature (K) |