Provide a means of reading/writing the single-file OpenFOAM surface format. More...
#include <surfMesh/OFSsurfaceFormat.H>
Provide a means of reading/writing the single-file OpenFOAM surface format.
Definition at line 60 of file OFSsurfaceFormat.H.
Inheritance diagram for OFSsurfaceFormat< Face >:
Collaboration diagram for OFSsurfaceFormat< Face >:Public Member Functions | |
| OFSsurfaceFormat (const fileName &) | |
| Construct from file name.
| |
| virtual | ~OFSsurfaceFormat () |
| virtual bool | read (const fileName &) |
| Read from file.
| |
| virtual void | write (const fileName &name) const |
| Write object.
| |
Static Public Member Functions | |
| static autoPtr< MeshedSurface < Face > > | New (const fileName &name) |
| Read file and return surface.
| |
| static bool | read (Istream &, pointField &, List< Face > &, List< surfZone > &) |
| Read surface mesh components.
| |
| static bool | read (Istream &, MeshedSurface< Face > &) |
| Read MeshedSurface.
| |
| static bool | read (Istream &, UnsortedMeshedSurface< Face > &) |
| Read UnsortedMeshedSurface.
| |
| static void | write (const fileName &, const MeshedSurfaceProxy< Face > &) |
| Write surface mesh components by proxy.
| |
| OFSsurfaceFormat | ( | const fileName & | filename ) |
Construct from file name.
Definition at line 35 of file OFSsurfaceFormat.C.
| virtual ~OFSsurfaceFormat | ( | ) | [inline, virtual]
|
Definition at line 96 of file OFSsurfaceFormat.H.
| static autoPtr<MeshedSurface<Face> > New | ( | const fileName & | name ) | [inline, static]
|
Read file and return surface.
Reimplemented from MeshedSurface< Face >.
Definition at line 85 of file OFSsurfaceFormat.H.
References Foam::name().
| bool read | ( | Istream & | is, |
| pointField & | pointLst, | ||
| List< Face > & | faceLst, | ||
| List< surfZone > & | zoneLst | ||
| ) | [static]
|
Read surface mesh components.
Definition at line 97 of file OFSsurfaceFormat.C.
References Foam::exit(), Foam::FatalError, FatalErrorIn, IOstream::good(), MeshedSurface< Face >::transcribe(), and Foam::xferMove().
| bool read | ( | Istream & | is, |
| MeshedSurface< Face > & | surf | ||
| ) | [static]
|
Read MeshedSurface.
Definition at line 149 of file OFSsurfaceFormat.C.
References MeshedSurface< Face >::clear(), Foam::exit(), Foam::FatalError, FatalErrorIn, IOstream::good(), MeshedSurface< Face >::reset(), and Foam::xferMove().
| bool read | ( | Istream & | is, |
| UnsortedMeshedSurface< Face > & | surf | ||
| ) | [static]
|
Read UnsortedMeshedSurface.
The output is sorted by zones
Definition at line 186 of file OFSsurfaceFormat.C.
References UnsortedMeshedSurface< Face >::clear(), and UnsortedMeshedSurface< Face >::transfer().
| void write | ( | const fileName & | filename, |
| const MeshedSurfaceProxy< Face > & | surf | ||
| ) | [static]
|
Write surface mesh components by proxy.
Definition at line 202 of file OFSsurfaceFormat.C.
References IOstream::check(), Foam::exit(), MeshedSurfaceProxy< Face >::faceMap(), MeshedSurfaceProxy< Face >::faces(), Foam::FatalError, FatalErrorIn, forAll, IOstream::good(), Foam::nl, MeshedSurfaceProxy< Face >::points(), List< T >::size(), MeshedSurfaceProxy< Face >::surfZones(), and MeshedSurfaceProxy< Face >::useFaceMap().
Referenced by OFSsurfaceFormat< Face >::write().
| bool read | ( | const fileName & | filename ) | [virtual]
|
Read from file.
Reimplemented from MeshedSurface< Face >.
Definition at line 47 of file OFSsurfaceFormat.C.
References clear(), Foam::exit(), Foam::FatalError, FatalErrorIn, IOstream::good(), and Foam::xferMove().
| virtual void write | ( | const fileName & | name ) | const [inline, virtual]
|
Write object.
Reimplemented from MeshedSurface< Face >.
Definition at line 134 of file OFSsurfaceFormat.H.
References OFSsurfaceFormat< Face >::write().