39 Foam::topoSetSource::actionNames_
53 "Illegal topoSetSource name"
62 const word& topoSetSourceType,
64 const dictionary&
dict
67 wordConstructorTable::iterator cstrIter =
68 wordConstructorTablePtr_->find(topoSetSourceType);
70 if (cstrIter == wordConstructorTablePtr_->end())
73 <<
"Unknown topoSetSource type " << topoSetSourceType
75 <<
"Valid topoSetSource types : " <<
endl
76 << wordConstructorTablePtr_->sortedToc()
80 return autoPtr<topoSetSource>(cstrIter()(
mesh,
dict));
Initialise the NamedEnum HashTable from the static list of names.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for handling character strings derived from std::string.
void addOrDelete(topoSet &set, const label celli, const bool) const
Add (if bool) celli to set or delete celli from set.
virtual ~topoSetSource()
Destructor.
static autoPtr< topoSetSource > New(const word &topoSetSourceType, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected topoSetSource.
topoSetSource(const polyMesh &mesh)
Construct from components.
const polyMesh & mesh() const
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void add(GeometricField< typename typeOfSum< Type1, Type2 >::type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type1, GeoMesh, PrimitiveField2 > &gf1, const GeometricField< Type2, GeoMesh, PrimitiveField3 > &gf2)
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineRunTimeSelectionTable(fvConstraint, dictionary)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)