A surfaceWriter for STARCD files. More...
Public Member Functions | |
TypeName ("starcd") | |
Runtime type information. More... | |
starcdSurfaceWriter () | |
Construct null. More... | |
virtual | ~starcdSurfaceWriter () |
Destructor. More... | |
virtual bool | separateGeometry () |
True if the surface format supports geometry in a separate file. 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 | writeData (Ostream &os, const scalar &v) |
template<> | |
void | writeData (Ostream &os, const vector &v) |
template<> | |
void | writeData (Ostream &os, const sphericalTensor &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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from surfaceWriter | |
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... | |
A surfaceWriter for STARCD files.
The geometry is written via the MeshedSurfaceProxy, the fields are written in a trivial ASCII format with ID and VALUE as so-called user data. These .usr files can be read into proSTAR with these types of commands. For element data:
getuser FILENAME.usr cell scalar free getuser FILENAME.usr cell vector free
and for vertex data:
getuser FILENAME.usr vertex scalar free getuser FILENAME.usr vertex vector free
Definition at line 67 of file starcdSurfaceWriter.H.
Construct null.
Definition at line 123 of file starcdSurfaceWriter.C.
|
virtual |
Destructor.
Definition at line 131 of file starcdSurfaceWriter.C.
References starcdSurfaceWriter::write().
TypeName | ( | "starcd" | ) |
Runtime type information.
|
inlinevirtual |
True if the surface format supports geometry in a separate file.
False if geometry and field must be in a single file
Reimplemented from surfaceWriter.
Definition at line 112 of file starcdSurfaceWriter.H.
|
virtual |
Write single surface geometry to file.
Implements surfaceWriter.
Definition at line 138 of file starcdSurfaceWriter.C.
References defineSurfaceWriterWriteField(), Foam::endl(), Foam::Info, Foam::isDir(), Foam::mkDir(), and points.
Referenced by starcdSurfaceWriter::write(), and starcdSurfaceWriter::~starcdSurfaceWriter().
|
virtual |
Write scalarField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
|
virtual |
Write vectorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
|
virtual |
Write sphericalTensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
|
inlinevirtual |
Write symmTensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
Definition at line 172 of file starcdSurfaceWriter.H.
References starcdSurfaceWriter::write().
|
inlinevirtual |
Write tensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
Definition at line 187 of file starcdSurfaceWriter.H.
|
inline |
Definition at line 44 of file starcdSurfaceWriter.C.
References Foam::nl.
Definition at line 55 of file starcdSurfaceWriter.C.
References Foam::nl.
|
inline |
Definition at line 66 of file starcdSurfaceWriter.C.
References Foam::endl(), forAll, Foam::Info, Foam::isDir(), Foam::mkDir(), OFstream::name(), Foam::nl, points, and writeData().