Base class for surface writers. More...
Public Member Functions | |
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 () const |
True if the surface format supports geometry in a separate file. More... | |
virtual fileName | 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 fileName | 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 fileName | 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 fileName | 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 fileName | 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 fileName | 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... | |
Static Public Member Functions | |
static autoPtr< surfaceWriter > | New (const word &writeType) |
Return a reference to the selected surfaceWriter. More... | |
static autoPtr< surfaceWriter > | New (const word &writeType, const dictionary &writeOptions) |
Return a reference to the selected surfaceWriter. More... | |
surfaceWriter | ( | ) |
Construct null.
Definition at line 104 of file surfaceWriter.C.
|
virtual |
Destructor.
Definition at line 110 of file surfaceWriter.C.
TypeName | ( | "surfaceWriter" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
surfaceWriter | , | ||
word | , | ||
() | , | ||
() | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
surfaceWriter | , | ||
wordDict | , | ||
(const dictionary &optDict) | , | ||
(optDict) | |||
) |
|
static |
Return a reference to the selected surfaceWriter.
Definition at line 55 of file surfaceWriter.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and MeshedSurfaceProxy::writeTypes().
Referenced by faceSource::initialise(), main(), surfaceWriter::New(), sampledSurfaces::read(), and immersedBoundaryFvPatchField< Type >::write().
|
static |
Return a reference to the selected surfaceWriter.
Select with extra write option
Definition at line 86 of file surfaceWriter.C.
References surfaceWriter::New().
|
inlinevirtual |
True if the surface format supports geometry in a separate file.
False if geometry and field must be in a single file
Reimplemented in nastranSurfaceWriter, ensightSurfaceWriter, starcdSurfaceWriter, foamFileSurfaceWriter, and proxySurfaceWriter.
Definition at line 112 of file surfaceWriter.H.
|
inlinevirtual |
Write single surface geometry to file.
Reimplemented in nastranSurfaceWriter, ensightSurfaceWriter, boundaryDataSurfaceWriter, starcdSurfaceWriter, rawSurfaceWriter, foamFileSurfaceWriter, vtkSurfaceWriter, and proxySurfaceWriter.
Definition at line 119 of file surfaceWriter.H.
References fileName::null.
|
inlinevirtual |
Write scalarField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Reimplemented in nastranSurfaceWriter, ensightSurfaceWriter, boundaryDataSurfaceWriter, starcdSurfaceWriter, rawSurfaceWriter, foamFileSurfaceWriter, vtkSurfaceWriter, and dxSurfaceWriter.
Definition at line 133 of file surfaceWriter.H.
References fileName::null.
|
inlinevirtual |
Write vectorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Reimplemented in nastranSurfaceWriter, ensightSurfaceWriter, boundaryDataSurfaceWriter, starcdSurfaceWriter, rawSurfaceWriter, foamFileSurfaceWriter, vtkSurfaceWriter, and dxSurfaceWriter.
Definition at line 150 of file surfaceWriter.H.
References fileName::null.
|
inlinevirtual |
Write sphericalTensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Reimplemented in nastranSurfaceWriter, ensightSurfaceWriter, boundaryDataSurfaceWriter, starcdSurfaceWriter, rawSurfaceWriter, foamFileSurfaceWriter, vtkSurfaceWriter, and dxSurfaceWriter.
Definition at line 167 of file surfaceWriter.H.
References fileName::null.
|
inlinevirtual |
Write symmTensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Reimplemented in nastranSurfaceWriter, ensightSurfaceWriter, boundaryDataSurfaceWriter, rawSurfaceWriter, foamFileSurfaceWriter, vtkSurfaceWriter, and dxSurfaceWriter.
Definition at line 184 of file surfaceWriter.H.
References fileName::null.
|
inlinevirtual |
Write tensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Reimplemented in nastranSurfaceWriter, ensightSurfaceWriter, boundaryDataSurfaceWriter, rawSurfaceWriter, foamFileSurfaceWriter, vtkSurfaceWriter, and dxSurfaceWriter.
Definition at line 201 of file surfaceWriter.H.
References fileName::null.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.