A collection of helper functions for reading/writing surface formats. More...
Public Member Functions | |
surfaceFormatsCore () | |
Construct null. More... | |
virtual | ~surfaceFormatsCore () |
Destructor. More... | |
Static Public Member Functions | |
static bool | checkSupport (const wordHashSet &available, const word &ext, const bool verbose, const word &functionName) |
static fileName | localMeshFileName (const word &surfName="") |
Return the local file name (within time directory) More... | |
static fileName | findMeshInstance (const Time &, const word &surfName="") |
Find instance with surfName. More... | |
static fileName | findMeshFile (const Time &, const word &surfName="") |
Find mesh file with surfName. More... | |
Static Public Attributes | |
static word | nativeExt |
The file extension corresponding to 'native' surface format. More... | |
Static Protected Member Functions | |
template<class Container > | |
static List< surfZone > | oneZone (const Container &container, const word &name="zone0") |
Return a list with a single entry,. More... | |
static string | getLineNoComment (IFstream &) |
Read non-comment line. More... | |
A collection of helper functions for reading/writing surface formats.
Definition at line 60 of file surfaceFormatsCore.H.
Construct null.
Definition at line 190 of file surfaceFormatsCore.C.
Referenced by surfaceFormatsCore::oneZone().
|
virtual |
Destructor.
Definition at line 196 of file surfaceFormatsCore.C.
Referenced by surfaceFormatsCore::oneZone().
|
inlinestaticprotected |
Return a list with a single entry,.
the size corresponds to that of the container
Definition at line 68 of file surfaceFormatsCore.H.
References surfaceFormatsCore::checkSupport(), surfaceFormatsCore::findMeshFile(), surfaceFormatsCore::findMeshInstance(), surfaceFormatsCore::getLineNoComment(), surfaceFormatsCore::localMeshFileName(), Foam::name(), surfaceFormatsCore::nativeExt, surfaceFormatsCore::surfaceFormatsCore(), and surfaceFormatsCore::~surfaceFormatsCore().
|
staticprotected |
Read non-comment line.
Definition at line 41 of file surfaceFormatsCore.C.
References surfaceFormatsCore::checkSupport(), TimePaths::constant(), surfaceRegistry::defaultName, surfaceFormatsCore::findMeshFile(), surfaceFormatsCore::findMeshInstance(), ISstream::getLine(), IOstream::good(), Foam::isFile(), surfaceFormatsCore::localMeshFileName(), surfMesh::meshSubDir, Foam::name(), surfaceFormatsCore::nativeExt, Time::path(), surfaceRegistry::prefix, List< T >::size(), TimeState::timeOutputValue(), and Time::times().
Referenced by surfaceFormatsCore::oneZone(), and TRIsurfaceFormatCore::~TRIsurfaceFormatCore().
|
static |
Definition at line 157 of file surfaceFormatsCore.C.
References Foam::endl(), forAll, HashTable< T, Key, Hash >::found(), Foam::Info, Foam::nl, and HashTable< T, Key, Hash >::toc().
Referenced by surfaceFormatsCore::getLineNoComment(), and surfaceFormatsCore::oneZone().
Return the local file name (within time directory)
NEEDS FIXING
Referenced by surfaceFormatsCore::getLineNoComment(), and surfaceFormatsCore::oneZone().
Find instance with surfName.
NEEDS FIXING
Referenced by surfaceFormatsCore::getLineNoComment(), and surfaceFormatsCore::oneZone().
Find mesh file with surfName.
NEEDS FIXING
Referenced by surfaceFormatsCore::getLineNoComment(), and surfaceFormatsCore::oneZone().
|
static |
The file extension corresponding to 'native' surface format.
Normally "ofs" (mnemonic: OF = OpenFOAM, S = Surface)
Definition at line 86 of file surfaceFormatsCore.H.
Referenced by surfaceFormatsCore::getLineNoComment(), and surfaceFormatsCore::oneZone().