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

surfaceWriter< Type > Class Template Reference

Inheritance diagram for surfaceWriter< Type >:

List of all members.


Public Member Functions

 TypeName ("surfaceWriter")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, surfaceWriter, word,(),())
 surfaceWriter ()
 Construct null.
virtual ~surfaceWriter ()
virtual bool separateFiles ()
 Return true if the surface format supports separate files.
virtual void write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const bool verbose=false) const
 Writes single surface geometry to file.
virtual void write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const fileName &fieldName, const Field< Type > &values, const bool verbose=false) const =0
 Writes single surface to file. Either one value per vertex or.

Static Public Member Functions

static autoPtr< surfaceWriter > New (const word &writeFormat)
 Return a reference to the selected surfaceWriter.

Friends

class surfaceWriter
 friendship between writer data types

Detailed Description

template<class Type>
class Foam::surfaceWriter< Type >

Source files

Definition at line 57 of file surfaceWriter.H.


Constructor & Destructor Documentation

surfaceWriter (  ) 

Construct null.

~surfaceWriter (  )  [inline, virtual]

Definition at line 92 of file surfaceWriter.C.


Member Function Documentation

TypeName ( "surfaceWriter< Type >"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
surfaceWriter< Type >  ,
word  ,
()  ,
()   
)

Foam::autoPtr< Foam::surfaceWriter< Type > > New ( const word &  writeFormat  )  [inline, static]

Return a reference to the selected surfaceWriter.

Definition at line 31 of file surfaceWriter.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, and Foam::nl.

Here is the call graph for this function:

virtual bool separateFiles (  )  [inline, virtual]

Return true if the surface format supports separate files.

Reimplemented in foamFileSurfaceWriter< Type >, and proxySurfaceWriter< Type >.

Definition at line 99 of file surfaceWriter.H.

virtual void write ( const fileName &  outputDir,
const fileName &  surfaceName,
const pointField &  points,
const faceList &  faces,
const bool  verbose = false 
) const [inline, virtual]

Writes single surface geometry to file.

Reimplemented in foamFileSurfaceWriter< Type >, proxySurfaceWriter< Type >, rawSurfaceWriter< Type >, and vtkSurfaceWriter< Type >.

Definition at line 107 of file surfaceWriter.H.

virtual void write ( const fileName &  outputDir,
const fileName &  surfaceName,
const pointField &  points,
const faceList &  faces,
const fileName &  fieldName,
const Field< Type > &  values,
const bool  verbose = false 
) const [pure virtual]

Writes single surface to file. Either one value per vertex or.

one value per face (detected by values.size()==faces.size())

Implemented in dxSurfaceWriter< Type >, foamFileSurfaceWriter< Type >, nullSurfaceWriter< Type >, proxySurfaceWriter< Type >, rawSurfaceWriter< Type >, and vtkSurfaceWriter< Type >.


Friends And Related Function Documentation

surfaceWriter [friend]

friendship between writer data types

Definition at line 60 of file surfaceWriter.H.


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