Go to the documentation of this file.
92 const fvMesh& thisMesh =
patch().boundaryMesh().mesh();
108 if (extrudeMeshPtr_.empty())
115 baffle_->rename(baffleName);
143 mixedFvPatchScalarField::autoMap(m);
153 mixedFvPatchScalarField::rmap(ptf, addr);
157 void thermalBaffleFvPatchScalarField::createPatchMesh()
159 const fvMesh& thisMesh =
patch().boundaryMesh().mesh();
172 patchTypes[bottomPatchID] = mappedWallPolyPatch::typeName;
173 patchTypes[topPatchID] = mappedWallPolyPatch::typeName;
175 if (dict_.
get<
bool>(
"columnCells"))
177 patchTypes[sidePatchID] = emptyPolyPatch::typeName;
181 patchTypes[sidePatchID] = polyPatch::typeName;
184 const mappedPatchBase& mpp =
185 refCast<const mappedPatchBase>(
patch().
patch(), dict_);
187 const word coupleGroup(mpp.coupleGroup());
190 inGroups[0] = coupleGroup;
192 dicts[bottomPatchID].add(
"coupleGroup", coupleGroup);
193 dicts[bottomPatchID].add(
"inGroups", inGroups);
194 dicts[bottomPatchID].add(
"sampleMode", mpp.sampleModeNames_[mpp.mode()]);
196 const word coupleGroupSlave =
197 coupleGroup.substr(0, coupleGroup.find(
'_')) +
"_slave";
199 inGroups[0] = coupleGroupSlave;
200 dicts[topPatchID].add(
"coupleGroup", coupleGroupSlave);
201 dicts[topPatchID].add(
"inGroups", inGroups);
202 dicts[topPatchID].add(
"sampleMode", mpp.sampleModeNames_[mpp.mode()]);
205 forAll(regionPatches, patchi)
207 dictionary& patchDict = dicts[patchi];
208 patchDict.set(
"nFaces", 0);
209 patchDict.set(
"startFace", 0);
221 extrudeMeshPtr_.reset
233 if (extrudeMeshPtr_.empty())
236 <<
"Specified IOobject::MUST_READ_IF_MODIFIED but class"
237 <<
" patchMeshPtr not set."
250 const fvMesh& thisMesh =
patch().boundaryMesh().mesh();
265 const fvMesh& thisMesh =
patch().boundaryMesh().mesh();
273 os.
writeEntry(
"expansionRatio", dict_.
get<scalar>(
"expansionRatio"));
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling words, derived from Foam::string.
Top level extrusion model class.
static word defaultRegion
Return the default region name.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
makePatchTypeField(fvPatchScalarField, alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField)
#define forAll(list, i)
Loop across all elements in list.
wordList patchTypes(nPatches)
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
List< word > wordList
A List of words.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
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 finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
wordList patchNames(nPatches)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void write(Ostream &) const
Write.
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.
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
This boundary condition provides a coupled temperature condition between multiple mesh regions.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
thermalBaffleFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Mixed boundary condition for temperature and radiation heat transfer to be used for in multiregion ca...
const std::string patch
OpenFOAM patch number as a std::string.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
const Time & time() const
Return the top-level database.
Foam::fvPatchFieldMapper.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
#define WarningInFunction
Report a warning using Foam::Warning.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const word & name() const
Return reference to name.
virtual void write(Ostream &) const
Write.