46 const word& searchableSurfaceType,
51 dictionaryConstructorTable::iterator cstrIter =
52 dictionaryConstructorTablePtr_->find(searchableSurfaceType);
54 if (cstrIter == dictionaryConstructorTablePtr_->end())
57 <<
"Unknown searchableSurface type " << searchableSurfaceType
59 <<
"Valid searchableSurface types : " <<
endl
60 << dictionaryConstructorTablePtr_->sortedToc()
130 findNearest(sample, nearestDistSqr, info);
131 getNormal(info, normal);
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
static word geometryDir_
Name of the directory for the geometry files.
virtual void findNearest(const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const =0
searchableSurface(const IOobject &io)
virtual ~searchableSurface()
Destructor.
static const word & geometryDir()
Return the geometry directory name.
static autoPtr< searchableSurface > New(const word &surfaceType, const IOobject &io, const dictionary &dict)
Return a reference to the selected searchableSurface.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
const fvMesh & region(const dictionary &dict)
Cast the give dictionary to the corresponding region fvMesh.
defineRunTimeSelectionTable(fvConstraint, dictionary)
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)