35 namespace regionModels
61 void thermalBaffleModel::init()
66 label nTotalEdges = 0;
81 isA<wedgePolyPatch>(rbm[patchi])
82 || isA<emptyPolyPatch>(rbm[patchi])
91 if (nTotalEdges == nFaces)
94 Info <<
"\nThe thermal baffle is 1D \n" <<
endl;
98 Info <<
"\nThe thermal baffle is 3D \n" <<
endl;
108 !isA<mappedVariableThicknessWallPolyPatch>(pp)
115 << mappedVariableThicknessWallPolyPatch::typeName
116 <<
"'. This is necessary for 1D solution " 117 <<
" and variable thickness" 118 <<
"\n for patch. " << pp.
name()
121 else if (!isA<mappedWallPolyPatch>(pp))
125 << mappedWallPolyPatch::typeName
126 <<
"'. This is necessary for 3D solution" 127 <<
"\n for patch. " << pp.
name()
145 if (thickness_.size() != pp.size())
148 <<
" coupled patches in thermalBaffle are " <<
nl 149 <<
" different sizes from list thickness" <<
nl 156 forAll(ppCoupled, localFacei)
189 const word& modelType,
207 const word& modelType,
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
const word & name() const
Return name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual ~thermalBaffleModel()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void preEvolveRegion()
Pre-evolve region.
Base class for 1-D region models.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
To & refCast(From &r)
Reference type cast template function.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimLength
scalarList & thickness()
Return non const thickness.
defineTypeNameAndDebug(regionModel, 0)
virtual bool read()
Read control parameters from IO dictionary.
defineRunTimeSelectionTable(regionModelFunctionObject, dictionary)
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.
scalarField thickness_
Baffle physical thickness.
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,.
virtual bool read()
Read control parameters from dictionary.
Mesh data needed to do the Finite Volume discretisation.
bool oneD_
Is it one dimension.
label start() const
Return start label of this patch in the polyMesh face list.
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensionedScalar delta_
Baffle mesh thickness.
label nLayers_
Number of layers in the region.
thermalBaffleModel(const fvMesh &mesh)
Construct null from mesh.
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.
labelList boundaryFaceOppositeFace_
Global boundary face IDs opposite coupled patch.
bool constantThickness_
Is thickness constant.