My Project
programmer's documentation
|
The module can be activated in the usppmo routine in cs_user_parameters.f90. The corresponding keyword is iirayo
in the cs_glob_rad_transfer_params structure.
This member can take the values:
When the module is activated, its specific input parameters should be set in the cs_user_radiative_transfer_parameters function of the cs_user_radiative_transfer.c file.
Radiative transfer parameters may be defined using the cs_user_radiative_transfer_parameters function.
The radiative boundary condition is based on the calculation of a new wall temperature. This temperature is computed with a thermal flux balance:
Therefore :
Code_Saturne
the flux is positive when it is oriented from inside to outside.Body | Emissivity |
---|---|
polished steel | 0.06 |
oxidized steel | 0.80 |
steel rough | 0.94 |
polished aluminium | 0.04 |
oxidiezd aluminium (inside) | 0.09 |
oxidized aluminium (wet air) | 0.90 |
brick | 0.93 |
concrete | 0.93 |
paper | 0.8 to 0.9 |
water | 0.96 |
Boundary faces may be identified using the getfbr function, or preferrably, through boundary zones, defined using the GUI or the cs_user_zones function..
The following declaration and initialization block needs to be added for the following examples:
Remaining initialisation
ivar: number of the thermal variable
Min and Max values for the wall temperatures (clipping otherwise)
and are given in Kelvin.
For each boundary face face_id, a specific output (logging and postprocessing) zone id may be assigned. This allows realizing balance sheets by treating them separately for each zone. By default, the output zone id is set to the general (input) zone id associated to a face.
To access output zone ids (both for reading and modifying), use the cs_rad_transfer_get_output_b_face_zone_ids function. The zone id values are arbitrarily chosen by the user, but must be positive integers; very high numbers may also lead to higher memory consumption.
isothp(ifac)
boundary face typeitpimp
-> Gray wall with fixed inside temperatureipgrno
-> Gray wall with fixed outside temperatureiprefl
-> Reflecting wall with fixed outside temperatureifgrno
-> Gray wall with fixed conduction fluxifrefl
-> Reflecting wall with fixed conduction fluxtintp(ifac)
inside wall temperature (Kelvin) initialize thwall at the first time step. If isothp
= itpimp
, the value of thwall is fixed to tintp
In the other case, tintp
is only for initialization. rcodcl
= conduction fluxepsp
= emissivityxlamp
= conductivity ( )epap
= thickness ( )textp
= outside temperature ( )Here is a list of examples:
For wall boundary faces, selection criteria: color 1
For wall boundary faces, selection criteria: color 2
For wall boundary faces, selection criteria: color 3
For wall boundary faces which have the color 4:
If the conduction flux is zero then the wall is adiabatic. The array has the value of the flux.
Flux density (< 0 if gain for the fluid)
For wall boundary faces which have the color 5:
and
If the conduction flux is zero then the wall is adiabatic. Flux density (< 0 if gain for the fluid)
For all boundary faces that are not wall it is MANDATORY to impose a number of zone in the array izfrdp
. For each zone, informations will be displayed in the listing.
Verification that all boundary faces have been treated
The absorption coefficient and the net radiation flux for the radiative module can be defined in cs_user_radiative_transfer.c through the cs_user_rad_transfer_absorption and Net radiation flux subroutines.
The absorption coefficient is defined in cs_user_rad_transfer_absorption.
The net radiation flux is computed in Net radiation flux.
At the end of the subroutine, if iok
is different from zero, some faces have been forgotten and the calculation stops.