Go to the documentation of this file.
35 namespace regionModels
37 namespace thermalBaffleModels
70 label nTotalEdges = 0;
85 isA<wedgePolyPatch>(rbm[
patchi])
86 || isA<emptyPolyPatch>(rbm[
patchi])
95 if (nTotalEdges == nFaces)
98 Info <<
"\nThe thermal baffle is 1D \n" <<
endl;
102 Info <<
"\nThe thermal baffle is 3D \n" <<
endl;
112 !isA<mappedVariableThicknessWallPolyPatch>(pp)
119 << mappedVariableThicknessWallPolyPatch::typeName
120 <<
"'. This is necessary for 1D solution "
121 <<
" and variable thickness"
122 <<
"\n for patch. " << pp.
name()
125 else if (!isA<mappedWallPolyPatch>(pp))
129 << mappedWallPolyPatch::typeName
130 <<
"'. This is necessary for 3D solution"
131 <<
"\n for patch. " << pp.
name()
152 <<
" coupled patches in thermalBaffle are " <<
nl
153 <<
" different sizes from list thickness" <<
nl
160 forAll (ppCoupled, localFaceI)
188 constantThickness_(true)
194 const word& modelType,
204 constantThickness_(
dict.lookupOrDefault<
bool>(
"constantThickness",
true))
212 const word& modelType,
220 constantThickness_(lookupOrDefault<bool>(
"constantThickness",
true))
bool oneD_
Is it one dimension.
virtual bool read()
Read control parameters from dictionary.
labelList boundaryFaceOppositeFace_
Global boundary face IDs oppossite coupled patch.
A class for handling words, derived from string.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensionedScalar delta_
Baffle mesh thickness.
#define forAll(list, i)
Loop across all elements in list.
bool constantThickness_
Is thickness constant.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
dimensioned< scalar > mag(const dimensioned< Type > &)
scalarField thickness_
Baffle physical thickness.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A patch is a list of labels that address the faces in the global face list.
virtual ~thermalBaffleModel()
Destructor.
Foam::mappedVariableThicknessWallPolyPatch.
void init()
Initialize thermal Baffle.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Switch active_
Active flag.
thermalBaffleModel(const thermalBaffleModel &)
Disallow default bitwise copy construct.
Mesh data needed to do the Finite Volume discretisation.
label start() const
Return start label of this patch in the polyMesh face list.
To & refCast(From &r)
Reference type cast template function.
errorManipArg< error, int > exit(error &err, const int errNo=1)
label nLayers_
Number of layers in the region.
defineTypeNameAndDebug(noThermo, 0)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label size() const
Return the number of elements in the PtrList.
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
virtual void preEvolveRegion()
Pre-evolve region.
scalarList & thickness()
Return non const thickness.
const word & name() const
Return name.
defineRunTimeSelectionTable(thermalBaffleModel, mesh)
virtual bool read()
Read control parameters from IO dictionary.
const fvMesh & regionMesh() const
Return the region mesh database.