35 namespace regionModels
37 namespace thermalBaffleModels
63 void thermalBaffleModel::init()
68 label nTotalEdges = 0;
83 isA<wedgePolyPatch>(rbm[patchi])
84 || isA<emptyPolyPatch>(rbm[patchi])
93 if (nTotalEdges == nFaces)
96 Info <<
"\nThe thermal baffle is 1D \n" <<
endl;
100 Info <<
"\nThe thermal baffle is 3D \n" <<
endl;
110 !isA<mappedVariableThicknessWallPolyPatch>(pp)
117 << mappedVariableThicknessWallPolyPatch::typeName
118 <<
"'. This is necessary for 1D solution " 119 <<
" and variable thickness" 120 <<
"\n for patch. " << pp.
name()
123 else if (!isA<mappedWallPolyPatch>(pp))
127 << mappedWallPolyPatch::typeName
128 <<
"'. This is necessary for 3D solution" 129 <<
"\n for patch. " << pp.
name()
147 if (thickness_.size() != pp.size())
150 <<
" coupled patches in thermalBaffle are " <<
nl 151 <<
" different sizes from list thickness" <<
nl 158 forAll(ppCoupled, localFacei)
191 const word& modelType,
209 const word& modelType,
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
thermalBaffleModel(const fvMesh &mesh)
Construct null from mesh.
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.
const dimensionSet dimLength
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.
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,.
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 opposite coupled patch.