FreeFOAM The Cross-Platform CFD Toolkit
MeshedSurfaceProxy< Face > Class Template Reference

A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats. More...

#include <surfMesh/MeshedSurfaceProxy.H>


Detailed Description

template<class Face>
class Foam::MeshedSurfaceProxy< Face >

A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.

Source files

Definition at line 64 of file MeshedSurfaceProxy.H.

+ Inheritance diagram for MeshedSurfaceProxy< Face >:
+ Collaboration diagram for MeshedSurfaceProxy< Face >:

List of all members.

Public Member Functions

 ClassName ("MeshedSurfaceProxy")
 Runtime type information.
 MeshedSurfaceProxy (const pointField &, const List< Face > &, const List< surfZone > &=List< surfZone >(), const List< label > &faceMap=List< label >())
 Construct from component references.
virtual ~MeshedSurfaceProxy ()
 declareMemberFunctionSelectionTable (void, MeshedSurfaceProxy, write, fileExtension,(const fileName &name, const MeshedSurfaceProxy< Face > &surf),(name, surf))
const pointFieldpoints () const
 Return const access to the points.
const List< Face > & faces () const
 Return const access to the faces.
const List< surfZone > & surfZones () const
 Const access to the surface zones.
const List< label > & faceMap () const
 Const access to the faceMap, zero-sized when unused.
bool useFaceMap () const
 Use faceMap?
virtual void write (const fileName &name) const
 Generic write routine. Chooses writer based on extension.
virtual void write (const Time &, const word &surfName="") const
 Write to database.
- Public Member Functions inherited from surfaceFormatsCore
 surfaceFormatsCore ()
 Construct null.
virtual ~surfaceFormatsCore ()

Static Public Member Functions

static wordHashSet writeTypes ()
 The file format types that can be written via MeshedSurfaceProxy.
static bool canWriteType (const word &ext, const bool verbose=false)
 Can this file format type be written via MeshedSurfaceProxy?
static void write (const fileName &, const MeshedSurfaceProxy< Face > &)
 Write to file.
- Static Public Member Functions inherited from surfaceFormatsCore
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)
static fileName findMeshInstance (const Time &, const word &surfName="")
 Find instance with surfName.
static fileName findMeshFile (const Time &, const word &surfName="")
 Find mesh file with surfName.

Additional Inherited Members

- Static Public Attributes inherited from surfaceFormatsCore
static word nativeExt
 The file extension corresponding to 'native' surface format.
- Static Protected Member Functions inherited from surfaceFormatsCore
template<class Container >
static List< surfZoneoneZone (const Container &container, const word &name="zone0")
 Return a list with a single entry,.
static string getLineNoComment (IFstream &)
 Read non-comment line.

Constructor & Destructor Documentation

MeshedSurfaceProxy ( const pointField pointLst,
const List< Face > &  faceLst,
const List< surfZone > &  zoneLst = List<surfZone>(),
const List< label > &  faceMap = List<label>() 
)

Construct from component references.

Definition at line 222 of file MeshedSurfaceProxy.C.

~MeshedSurfaceProxy ( )
virtual

Definition at line 239 of file MeshedSurfaceProxy.C.


Member Function Documentation

ClassName ( "MeshedSurfaceProxy< Face >"  )

Runtime type information.

Foam::wordHashSet writeTypes ( )
static

The file format types that can be written via MeshedSurfaceProxy.

Definition at line 36 of file MeshedSurfaceProxy.C.

bool canWriteType ( const word ext,
const bool  verbose = false 
)
static

Can this file format type be written via MeshedSurfaceProxy?

Definition at line 44 of file MeshedSurfaceProxy.C.

declareMemberFunctionSelectionTable ( void  ,
MeshedSurfaceProxy< Face >  ,
write  ,
fileExtension  ,
(const fileName &name, const MeshedSurfaceProxy< Face > &surf)  ,
(name, surf)   
)
static void write ( const fileName ,
const MeshedSurfaceProxy< Face > &   
)
static
virtual void write ( const fileName name) const
inlinevirtual

Generic write routine. Chooses writer based on extension.

Definition at line 168 of file MeshedSurfaceProxy.H.

References MeshedSurfaceProxy< Face >::write().

void write ( const Time t,
const word surfName = "" 
) const
virtual

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