![]() |
programmer's documentation
|
Source terms modelling condensation inside the fluid domain on internal metal structures and at the boundaries can be set respectively through the subroutines cs_user_metal_structures_source_terms and cs_user_boundary_mass_source_terms.
This model can be enabled in the subroutine usppmo in the file cs_user_parameters.f90 as follows:
The setting of the condensation source terms is then done in the subroutine cs_user_metal_structures_source_terms as follows below.
The following variables need to be declared:
Necessary species physical properties can be retrieved as follows:
The zones on which the condensation mass source term will be imposed can be defined as follows:
Modelling of the metal side (wall thermal model and metal properties can then be specified as follows:
Finally the source term type and values have to be set as follows:
The following variables need to be declared:
Necessary species physical properties can be retrieved as follows:
The subroutine cs_user_boundary_mass_source_terms is called three times.
At the first call the number of boundary faces and number of zones on which a boundary mass source term is imposed is computed according to the selection criteria prescribed by the user.
The above part of the subroutine is also executed at the second call. In addition, at the second call, condensation models are chosen.
Finally at the third call, the source term types and values have to be set.