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);
214 patchDict.
set(
"nFaces", 0);
215 patchDict.
set(
"startFace", 0);
227 extrudeMeshPtr_.reset
239 if (extrudeMeshPtr_.empty())
242 <<
"Specified IOobject::MUST_READ_IF_MODIFIED but class" 243 <<
" patchMeshPtr not set." #define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
bool foundObject(const word &name) const
Is the named Type found?
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void size(const label)
Override size to be inconsistent with allocated storage.
static const dictionary null
Null dictionary.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
wordList patchTypes(nPatches)
static word defaultRegion
Return the default region name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
Mixed boundary condition for temperature and radiation heat transfer to be used for in multiregion ca...
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Mesh at a patch created on the fly. The following entry should be used on the field boundary dictiona...
virtual void write(Ostream &) const
Write.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Top level extrusion model class.
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
wordList patchNames(nPatches)
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
const polyMesh & mesh() const
Return the mesh reference.
label readLabel(Istream &is)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const
Write.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
static const NamedEnum< sampleMode, 6 > sampleModeNames_
thermalBaffleFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
#define WarningInFunction
Report a warning using Foam::Warning.
Mesh data needed to do the Finite Volume discretisation.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void set(entry *)
Assign a new entry, overwrite any existing entry.
const word & coupleGroup() const
PatchGroup (only if NEARESTPATCHFACE)
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.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
const sampleMode & mode() const
What to sample.
This boundary condition provides a coupled temperature condition between multiple mesh regions...
const word & name() const
Return reference to name.
makePatchTypeField(fvPatchScalarField, thermalBaffleFvPatchScalarField)
const Time & time() const
Return the top-level database.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.