74 internal_(ptf.internal_),
96 const fvMesh& thisMesh = patch().boundaryMesh().mesh();
113 if (!extrudeMeshPtr_)
118 baffle_.reset(baffle::New(thisMesh,
dict).ptr());
120 baffle_->rename(baffleName);
133 internal_(ptf.internal_),
142void thermalBaffleFvPatchScalarField::createPatchMesh()
144 const fvMesh& thisMesh = patch().boundaryMesh().mesh();
168 if (dict_.
get<
bool>(
"columnCells"))
177 const mappedPatchBase& mpp =
178 refCast<const mappedPatchBase>(
patch().
patch(), dict_);
180 const word coupleGroup(mpp.coupleGroup());
183 inGroups[0] = coupleGroup;
186 dicts[bottomPatchID].add(
"coupleGroup", coupleGroup);
187 dicts[bottomPatchID].add(
"inGroups", inGroups);
188 dicts[bottomPatchID].add(
"sampleMode", mpp.sampleModeNames_[mpp.mode()]);
189 dicts[bottomPatchID].add(
"samplePatch",
patch().
name());
190 dicts[bottomPatchID].add(
"sampleRegion", thisMesh.
name());
195 const word coupleGroupSlave =
196 coupleGroup.substr(0, coupleGroup.find(
'_')) +
"_slave";
198 inGroups[0] = coupleGroupSlave;
199 dicts[topPatchID].add(
"coupleGroup", coupleGroupSlave);
200 dicts[topPatchID].add(
"inGroups", inGroups);
201 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
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
This boundary condition provides a coupled temperature condition between multiple mesh regions.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Mixed boundary condition for temperature and radiation heat transfer to be used for in multiregion ca...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
void writeEntry(Ostream &os) const
Write sub-dictionary with its dictName as its header.
Top level extrusion model class.
virtual bool write()
Write the output fields.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
const word & name() const
Return reference to name.
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A class for handling words, derived from Foam::string.
Foam::word regionName(Foam::polyMesh::defaultRegion)
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
const std::string patch
OpenFOAM patch number as a std::string.
List< word > wordList
A List of words.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
wordList patchTypes(nPatches)
wordList patchNames(nPatches)
#define forAll(list, i)
Loop across all elements in list.
static const char *const typeName
The type name used in ensight case files.