OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

OFSsurfaceFormat< Face > Class Template Reference

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

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.

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 55 of file OFSsurfaceFormat.H.


Constructor & Destructor Documentation

OFSsurfaceFormat ( const fileName &  filename  )  [inline]

Construct from file name.

Definition at line 27 of file OFSsurfaceFormat.C.

virtual ~OFSsurfaceFormat (  )  [inline, virtual]

Definition at line 91 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 80 of file OFSsurfaceFormat.H.

bool read ( Istream &  is,
pointField &  pointLst,
List< Face > &  faceLst,
List< surfZone > &  zoneLst 
) [inline, static]

Read surface mesh components.

Definition at line 89 of file OFSsurfaceFormat.C.

Referenced by OFSsurfaceFormat< Face >::read().

Here is the caller graph for this function:

bool read ( Istream &  is,
MeshedSurface< Face > &  surf 
) [inline, static]

Read MeshedSurface.

Definition at line 141 of file OFSsurfaceFormat.C.

bool read ( Istream &  is,
UnsortedMeshedSurface< Face > &  surf 
) [inline, static]

Read UnsortedMeshedSurface.

The output is sorted by zones

Definition at line 178 of file OFSsurfaceFormat.C.

void write ( const fileName &  filename,
const MeshedSurfaceProxy< Face > &  surf 
) [inline, static]

Write surface mesh components by proxy.

Definition at line 194 of file OFSsurfaceFormat.C.

bool read ( const fileName &  filename  )  [inline, virtual]

Read from file.

Reimplemented from MeshedSurface< Face >.

Definition at line 39 of file OFSsurfaceFormat.C.

References OFSsurfaceFormat< Face >::read().

Here is the call graph for this function:

virtual void write ( const fileName &  name  )  const [inline, virtual]

Write object.

Reimplemented from MeshedSurface< Face >.

Definition at line 131 of file OFSsurfaceFormat.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd