The cs_user_1d_wall_thermal subroutine is used to set the 1D-wall thermal module parameters.
Local variables declaration
Allocation
Rereading of the restart file
iappel = 1 or 2
if (iappel == 1 || iappel == 2) {
izone++;
for (
cs_lnum_t ilelt = 0 ; ilelt < nlelt ; ilelt++) {
wall_thermal->izft1d[
ifac-1] = izone;
if (iappel == 2) wall_thermal->ifpt1d[ifbt1d] =
ifac;
ifbt1d++;
}
}
if (iappel == 1) {
wall_thermal->nfpt1d = ifbt1d;
}
iappel = 2
if (iappel == 2) {
for (
cs_lnum_t ii = 0 ; ii < wall_thermal->nfpt1d ; ii++) {
wall_thermal->local_models[ii].nppt1d = 8;
wall_thermal->local_models[ii].eppt1d = 0.01144;
wall_thermal->local_models[ii].rgpt1d = 1.;
}
}
iappel = 3
if (iappel == 3) {
for (
cs_lnum_t ii = 0 ; ii < wall_thermal->nfpt1d ; ii++) {
wall_thermal->local_models[ii].iclt1d = 1;
cs_lnum_t face_id = wall_thermal->ifpt1d[ii] - 1;
if (
cdgfbo[face_id][2] <= 1.e-3) {
wall_thermal->local_models[ii].xlmbt1 = 0.16;
wall_thermal->local_models[ii].rcpt1d = 790.*900.;
} else {
wall_thermal->local_models[ii].xlmbt1 = 0.11;
wall_thermal->local_models[ii].rcpt1d = 670.*778.;
}
wall_thermal->local_models[ii].dtpt1d =
CS_F_(
dt)->val[c_id];
}
}
Deallocation