FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

OFSsurfaceFormat< Face > Class Template Reference

Provide a means of reading/writing the single-file OpenFOAM surface format. More...

#include <surfMesh/OFSsurfaceFormat.H>


Detailed Description

template<class Face>
class Foam::fileFormats::OFSsurfaceFormat< Face >

Provide a means of reading/writing the single-file OpenFOAM surface format.

Note:
This class provides more methods than the regular surface format interface.x
Source files

Definition at line 60 of file OFSsurfaceFormat.H.

Inheritance diagram for OFSsurfaceFormat< Face >:
Collaboration diagram for OFSsurfaceFormat< Face >:

List of all members.

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.

Constructor & Destructor Documentation

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.


Member Function Documentation

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,
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().

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().


The documentation for this class was generated from the following files: