A surface writer for the Nastran file format - both surface mesh and fields. More...
Public Types | |
enum | writeFormat { wfShort, wfLong, wfFree } |
Public Member Functions | |
TypeName ("nastran") | |
Runtime type information. More... | |
nastranSurfaceWriter () | |
Construct null. More... | |
nastranSurfaceWriter (const dictionary &options) | |
Construct with some output options. More... | |
virtual | ~nastranSurfaceWriter () |
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... | |
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... | |
Static Public Attributes | |
static const NamedEnum< writeFormat, 3 > | writeFormatNames_ |
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 surface writer for the Nastran file format - both surface mesh and fields.
formatOptions { nastran { From OpenFOAM field name to Nastran field name fields ((pMean PLOAD2)); Optional scale scale 2.0; Optional format format free; // short, long, free } };
Definition at line 64 of file nastranSurfaceWriter.H.
enum writeFormat |
Enumerator | |
---|---|
wfShort | |
wfLong | |
wfFree |
Definition at line 70 of file nastranSurfaceWriter.H.
Construct null.
Definition at line 319 of file nastranSurfaceWriter.C.
nastranSurfaceWriter | ( | const dictionary & | options | ) |
Construct with some output options.
Definition at line 328 of file nastranSurfaceWriter.C.
References forAll, dictionary::found(), dictionary::lookup(), NamedEnum< Enum, nEnum >::read(), and nastranSurfaceWriter::writeFormatNames_.
|
virtual |
Destructor.
Definition at line 351 of file nastranSurfaceWriter.C.
References nastranSurfaceWriter::write().
TypeName | ( | "nastran" | ) |
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 173 of file nastranSurfaceWriter.H.
|
virtual |
Write single surface geometry to file.
Implements surfaceWriter.
Definition at line 358 of file nastranSurfaceWriter.C.
References Foam::endl(), Foam::Info, Foam::isDir(), Foam::mkDir(), OFstream::name(), Foam::nl, and List< T >::size().
Referenced by nastranSurfaceWriter::~nastranSurfaceWriter().
|
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.
|
virtual |
Write symmTensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
|
virtual |
Write tensorField for a single surface to file.
One value per face or vertex (isNodeValues = true)
Implements surfaceWriter.
|
static |
Definition at line 77 of file nastranSurfaceWriter.H.
Referenced by NamedEnum< directionType, 3 >::names(), and nastranSurfaceWriter::nastranSurfaceWriter().