Go to the documentation of this file.
38 namespace regionModels
40 namespace thermalBaffleModels
66 void thermalBaffleModel::init()
73 label nTotalEdges = 0;
75 nTotalEdges = 2*
nLayers_*rbm[patchi].nInternalEdges();
77 nLayers_*(rbm[patchi].nEdges() - rbm[patchi].nInternalEdges());
88 isA<wedgePolyPatch>(rbm[patchi])
89 || isA<emptyPolyPatch>(rbm[patchi])
93 nFaces += rbm[patchi].size();
98 if (nTotalEdges == nFaces)
101 Info <<
"\nThe thermal baffle is 1D \n" <<
endl;
105 Info <<
"\nThe thermal baffle is 3D \n" <<
endl;
111 const polyPatch& pp = rbm[patchi];
115 !isA<mappedVariableThicknessWallPolyPatch>(pp)
122 << mappedVariableThicknessWallPolyPatch::typeName
123 <<
"'. This is necessary for 1D solution "
124 <<
" and variable thickness"
125 <<
"\n for patch. " << pp.name()
128 else if (!isA<mappedWallPolyPatch>(pp))
132 << mappedWallPolyPatch::typeName
133 <<
"'. This is necessary for 3D solution"
134 <<
"\n for patch. " << pp.name()
142 const polyPatch& pp = rbm[patchi];
143 const mappedVariableThicknessWallPolyPatch& ppCoupled =
146 const mappedVariableThicknessWallPolyPatch
155 <<
" coupled patches in thermalBaffle are " <<
nl
156 <<
" different sizes from list thickness" <<
nl
163 forAll(ppCoupled, localFacei)
165 label facei = ppCoupled.start() + localFacei;
191 constantThickness_(true)
195 thermalBaffleModel::thermalBaffleModel
197 const word& modelType,
207 constantThickness_(
dict.getOrDefault(
"constantThickness",
true))
213 thermalBaffleModel::thermalBaffleModel
215 const word& modelType,
223 constantThickness_(getOrDefault(
"constantThickness",
true))
bool oneD_
Is it one dimension.
virtual bool read()
Read control parameters from dictionary.
labelList boundaryFaceOppositeFace_
Global boundary face IDs oppositte coupled patch.
A class for handling words, derived from Foam::string.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensionedScalar delta_
Baffle mesh thickness.
static constexpr const zero Zero
Global zero (0)
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.
scalarField thickness_
Baffle physical thickness.
#define forAll(list, i)
Loop across all elements in list.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
messageStream Info
Information stream (stdout output on master, null elsewhere)
const fvMesh & regionMesh() const
Return the region mesh database.
virtual ~thermalBaffleModel()
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Switch active_
Active flag.
Mesh data needed to do the Finite Volume discretisation.
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.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
virtual void preEvolveRegion()
Pre-evolve region.
Base class for 1-D region models.
defineRunTimeSelectionTable(thermalBaffleModel, mesh)
virtual bool read()
Read control parameters from IO dictionary.