40namespace thermalBaffleModels
66void 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])
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)
123 <<
"'. This is necessary for 1D solution "
124 <<
" and variable thickness"
125 <<
"\n for patch. " << pp.name()
128 else if (!isA<mappedWallPolyPatch>(pp))
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)
197 const word& modelType,
207 constantThickness_(
dict.getOrDefault(
"constantThickness", true))
215 const word& modelType,
223 constantThickness_(getOrDefault(
"constantThickness", true))
void size(const label n)
Older name for setAddressableSize.
label size() const noexcept
The number of elements in the list.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const Type & value() const
Return const reference to value.
Mesh data needed to do the Finite Volume discretisation.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Base class for 1-D region models.
labelList boundaryFaceOppositeFace_
Global boundary face IDs oppositte coupled patch.
label nLayers_
Number of layers in the region.
virtual bool read()
Read control parameters from dictionary.
Switch active_
Active flag.
const fvMesh & regionMesh() const
Return the region mesh database.
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
bool constantThickness_
Is thickness constant.
scalarField thickness_
Baffle physical thickness.
virtual void preEvolveRegion()
Pre-evolve region.
bool oneD_
Is it one dimension.
dimensionedScalar delta_
Baffle mesh thickness.
virtual bool read()
Read control parameters from IO dictionary.
virtual ~thermalBaffleModel()
Destructor.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const labelList nFaces(UPstream::listGatherValues< label >(aMesh.nFaces()))
To & refCast(From &r)
Reference type cast template function.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)
static constexpr const zero Zero
Global zero (0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
#define forAll(list, i)
Loop across all elements in list.
static const char *const typeName
The type name used in ensight case files.