36 namespace regionModels
143 void Foam::regionModels::regionFaModel::constructMeshObjects
199 <<
"Failed to create finite-area mesh [" <<
areaName_ 201 <<
"A common cause is an incorrect or " 202 "missing 'area' entry in the setup" <<
nl 211 void Foam::regionModels::regionFaModel::initialise()
215 Pout<<
"regionFaModel::initialise()" <<
endl;
220 if (!outputPropertiesPtr_)
222 outputPropertiesPtr_.reset
226 createPropertiesIOobject
239 bool Foam::regionModels::regionFaModel::init(
const dictionary&
dict)
245 coeffs_ <<= *dictptr;
248 infoOutput_.readIfPresent(
"infoOutput",
dict);
270 const word& regionType,
271 const word& modelName,
290 modelName_(modelName),
293 coeffs_(
dict.subOrEmptyDict(modelName +
"Coeffs"))
322 constructMeshObjects(
dict);
338 Info<<
"\nEvolving " << modelName_
339 <<
" for region " << regionMesh().name();
343 Info<<
" [" << areaName_ <<
"]";
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
bool good() const noexcept
True if the Switch represents a valid enumeration.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const word & regionName() const
The mesh region name or word::null if polyMesh::defaultRegion.
const volSurfaceMapping & vsm() const
Return mapping between surface and volume fields.
constexpr char nl
The newline '\n' character (0x0a)
bool throwing() const noexcept
Return the current exception throwing state (on or off)
static Switch find(const char *s)
Find switchType for the given string, returning a Switch that can be tested for good() or bad()...
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()
const Time & time() const
Return the top-level database.
Volume to surface and surface to volume mapping.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Class to handle errors and exceptions in a simple, consistent stream-based manner.
autoPtr< faMesh > regionMeshPtr_
Pointer to the region mesh database.
word regionName_
Region name.
word ext() const
Return file name extension (part after last .)
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
static const objectRegistry & Registry(const polyMesh &pMesh)
Return the singleton parent registry (on the polyMesh) that contains all objects related to finite-ar...
word areaName_
The finite-area mesh name (default: region0)
const word modelName_
Model name.
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.
constexpr T & get(FixedList< T, N > &list) noexcept
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.
virtual void write(Ostream &os, const bool withTitle=true) const
Print error message.
dictionary coeffs_
Model coefficients dictionary.
Reading is optional [identical to LAZY_READ].
virtual scalar CourantNumber() const
Courant number of the region.
virtual void preEvolveRegion()
Pre-evolve region.
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
const word & constant() const noexcept
Return constant name.
int debug
Static debugging option.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
fileName relativeName(const bool caseTag=false) const
The dictionary name relative to the case.
const fvMesh & primaryMesh_
Reference to the primary mesh database.
virtual void write(Ostream &os, const bool withTitle=true) const
Print error message.
messageStream Warning
Warning stream (stdout output on master, null elsewhere), with additional 'FOAM Warning' header text...
decomposeUsingBbs false
Use bounding boxes (default) or unique decomposition of triangles (i.e. do not duplicate triangles) ...
Foam::word regionName(args.getOrDefault< word >("region", Foam::polyMesh::defaultRegion))
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.
Mesh consisting of general polyhedral cells.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
word suffixHint_
Suffix hint for automatic model variable names (default: "")
Defines the attributes of an object for which implicit objectRegistry management is supported...
Request registration (bool: true)
defineTypeNameAndDebug(KirchhoffShell, 0)
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
const dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary pointer if present (and it is a dictionary) otherwise return nullptr...
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...