Go to the documentation of this file.
38 namespace regionModels
46 void Foam::regionModels::regionFaModel::constructMeshObjects()
55 void Foam::regionModels::regionFaModel::initialise()
59 Pout<<
"regionFaModel::initialise()" <<
endl;
62 vsmPtr_.reset(
new volSurfaceMapping(regionMeshPtr_()));
72 if (
const dictionary* dictptr =
dict.findDict(modelName_ +
"Coeffs"))
77 infoOutput_.readIfPresent(
"infoOutput",
dict);
99 const word& regionType,
100 const word& modelName,
105 primaryMesh_(
patch.boundaryMesh().mesh()),
107 time_(
patch.boundaryMesh().mesh().time()),
110 modelName_(modelName),
111 regionMeshPtr_(
nullptr),
112 coeffs_(
dict.subOrEmptyDict(modelName +
"Coeffs")),
114 patchID_(
patch.index()),
115 regionName_(
dict.lookup(
"region"))
119 constructMeshObjects();
136 Info<<
"\nEvolving " << modelName_ <<
" for region "
137 << regionMesh().name() <<
endl;
int debug
Static debugging option.
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.
defineTypeNameAndDebug(KirchhoffShell, 0)
autoPtr< faMesh > regionMeshPtr_
Pointer to the region mesh database.
bool read(const char *buf, int32_t &val)
Same as readInt32.
Ostream & endl(Ostream &os)
Add newline and flush stream.
regionFaModel(const fvPatch &patch, const word ®ionType, const word &modelName, const dictionary &dict, bool readFields=true)
Construct from mesh and name and dict.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
const volSurfaceMapping & vsm() const
Return volSurfaceMapping.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
messageStream Info
Information stream (uses stdout - output is on the master only)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void postEvolveRegion()
Post-evolve region.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
virtual void preEvolveRegion()
Pre-evolve region.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
virtual void evolveRegion()
Evolve the region.
const std::string patch
OpenFOAM patch number as a std::string.
Volume to surface and surface to volume mapping.
virtual bool read(const dictionary &dict)
Read control parameters from dictionary.
virtual void info()
Provide some feedback.
virtual void evolve()
Main driver routing to evolve the region - calls other evolves.
const fvMesh & primaryMesh_
Reference to the primary mesh database.