A surfaceWriter for outputting to a form useable for the timeVaryingMapped boundary condition. This reads the data from constant/boundaryData/<patch> directory. More...
Public Member Functions | |
TypeName ("boundaryData") | |
Runtime type information. More... | |
boundaryDataSurfaceWriter () | |
Construct null. More... | |
virtual | ~boundaryDataSurfaceWriter () |
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<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... | |
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... | |
A surfaceWriter for outputting to a form useable for the timeVaryingMapped boundary condition. This reads the data from constant/boundaryData/<patch> directory.
surfaces { type surfaces; surfaceFormat boundaryData; fields ( p ); surfaces ( outlet { type patch; patches (outlet); interpolate false; } ); }
Note:
Definition at line 88 of file boundaryDataSurfaceWriter.H.
Construct null.
Definition at line 38 of file boundaryDataSurfaceWriter.C.
|
virtual |
Destructor.
Definition at line 46 of file boundaryDataSurfaceWriter.C.
|
private |
Templated write operation.
TypeName | ( | "boundaryData" | ) |
Runtime type information.
|
virtual |
Write single surface geometry to file.
Reimplemented from surfaceWriter.
Definition at line 53 of file boundaryDataSurfaceWriter.C.
References caseDir, Foam::endl(), Foam::getEnv(), Foam::Info, Foam::mkDir(), fileName::name(), IOobject::NO_READ, IOobject::NO_WRITE, IOobject::objectPath(), fileName::path(), IOobject::path(), points, timeName, IOField< Type >::writeData(), IOobject::writeEndDivider(), and IOobject::writeHeader().
|
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.
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 38 of file boundaryDataSurfaceWriterTemplates.C.
References caseDir, Foam::endl(), PrimitivePatch< Face, FaceList, PointField, PointType >::faceCentres(), Foam::getEnv(), Foam::Info, Foam::mkDir(), fileName::name(), IOobject::objectPath(), fileName::path(), IOobject::path(), points, List::size(), timeName, IOField< Type >::writeData(), AverageIOField< Type >::writeData(), IOobject::writeEndDivider(), and IOobject::writeHeader().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.