Loading...
Searching...
No Matches
surfaceWriter.H File Reference
Include dependency graph for surfaceWriter.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  surfaceWriter
 Base class for surface writers. More...

Namespaces

namespace  Foam::surfaceWriters
 Namespace for surface writers.
namespace  Foam
 Namespace for OpenFOAM.

Macros

#define declareSurfaceFieldMethods(Type)
#define declareSurfaceWriterWriteMethod(Type)
#define declareSurfaceWriterWriteMethod(Type)

Functions

Ostreamoperator<< (Ostream &os, const InfoProxy< surfaceWriter > &ip)

Detailed Description

Original source file surfaceWriter.H

Definition in file surfaceWriter.H.

Macro Definition Documentation

◆ declareSurfaceFieldMethods

#define declareSurfaceFieldMethods ( Type)
Value:
\
tmp<Field<Type>> mergeField(const Field<Type>& fld) const; \
\
tmp<Field<Type>> adjustField \
( \
const word& fieldName, \
const tmp<Field<Type>>& tfield \
) const;
Info<< nl;Info<< "Write faMesh in vtk format:"<< nl;{ vtk::uindirectPatchWriter writer(aMesh.patch(), fileName(aMesh.time().globalPath()/vtkBaseFileName));writer.writeGeometry();globalIndex procAddr(aMesh.nFaces());labelList cellIDs;if(UPstream::master()) { cellIDs.resize(procAddr.totalSize());for(const labelRange &range :procAddr.ranges()) { auto slice=cellIDs.slice(range);slice=identity(range);} } writer.beginCellData(4);writer.writeProcIDs();writer.write("cellID", cellIDs);writer.write("area", aMesh.S().field());writer.write("normal", aMesh.faceAreaNormals());writer.beginPointData(1);writer.write("normal", aMesh.pointAreaNormals());Info<< " "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edges")));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))

Definition at line 336 of file surfaceWriter.H.

◆ declareSurfaceWriterWriteMethod [1/2]

#define declareSurfaceWriterWriteMethod ( Type)
Value:
\
virtual fileName write \
( \
const word& fieldName, \
const Field<Type>& values \
) = 0
writer write("magLe", fld)

Definition at line 819 of file surfaceWriter.H.

◆ declareSurfaceWriterWriteMethod [2/2]

#define declareSurfaceWriterWriteMethod ( Type)
Value:
\ \
virtual fileName write \
( \
const word& fieldName, \
const Field<Type>& values \
)

Definition at line 819 of file surfaceWriter.H.