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 mesh.time().constant(),
142 modelName_(modelName),
143 regionMeshPtr_(nullptr),
144 coeffs_(
dict.subOrEmptyDict(modelName +
"Coeffs")),
145 outputPropertiesPtr_(nullptr),
149 constructMeshObjects();
165 Info<<
"\nEvolving " << modelName_ <<
" for region " 166 << regionMesh().name() <<
endl;
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const volSurfaceMapping & vsm() const
Return mapping between surface and volume fields.
virtual void postEvolveRegion()
Post-evolve region.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, any/none. Also accepts 0/1 as a string and shortcuts t/f, y/n.
Ignore writing from objectRegistry::writeObject()
Volume to surface and surface to volume mapping.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
autoPtr< faMesh > regionMeshPtr_
Pointer to the region mesh database.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const NameMatchPredicate &selectedFields, DynamicList< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type and store on the objectRegistry.
A class for handling words, derived from Foam::string.
regionFaModel(const fvMesh &mesh, const word ®ionType, const word &modelName, const dictionary &dict, bool readFields=true)
Construct from mesh and name and dict.
Reading is optional [identical to LAZY_READ].
virtual scalar CourantNumber() const
Courant number of the region.
virtual void preEvolveRegion()
Pre-evolve region.
int debug
Static debugging option.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
const fvMesh & primaryMesh_
Reference to the primary mesh database.
static const word regionFaModelName
Default name regionFaModel.
Mesh data needed to do the Finite Volume discretisation.
virtual void evolveRegion()
Evolve the region.
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual void evolve()
Main driver routing to evolve the region - calls other evolves.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Defines the attributes of an object for which implicit objectRegistry management is supported...
defineTypeNameAndDebug(KirchhoffShell, 0)
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.