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 "thermalBaffleModel::thermalBaffleModel" 124 ) <<
"\n patch type '" << pp.type()
126 << mappedVariableThicknessWallPolyPatch::typeName
127 <<
"'. This is necessary for 1D solution " 128 <<
" and variable thickness" 129 <<
"\n for patch. " << pp.
name()
132 else if (!isA<mappedWallPolyPatch>(pp))
136 "thermalBaffleModel::thermalBaffleModel" 141 ) <<
"\n patch type '" << pp.type()
143 << mappedWallPolyPatch::typeName
144 <<
"'. This is necessary for 3D solution" 145 <<
"\n for patch. " << pp.
name()
163 if (thickness_.size() != pp.size())
167 "thermalBaffleModel::thermalBaffleModel" 172 ) <<
" coupled patches in thermalBaffle are " <<
nl 173 <<
" different sizes from list thickness" <<
nl 180 forAll (ppCoupled, localFaceI)
212 thermalBaffleModel::thermalBaffleModel
214 const word& modelType,
230 thermalBaffleModel::thermalBaffleModel
232 const word& modelType,
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
Foam::mappedVariableThicknessWallPolyPatch.
bool oneD_
Is it one dimension.
Mesh data needed to do the Finite Volume discretisation.
label size() const
Return the number of elements in the PtrList.
const word & name() const
Return name.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual bool read()
Read control parameters from dictionary.
virtual bool read()
Read control parameters from IO dictionary.
Switch active_
Active flag.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
defineTypeNameAndDebug(noThermo, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fvMesh & regionMesh() const
Return the region mesh database.
virtual ~thermalBaffleModel()
Destructor.
scalarList & thickness()
Return non const thickness.
A list of keyword definitions, which are a keyword followed by any number of values (e...
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
label size() const
Return number of elements in list.
A patch is a list of labels that address the faces in the global face list.
virtual void preEvolveRegion()
Pre-evolve region.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool constantThickness_
Is thickness constant.
label nLayers_
Number of layers in the region.
defineRunTimeSelectionTable(thermalBaffleModel, mesh)
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
label start() const
Return start label of this patch in the polyMesh face list.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
labelList boundaryFaceOppositeFace_
Global boundary face IDs oppossite coupled patch.
To & refCast(From &r)
Reference type cast template function.
scalarField thickness_
Baffle physical thickness.
dimensionedScalar delta_
Baffle mesh thickness.
const Type & value() const
Return const reference to value.