Go to the documentation of this file.
38 namespace regionModels
49 void Foam::regionModels::regionFaModel::constructMeshObjects()
58 void Foam::regionModels::regionFaModel::initialise()
62 Pout<<
"regionFaModel::initialise()" <<
endl;
65 vsmPtr_.reset(
new volSurfaceMapping(regionMeshPtr_()));
67 if (!outputPropertiesPtr_)
69 const fileName uniformPath(word(
"uniform")/regionFaModelName);
71 outputPropertiesPtr_.reset
77 regionName_ +
"OutputProperties",
79 uniformPath/regionName_,
90 bool Foam::regionModels::regionFaModel::init(
const dictionary&
dict)
94 if (
const dictionary* dictptr =
dict.findDict(modelName_ +
"Coeffs"))
99 infoOutput_.readIfPresent(
"infoOutput",
dict);
121 const word& regionType,
122 const word& modelName,
132 patch.boundaryMesh().mesh().time().constant(),
133 patch.boundaryMesh().mesh().time(),
138 primaryMesh_(
patch.boundaryMesh().mesh()),
140 time_(
patch.boundaryMesh().mesh().time()),
143 modelName_(modelName),
144 regionMeshPtr_(
nullptr),
145 coeffs_(
dict.subOrEmptyDict(modelName +
"Coeffs")),
146 outputPropertiesPtr_(
nullptr),
148 patchID_(
patch.index()),
149 regionName_(
dict.lookup(
"region"))
151 constructMeshObjects();
167 Info<<
"\nEvolving " << modelName_ <<
" for region "
168 << regionMesh().name() <<
endl;
int debug
Static debugging option.
static const word regionFaModelName
Default name regionFaModel.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
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.
virtual scalar CourantNumber() const
Courant number of the region.
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 mapping between surface and volume fields.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
messageStream Info
Information stream (stdout output on master, null elsewhere)
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.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
virtual void evolve()
Main driver routing to evolve the region - calls other evolves.
const fvMesh & primaryMesh_
Reference to the primary mesh database.