101 dict_.lookupOrDefault<
word>(
"regionName",
"none");
103 const word baffleName(
"3DBaffle" + regionName);
108 && regionName !=
"none" 111 if (extrudeMeshPtr_.empty())
118 baffle_->rename(baffleName);
147 mixedFvPatchScalarField::autoMap(m);
157 mixedFvPatchScalarField::rmap(ptf, addr);
161 void thermalBaffleFvPatchScalarField::createPatchMesh()
174 patchNames[sidePatchID] =
word(
"side");
175 patchNames[topPatchID] =
word(
"top");
177 patchTypes[bottomPatchID] = mappedWallPolyPatch::typeName;
178 patchTypes[topPatchID] = mappedWallPolyPatch::typeName;
182 patchTypes[sidePatchID] = emptyPolyPatch::typeName;
186 patchTypes[sidePatchID] = polyPatch::typeName;
190 refCast<const mappedPatchBase>(patch().patch());
195 inGroups[0] = coupleGroup;
197 dicts[bottomPatchID].add(
"coupleGroup", coupleGroup);
198 dicts[bottomPatchID].add(
"inGroups", inGroups);
201 const label sepPos = coupleGroup.find(
'_');
203 const word coupleGroupSlave = coupleGroup(0, sepPos) +
"_slave";
205 inGroups[0] = coupleGroupSlave;
206 dicts[topPatchID].add(
"coupleGroup", coupleGroupSlave);
207 dicts[topPatchID].add(
"inGroups", inGroups);
211 forAll (regionPatches, patchI)
214 patchDict.
set(
"nFaces", 0);
215 patchDict.
set(
"startFace", 0);
227 extrudeMeshPtr_.reset
239 if (extrudeMeshPtr_.empty())
243 "thermalBaffleFvPatchScalarField::createPatchMesh()\n" 244 ) <<
"Specified IOobject::MUST_READ_IF_MODIFIED but class" 245 <<
" patchMeshPtr not set." Top level extrusion model class.
Mesh data needed to do the Finite Volume discretisation.
const word & name() const
Return reference to name.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const word & coupleGroup() const
PatchGroup (only if NEARESTPATCHFACE)
wordList patchNames(nPatches)
virtual void write(Ostream &) const
Write.
wordList patchTypes(nPatches)
bool foundObject(const word &name) const
Is the named Type found?
thermalBaffleFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
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.
void size(const label)
Override size to be inconsistent with allocated storage.
Foam::fvPatchFieldMapper.
makePatchTypeField(fvPatchScalarField, thermalBaffleFvPatchScalarField)
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
label readLabel(Istream &is)
static const dictionary null
Null dictionary.
const Time & time() const
Return the top-level database.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
static const NamedEnum< sampleMode, 6 > sampleModeNames_
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
static autoPtr< polyPatch > New(const word &patchType, const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm)
Return a pointer to a new patch created on freestore from.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Mixed boundary condition for temperature and radiation heat transfer to be used for in multiregion ca...
static word defaultRegion
Return the default region name.
void set(entry *)
Assign a new entry, overwrite any existing entry.
const sampleMode & mode() const
What to sample.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const polyMesh & mesh() const
Return the mesh reference.
Mesh at a patch created on the fly. The following entry should be used on the field boundary dictiona...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.