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

TRIsurfaceFormat< Face > Class Template Reference

Provide a means of reading/writing .tri format. More...

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

List of all members.


Public Member Functions

 TRIsurfaceFormat (const fileName &)
 Construct from file name.
virtual ~TRIsurfaceFormat ()
 Destructor.
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 void write (const fileName &, const MeshedSurfaceProxy< Face > &)
 Write surface mesh components by proxy.
static void write (const fileName &, const UnsortedMeshedSurface< Face > &)
 Write UnsortedMeshedSurface,.

Detailed Description

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

Provide a means of reading/writing .tri format.

Note:
For efficiency, the zones are sorted before creating the faces. The class is thus derived from MeshedSurface.
Source files

Definition at line 54 of file TRIsurfaceFormat.H.


Constructor & Destructor Documentation

TRIsurfaceFormat ( const fileName &  filename  )  [inline]

Construct from file name.

Definition at line 55 of file TRIsurfaceFormat.C.

virtual ~TRIsurfaceFormat (  )  [inline, virtual]

Destructor.

Definition at line 96 of file TRIsurfaceFormat.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 86 of file TRIsurfaceFormat.H.

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

Write surface mesh components by proxy.

Definition at line 122 of file TRIsurfaceFormat.C.

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

Write UnsortedMeshedSurface,.

by default the output is not sorted by zones

Definition at line 179 of file TRIsurfaceFormat.C.

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

Read from file.

Reimplemented from MeshedSurface< Face >.

Definition at line 67 of file TRIsurfaceFormat.C.

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

Write object.

Reimplemented from MeshedSurface< Face >.

Definition at line 115 of file TRIsurfaceFormat.H.


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