35 namespace compressible
77 dict_.lookupOrDefault<
word>(
"regionName",
"none");
79 const word baffleName(
"3DBaffle" + regionName);
84 && regionName !=
"none" 87 if (extrudeMeshPtr_.empty())
94 baffle_->rename(baffleName);
146 mixedFvPatchScalarField::autoMap(m);
156 mixedFvPatchScalarField::rmap(ptf, addr);
160 void thermalBaffleFvPatchScalarField::createPatchMesh()
173 patchNames[sidePatchID] =
word(
"side");
174 patchNames[topPatchID] =
word(
"top");
176 patchTypes[bottomPatchID] = mappedWallPolyPatch::typeName;
177 patchTypes[topPatchID] = mappedWallPolyPatch::typeName;
181 patchTypes[sidePatchID] = emptyPolyPatch::typeName;
185 patchTypes[sidePatchID] = polyPatch::typeName;
189 refCast<const mappedPatchBase>(patch().patch());
194 inGroups[0] = coupleGroup;
196 dicts[bottomPatchID].add(
"coupleGroup", coupleGroup);
197 dicts[bottomPatchID].add(
"inGroups", inGroups);
200 const label sepPos = coupleGroup.find(
'_');
202 const word coupleGroupSlave = coupleGroup(0, sepPos) +
"_slave";
204 inGroups[0] = coupleGroupSlave;
205 dicts[topPatchID].add(
"coupleGroup", coupleGroupSlave);
206 dicts[topPatchID].add(
"inGroups", inGroups);
213 patchDict.
set(
"nFaces", 0);
214 patchDict.
set(
"startFace", 0);
226 extrudeMeshPtr_.reset
238 if (extrudeMeshPtr_.empty())
241 <<
"Specified IOobject::MUST_READ_IF_MODIFIED but class" 242 <<
" patchMeshPtr not set." 284 os << dict_.
lookup<scalar>(
"expansionRatio")
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#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.
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void size(const label)
Override size to be inconsistent with allocated storage.
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...
bool foundObject(const word &name) const
Is the named Type found?
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...
const Time & time() const
Return the top-level database.
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Top level extrusion model class.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
const sampleMode & mode() const
What to sample.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
wordList patchNames(nPatches)
static const dictionary null
Null dictionary.
virtual void write(Ostream &) const
Write.
const polyMesh & mesh() const
Return the mesh reference.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const
Write.
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.
const word & name() const
Return reference to name.
const word & coupleGroup() const
PatchGroup (only if NEARESTPATCHFACE)
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.
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.
This boundary condition provides a coupled temperature condition between multiple mesh regions...
makePatchTypeField(fvPatchScalarField, thermalBaffleFvPatchScalarField)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.