My Project
programmer's documentation
|
Source terms associated at the boundary faces and the neighboring cells with surface condensation. More...
Functions/Subroutines | |
subroutine | cs_user_boundary_mass_source_terms (nvar, nscal, nfbpcd, iappel, ifbpcd, itypcd, izftcd, spcond, tpar) |
Source terms associated at the boundary faces and the neighboring cells with surface condensation.
This subroutine fills the condensation source terms for each variable at the cell center associated to the boundary faces identifed in the mesh. The fluid exchange coefficient is computed with a empiric law to be imposed at the boundary face where the condensation phenomenon occurs.
This user subroutine is called which allows the setting of the condensation source term.
This function fills the condensation source term array gamma_cond adding to the following equations:
discretized as below:
is the value of associated to the injected condensation rate.
With 2 options are available:
The three stages in the code where this User subroutine is called (with
)
subroutine cs_user_boundary_mass_source_terms | ( | integer | nvar, |
integer | nscal, | ||
integer | nfbpcd, | ||
integer | iappel, | ||
integer, dimension(nfbpcd) | ifbpcd, | ||
integer, dimension(nfbpcd,nvar) | itypcd, | ||
integer, dimension(ncel) | izftcd, | ||
double precision, dimension(nfbpcd,nvar) | spcond, | ||
double precision | tpar | ||
) |
[in] | nvar | total number of variables |
[in] | nscal | total number of scalars |
[in] | iappel | indicates which at which stage the routine is |
[in] | nfbpcd | number of faces with condensation source terms |
[in] | ifbpcd | index of faces with condensation source terms |
[in] | itypcd | type of condensation source term for each ivar |
[in] | izftcd | faces zone with condensation source terms imposed (at previous and current time steps) |
[out] | spcond | variable value associated to the condensation source term (for ivar=ipr, spcond is the flow rate ) |
[out] | tpar | temperature imposed at the cold wall as constant or variable in time with a 1D thermal model |