50 zoneName_(
dict.lookupOrDefault(
"name",
name)),
52 moveUpdate_(
dict.lookupOrDefault(
"moveUpdate", false))
77 <<
"Constructing " << typeName
83 !dictionaryConstructorTablePtr_
84 || dictionaryConstructorTablePtr_->find(
type)
85 == dictionaryConstructorTablePtr_->end()
94 dictionaryConstructorTablePtr_
101 if (!dictionaryConstructorTablePtr_)
104 <<
"Unknown " << typeName <<
" type "
106 <<
"Table of " << typeName <<
" is empty"
111 dictionaryConstructorTable::iterator cstrIter =
112 dictionaryConstructorTablePtr_->find(
type);
114 if (cstrIter == dictionaryConstructorTablePtr_->end())
119 ) <<
"Unknown " << typeName <<
" type "
121 <<
"Valid " << typeName <<
" types are:" <<
nl
122 << dictionaryConstructorTablePtr_->sortedToc()
171 <<
"Constructing " << typeName <<
endl;
176 const word&
name = iter().keyword();
194 else if (!iter().stream().size())
213 zoneGenerators::lookup::typeName,
214 iter().startLineNumber()
224 <<
"Cannot find valid " << typeName
251 selectedIndices[ui++] = i;
255 return selectedIndices;
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual label endLineNumber() const
Return line number of last token in dictionary.
static std::tuple< const Entries &... > entries(const Entries &...)
Construct an entries tuple from which to make a dictionary.
bool open(const fileName &libName, const bool verbose=true)
Open the named library, optionally with warnings if problems occur.
Mesh consisting of general polyhedral cells.
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read,...
A class for handling words, derived from string.
Abstract base class for all zoneGenerators, providing runtime selection.
virtual ~zoneGenerator()
Destructor.
static labelList indices(const boolList &selected)
Return the list of selected indices.
virtual zoneSet movePoints() const
Regenerate the zoneSet following mesh point motion.
static autoPtr< zoneGenerator > New(const word &name, const polyMesh &mesh, const dictionary &dict)
Select constructed from name, mesh and dictionary.
zoneGenerator(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from name, polyMesh and dictionary.
A zoneGenerator which looks-up and returns a zoneSet containing point, and/or cell and/or faces zones...
Zone container returned by zoneGenerator::generate.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define InfoInFunction
Report an information message using Foam::Info.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dlLibraryTable libs
Table of loaded dynamic libraries.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
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 & endl(Ostream &os)
Add newline and flush stream.
defineTypeNameAndDebug(combustionModel, 0)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
zoneTypes
Enumeration defining the zone types.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
const NamedEnum< zoneTypes, 3 > zoneTypesNames
Named enumeration defining the zone type names.