rawSurfaceWriter Class Reference

A surfaceWriter for raw output. More...

Inheritance diagram for rawSurfaceWriter:
Collaboration diagram for rawSurfaceWriter:

Public Member Functions

 TypeName ("raw")
 Runtime type information. More...
 
 rawSurfaceWriter ()
 Construct null. More...
 
virtual ~rawSurfaceWriter ()
 Destructor. More...
 
virtual void write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const bool verbose=false) const
 Write single surface geometry to file. More...
 
virtual void write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< scalar > &values, const bool isNodeValues, const bool verbose=false) const
 Write scalarField for a single surface to file. More...
 
virtual void write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< vector > &values, const bool isNodeValues, const bool verbose=false) const
 Write vectorField for a single surface to file. More...
 
virtual void write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< sphericalTensor > &values, const bool isNodeValues, const bool verbose=false) const
 Write sphericalTensorField for a single surface to file. More...
 
virtual void write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< symmTensor > &values, const bool isNodeValues, const bool verbose=false) const
 Write symmTensorField for a single surface to file. More...
 
virtual void write (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< tensor > &values, const bool isNodeValues, const bool verbose=false) const
 Write tensorField for a single surface to file. More...
 
template<>
void writeHeader (Ostream &os, const word &fieldName, const Field< scalar > &values)
 
template<>
void writeHeader (Ostream &os, const word &fieldName, const Field< vector > &values)
 
template<>
void writeHeader (Ostream &os, const word &fieldName, const Field< sphericalTensor > &values)
 
template<>
void writeHeader (Ostream &os, const word &fieldName, const Field< symmTensor > &values)
 
template<>
void writeHeader (Ostream &os, const word &fieldName, const Field< tensor > &values)
 
template<>
void writeData (Ostream &os, const scalar &v)
 
template<>
void writeData (Ostream &os, const vector &v)
 
template<>
void writeData (Ostream &os, const sphericalTensor &v)
 
template<>
void writeData (Ostream &os, const symmTensor &v)
 
template<>
void writeData (Ostream &os, const tensor &v)
 
- Public Member Functions inherited from surfaceWriter
 TypeName ("surfaceWriter")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, surfaceWriter, word,(),())
 
 declareRunTimeSelectionTable (autoPtr, surfaceWriter, wordDict,(const dictionary &optDict),(optDict))
 
 surfaceWriter ()
 Construct null. More...
 
virtual ~surfaceWriter ()
 Destructor. More...
 
virtual bool separateGeometry ()
 True if the surface format supports geometry in a separate file. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from surfaceWriter
static autoPtr< surfaceWriterNew (const word &writeType)
 Return a reference to the selected surfaceWriter. More...
 
static autoPtr< surfaceWriterNew (const word &writeType, const dictionary &writeOptions)
 Return a reference to the selected surfaceWriter. More...
 

Detailed Description

A surfaceWriter for raw output.

Source files

Definition at line 50 of file rawSurfaceWriter.H.

Constructor & Destructor Documentation

Construct null.

Definition at line 273 of file rawSurfaceWriter.C.

References rawSurfaceWriter::rawSurfaceWriter().

Referenced by rawSurfaceWriter::rawSurfaceWriter().

Here is the call graph for this function:

Here is the caller graph for this function:

~rawSurfaceWriter ( )
virtual

Destructor.

Definition at line 281 of file rawSurfaceWriter.C.

References rawSurfaceWriter::~rawSurfaceWriter().

Referenced by rawSurfaceWriter::~rawSurfaceWriter().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

TypeName ( "raw"  )

Runtime type information.

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

Write single surface geometry to file.

Reimplemented from surfaceWriter.

Definition at line 288 of file rawSurfaceWriter.C.

References Foam::endl(), forAll, Foam::Info, Foam::isDir(), Foam::mkDir(), OFstream::name(), and Foam::nl.

Here is the call graph for this function:

virtual void write ( const fileName outputDir,
const fileName surfaceName,
const pointField points,
const faceList faces,
const word fieldName,
const Field< scalar > &  values,
const bool  isNodeValues,
const bool  verbose = false 
) const
virtual

Write scalarField for a single surface to file.

One value per face or vertex (isNodeValues = true)

Reimplemented from surfaceWriter.

virtual void write ( const fileName outputDir,
const fileName surfaceName,
const pointField points,
const faceList faces,
const word fieldName,
const Field< vector > &  values,
const bool  isNodeValues,
const bool  verbose = false 
) const
virtual

Write vectorField for a single surface to file.

One value per face or vertex (isNodeValues = true)

Reimplemented from surfaceWriter.

virtual void write ( const fileName outputDir,
const fileName surfaceName,
const pointField points,
const faceList faces,
const word fieldName,
const Field< sphericalTensor > &  values,
const bool  isNodeValues,
const bool  verbose = false 
) const
virtual

Write sphericalTensorField for a single surface to file.

One value per face or vertex (isNodeValues = true)

Reimplemented from surfaceWriter.

virtual void write ( const fileName outputDir,
const fileName surfaceName,
const pointField points,
const faceList faces,
const word fieldName,
const Field< symmTensor > &  values,
const bool  isNodeValues,
const bool  verbose = false 
) const
virtual

Write symmTensorField for a single surface to file.

One value per face or vertex (isNodeValues = true)

Reimplemented from surfaceWriter.

virtual void write ( const fileName outputDir,
const fileName surfaceName,
const pointField points,
const faceList faces,
const word fieldName,
const Field< tensor > &  values,
const bool  isNodeValues,
const bool  verbose = false 
) const
virtual

Write tensorField for a single surface to file.

One value per face or vertex (isNodeValues = true)

Reimplemented from surfaceWriter.

void writeHeader ( Ostream os,
const word fieldName,
const Field< scalar > &  values 
)

Definition at line 73 of file rawSurfaceWriter.C.

References Foam::nl, and List< T >::size().

Here is the call graph for this function:

void writeHeader ( Ostream os,
const word fieldName,
const Field< vector > &  values 
)

Definition at line 86 of file rawSurfaceWriter.C.

References Foam::endl(), Foam::nl, and List< T >::size().

Here is the call graph for this function:

void writeHeader ( Ostream os,
const word fieldName,
const Field< sphericalTensor > &  values 
)

Definition at line 103 of file rawSurfaceWriter.C.

References Foam::nl, and List< T >::size().

Here is the call graph for this function:

void writeHeader ( Ostream os,
const word fieldName,
const Field< symmTensor > &  values 
)

Definition at line 117 of file rawSurfaceWriter.C.

References Foam::endl(), Foam::nl, and List< T >::size().

Here is the call graph for this function:

void writeHeader ( Ostream os,
const word fieldName,
const Field< tensor > &  values 
)

Definition at line 135 of file rawSurfaceWriter.C.

References Foam::nl, and List< T >::size().

Here is the call graph for this function:

void writeData ( Ostream os,
const scalar &  v 
)
inline

Definition at line 153 of file rawSurfaceWriter.C.

References Foam::nl.

void writeData ( Ostream os,
const vector v 
)
inline

Definition at line 164 of file rawSurfaceWriter.C.

References Foam::nl.

void writeData ( Ostream os,
const sphericalTensor v 
)
inline

Definition at line 175 of file rawSurfaceWriter.C.

References Foam::nl.

void writeData ( Ostream os,
const symmTensor v 
)
inline

Definition at line 186 of file rawSurfaceWriter.C.

References Foam::nl.

void writeData ( Ostream os,
const tensor v 
)
inline

Definition at line 198 of file rawSurfaceWriter.C.

References Foam::nl.


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