A surfaceWriter for raw output. More...
Public Member Functions | |
TypeName ("raw") | |
Runtime type information. More... | |
rawSurfaceWriter () | |
Construct null. More... | |
virtual | ~rawSurfaceWriter () |
Destructor. 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... | |
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) |
template<class Type > | |
Foam::fileName | writeTemplate (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< Type > &values, const bool isNodeValues, const bool verbose) const |
![]() | |
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... | |
Private Member Functions | |
template<class Type > | |
fileName | writeTemplate (const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< Type > &values, const bool isNodeValues, const bool verbose) const |
Templated write operation. More... | |
Static Private Member Functions | |
static void | writeLocation (Ostream &, const pointField &, const label pointI) |
static void | writeLocation (Ostream &, const pointField &, const faceList &, const label faceI) |
template<class Type > | |
static void | writeHeader (Ostream &, const word &fieldName, const Field< Type > &) |
template<class Type > | |
static void | writeData (Ostream &, const Type &) |
Additional Inherited Members | |
![]() | |
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... | |
rawSurfaceWriter | ( | ) |
Construct null.
Definition at line 208 of file rawSurfaceWriter.C.
|
virtual |
Destructor.
Definition at line 216 of file rawSurfaceWriter.C.
|
inlinestaticprivate |
Definition at line 40 of file rawSurfaceWriter.C.
References points, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
inlinestaticprivate |
Definition at line 52 of file rawSurfaceWriter.C.
References points, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
inlinestaticprivate |
|
private |
Templated write operation.
TypeName | ( | "raw" | ) |
Runtime type information.
|
virtual |
Write single surface geometry to file.
Reimplemented from surfaceWriter.
Definition at line 223 of file rawSurfaceWriter.C.
References Foam::endl(), forAll, Foam::Info, Foam::isDir(), Foam::mkDir(), OFstream::name(), Foam::nl, points, and List::size().
|
virtual |
Write scalarField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Reimplemented from surfaceWriter.
|
virtual |
Write vectorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Reimplemented from surfaceWriter.
|
virtual |
Write sphericalTensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Reimplemented from surfaceWriter.
|
virtual |
Write symmTensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Reimplemented from surfaceWriter.
|
virtual |
Write tensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Reimplemented from surfaceWriter.
Definition at line 68 of file rawSurfaceWriter.C.
References Foam::nl.
Definition at line 81 of file rawSurfaceWriter.C.
References Foam::endl(), and Foam::nl.
void writeHeader | ( | Ostream & | os, |
const word & | fieldName, | ||
const Field< sphericalTensor > & | values | ||
) |
Definition at line 98 of file rawSurfaceWriter.C.
References Foam::nl.
void writeHeader | ( | Ostream & | os, |
const word & | fieldName, | ||
const Field< symmTensor > & | values | ||
) |
Definition at line 112 of file rawSurfaceWriter.C.
References Foam::endl(), and Foam::nl.
Definition at line 130 of file rawSurfaceWriter.C.
References Foam::nl.
|
inline |
Definition at line 148 of file rawSurfaceWriter.C.
References Foam::nl.
Definition at line 159 of file rawSurfaceWriter.C.
References Foam::nl.
|
inline |
Definition at line 170 of file rawSurfaceWriter.C.
References Foam::nl.
|
inline |
Definition at line 181 of file rawSurfaceWriter.C.
References Foam::nl.
Definition at line 193 of file rawSurfaceWriter.C.
References Foam::nl.
Foam::fileName writeTemplate | ( | const fileName & | outputDir, |
const fileName & | surfaceName, | ||
const pointField & | points, | ||
const faceList & | faces, | ||
const word & | fieldName, | ||
const Field< Type > & | values, | ||
const bool | isNodeValues, | ||
const bool | verbose | ||
) | const |
Definition at line 34 of file rawSurfaceWriterTemplates.C.
References Foam::endl(), forAll, Foam::Info, Foam::isDir(), Foam::mkDir(), OFstream::name(), points, and writeData().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.