35 namespace regionModels
37 namespace thermalBaffleModels
63 void thermalBaffleModel::init()
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()
149 if (thickness_.size() != pp.size())
152 <<
" coupled patches in thermalBaffle are " <<
nl 153 <<
" different sizes from list thickness" <<
nl 160 forAll(ppCoupled, localFacei)
192 thermalBaffleModel::thermalBaffleModel
194 const word& modelType,
210 thermalBaffleModel::thermalBaffleModel
212 const word& modelType,
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
dimensionedScalar delta_
Baffle mesh thickness.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
Base class for 1-D region models.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool oneD_
Is it one dimension.
To & refCast(From &r)
Reference type cast template function.
bool constantThickness_
Is thickness constant.
scalarField thickness_
Baffle physical thickness.
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalarList & thickness()
Return non const thickness.
A class for handling words, derived from string.
const Type & value() const
Return const reference to value.
const fvMesh & regionMesh() const
Return the region mesh database.
virtual ~thermalBaffleModel()
Destructor.
Switch active_
Active flag.
virtual void preEvolveRegion()
Pre-evolve region.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
Foam::mappedVariableThicknessWallPolyPatch.
label size() const
Return the number of elements in the UPtrList.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
virtual bool read()
Read control parameters from dictionary.
defineTypeNameAndDebug(noThermo, 0)
Mesh data needed to do the Finite Volume discretisation.
label start() const
Return start label of this patch in the polyMesh face list.
virtual bool read()
Read control parameters from IO dictionary.
dimensioned< scalar > mag(const dimensioned< Type > &)
label nLayers_
Number of layers in the region.
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
A patch is a list of labels that address the faces in the global face list.
defineRunTimeSelectionTable(thermalBaffleModel, mesh)
labelList boundaryFaceOppositeFace_
Global boundary face IDs oppossite coupled patch.