38 namespace regionModels
40 namespace thermalBaffleModels
66 void thermalBaffleModel::init()
73 label nTotalEdges = 0;
75 nTotalEdges = 2*
nLayers_*rbm[patchi].nInternalEdges();
77 nLayers_*(rbm[patchi].nEdges() - rbm[patchi].nInternalEdges());
88 isA<wedgePolyPatch>(rbm[patchi])
89 || isA<emptyPolyPatch>(rbm[patchi])
93 nFaces += rbm[patchi].size();
96 reduce(nFaces, sumOp<label>());
98 if (nTotalEdges == nFaces)
101 Info <<
"\nThe thermal baffle is 1D \n" <<
endl;
105 Info <<
"\nThe thermal baffle is 3D \n" <<
endl;
111 const polyPatch& pp = rbm[patchi];
115 !isA<mappedVariableThicknessWallPolyPatch>(pp)
122 << mappedVariableThicknessWallPolyPatch::typeName
123 <<
"'. This is necessary for 1D solution "
124 <<
" and variable thickness"
125 <<
"\n for patch. " << pp.name()
128 else if (!isA<mappedWallPolyPatch>(pp))
132 << mappedWallPolyPatch::typeName
133 <<
"'. This is necessary for 3D solution"
134 <<
"\n for patch. " << pp.name()
142 const polyPatch& pp = rbm[patchi];
143 const mappedVariableThicknessWallPolyPatch& ppCoupled =
146 const mappedVariableThicknessWallPolyPatch
155 <<
" coupled patches in thermalBaffle are " <<
nl
156 <<
" different sizes from list thickness" <<
nl
163 forAll(ppCoupled, localFacei)
165 label facei = ppCoupled.start() + localFacei;
185 thermalBaffleModel::thermalBaffleModel(
const fvMesh&
mesh)
187 regionModel1D(
mesh,
"thermalBaffle"),
191 constantThickness_(true)
195 thermalBaffleModel::thermalBaffleModel
197 const word& modelType,
207 constantThickness_(
dict.getOrDefault(
"constantThickness", true))
213 thermalBaffleModel::thermalBaffleModel
215 const word& modelType,
223 constantThickness_(getOrDefault(
"constantThickness", true))