STYLE: surface/volume writing function objects

- further hide implementation (cxx ending)

STYLE: better distinction between code/templates for fileFormats/conversion

- for ensight and vtk, a large part of the code is header only.
  Make this easier to identify
This commit is contained in:
Mark Olesen
2025-08-13 17:59:20 +02:00
parent 4b92bb6533
commit 9223d238bd
69 changed files with 127 additions and 156 deletions

View File

@ -16,6 +16,6 @@ starcd/STARCDMeshWriter.C
polyDualMesh/polyDualMesh.C polyDualMesh/polyDualMesh.C
vtk/output/foamVtkSurfaceFieldWriter.C vtk/output/foamVtkSurfaceFieldWriter.cxx
LIB = $(FOAM_LIBBIN)/libconversion LIB = $(FOAM_LIBBIN)/libconversion

View File

@ -98,7 +98,7 @@ bool writeAreaField
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "ensightOutputAreaFieldTemplates.C" #include "ensightOutputAreaField.txx"
#endif #endif
#endif #endif

View File

@ -177,7 +177,7 @@ bool writePointField
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "ensightOutputVolFieldTemplates.C" #include "ensightOutputVolField.txx"
#endif #endif
#endif #endif

View File

@ -39,7 +39,7 @@ Note
SourceFiles SourceFiles
foamVtkToolsI.H foamVtkToolsI.H
foamVtkToolsTemplates.C foamVtkTools.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -358,7 +358,7 @@ void Foam::vtk::Tools::remapTuple<Foam::symmTensor>(double data[])
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkToolsTemplates.C" #include "foamVtkTools.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -39,7 +39,7 @@ Note
SourceFiles SourceFiles
foamVtkVtuAdaptorI.H foamVtkVtuAdaptorI.H
foamVtkVtuAdaptorTemplates.C foamVtkVtuAdaptor.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -156,7 +156,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkVtuAdaptorTemplates.C" #include "foamVtkVtuAdaptor.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -32,7 +32,7 @@ Description
Caution, currently only works properly for indirect patches. Caution, currently only works properly for indirect patches.
SourceFiles SourceFiles
foamVtkGenericPatchGeoFieldsWriter.C foamVtkGenericPatchGeoFieldsWriter.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -117,7 +117,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkGenericPatchGeoFieldsWriter.C" #include "foamVtkGenericPatchGeoFieldsWriter.txx"
#endif #endif

View File

@ -44,7 +44,7 @@ See Also
Foam::vtk::internalMeshWriter Foam::vtk::internalMeshWriter
SourceFiles SourceFiles
foamVtkInternalWriterTemplates.C foamVtkInternalWriter.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -183,7 +183,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkInternalWriterTemplates.C" #include "foamVtkInternalWriter.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -43,7 +43,7 @@ See Also
Foam::vtk::patchMeshWriter Foam::vtk::patchMeshWriter
SourceFiles SourceFiles
foamVtkPatchWriterTemplates.C foamVtkPatchWriter.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -202,7 +202,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkPatchWriterTemplates.C" #include "foamVtkPatchWriter.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -47,7 +47,7 @@ Note
may be addressed using ghost points. may be addressed using ghost points.
SourceFiles SourceFiles
surfaceFieldWriter.C foamVtkSurfaceFieldWriter.cxx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -34,7 +34,7 @@ SourceFiles
ensightCase.C ensightCase.C
ensightCaseI.H ensightCaseI.H
ensightCaseOptions.C ensightCaseOptions.C
ensightCaseTemplates.C ensightCase.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -548,7 +548,7 @@ public:
#include "ensightCaseI.H" #include "ensightCaseI.H"
#ifdef NoRepository #ifdef NoRepository
#include "ensightCaseTemplates.C" #include "ensightCase.txx"
#endif #endif
#endif #endif

View File

@ -394,7 +394,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "ensightFileTemplates.C" #include "ensightFile.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,7 +31,7 @@ Description
SourceFiles SourceFiles
ensightOutput.C ensightOutput.C
ensightOutputTemplates.C ensightOutput.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -557,7 +557,7 @@ bool writeFaceLocalField
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "ensightOutputTemplates.C" #include "ensightOutput.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -38,7 +38,7 @@ Note
SourceFiles SourceFiles
ensightOutputSurface.C ensightOutputSurface.C
ensightOutputSurfaceTemplates.C ensightOutputSurface.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -136,7 +136,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "ensightOutputSurfaceTemplates.C" #include "ensightOutputSurface.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -42,8 +42,8 @@ Description
SourceFiles SourceFiles
foamVtkFileWriter.C foamVtkFileWriter.C
foamVtkFileWriter.txx
foamVtkFileWriterI.H foamVtkFileWriterI.H
foamVtkFileWriterTemplates.C
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -350,7 +350,7 @@ public:
#include "foamVtkFileWriterI.H" #include "foamVtkFileWriterI.H"
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkFileWriterTemplates.C" #include "foamVtkFileWriter.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -34,7 +34,8 @@ Description
SourceFiles SourceFiles
foamVtkFormatter.C foamVtkFormatter.C
foamVtkFormatterTemplates.C foamVtkFormatter.txx
foamVtkFormatterI.H
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -560,7 +561,7 @@ inline uint64_t sizeofData(label count)
#include "foamVtkFormatterI.H" #include "foamVtkFormatterI.H"
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkFormatterTemplates.C" #include "foamVtkFormatter.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -38,7 +38,8 @@ Description
SourceFiles SourceFiles
foamVtkOutput.C foamVtkOutput.C
foamVtkOutputTemplates.C foamVtkOutput.txx
foamVtkOutputI.H
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -352,7 +353,7 @@ namespace legacy
#include "foamVtkOutputI.H" #include "foamVtkOutputI.H"
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkOutputTemplates.C" #include "foamVtkOutput.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -358,7 +358,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "vtkUnstructuredReaderTemplates.C" #include "vtkUnstructuredReader.txx"
#endif #endif

View File

@ -42,7 +42,7 @@ Note
SourceFiles SourceFiles
foamVtkPolyWriter.C foamVtkPolyWriter.C
foamVtkPolyWriterTemplates.C foamVtkPolyWriter.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -253,7 +253,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkPolyWriterTemplates.C" #include "foamVtkPolyWriter.txx"
#endif #endif

View File

@ -4,7 +4,7 @@ cloudInfo/cloudInfo.C
icoUncoupledKinematicCloud/icoUncoupledKinematicCloud.C icoUncoupledKinematicCloud/icoUncoupledKinematicCloud.C
dsmcFields/dsmcFields.C dsmcFields/dsmcFields.C
vtkCloud/vtkCloud.C vtkCloud/vtkCloud.cxx
ensightCloud/ensightCloudWriteObject.cxx ensightCloud/ensightCloudWriteObject.cxx
LIB = $(FOAM_LIBBIN)/liblagrangianFunctionObjects LIB = $(FOAM_LIBBIN)/liblagrangianFunctionObjects

View File

@ -129,8 +129,8 @@ See also
Foam::functionObjects::timeControl Foam::functionObjects::timeControl
SourceFiles SourceFiles
vtkCloud.C vtkCloud.cxx
vtkCloudTemplates.C vtkCloudImpl.cxx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -262,12 +262,6 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#include "vtkCloudTemplates.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif #endif
// ************************************************************************* // // ************************************************************************* //

View File

@ -47,6 +47,12 @@ namespace functionObjects
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Implementation
#include "vtkCloudImpl.cxx"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void Foam::functionObjects::vtkCloud::writeVerts void Foam::functionObjects::vtkCloud::writeVerts

View File

@ -4,10 +4,10 @@ caseInfo/caseInfo.C
codedFunctionObject/codedFunctionObject.C codedFunctionObject/codedFunctionObject.C
areaWrite/areaWrite.C areaWrite/areaWrite.cxx
ensightWrite/ensightWrite.C ensightWrite/ensightWrite.cxx
ensightWrite/ensightWriteUpdate.C ensightWrite/ensightWriteUpdate.cxx
foamReport/foamReport.C foamReport/foamReport.C
foamReport/substitutionModels/substitutionModel/substitutionModel.C foamReport/substitutionModels/substitutionModel/substitutionModel.C
@ -20,8 +20,8 @@ foamReport/substitutionModels/userValue/userValue.C
graphFunctionObject/graphFunctionObject.C graphFunctionObject/graphFunctionObject.C
vtkWrite/vtkWrite.C vtkWrite/vtkWrite.cxx
vtkWrite/vtkWriteUpdate.C vtkWrite/vtkWriteUpdate.cxx
multiRegion/multiRegion.C multiRegion/multiRegion.C

View File

@ -72,8 +72,8 @@ Usage
libs | Library name: utilityFunctionObjects | word | yes | - libs | Library name: utilityFunctionObjects | word | yes | -
fields | Name of operand fields | wordRes | yes | - fields | Name of operand fields | wordRes | yes | -
surfaceFormat | Output surface format | word | yes | - surfaceFormat | Output surface format | word | yes | -
areas | Names of multiple areas | wordRes | no | - areas | Names of finite-area regions | wordRes | no | -
area | Name of the selected area | word | no | - area | Name of finite-area region | word | no | -
formatOptions | Dictionary of format options | dict | no | - formatOptions | Dictionary of format options | dict | no | -
\endtable \endtable
@ -82,8 +82,8 @@ Usage
- \link surfaceWriter.H \endlink - \link surfaceWriter.H \endlink
SourceFiles SourceFiles
areaWrite.C areaWrite.cxx
areaWriteTemplates.C areaWriteImpl.cxx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -95,7 +95,6 @@ SourceFiles
#include "areaFieldsFwd.H" #include "areaFieldsFwd.H"
#include "surfaceWriter.H" #include "surfaceWriter.H"
#include "HashPtrTable.H" #include "HashPtrTable.H"
#include "IOobjectList.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -105,6 +104,7 @@ namespace Foam
// Forward Declarations // Forward Declarations
class faMesh; class faMesh;
class polySurface; class polySurface;
class IOobjectList;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class areaWrite Declaration Class areaWrite Declaration
@ -145,7 +145,7 @@ class areaWrite
//- Hold intermediate surfaces. //- Hold intermediate surfaces.
// The faMesh has an indirect face list but we require real ones. // The faMesh has an indirect face list but we require real ones.
autoPtr<objectRegistry> surfaces_; std::unique_ptr<objectRegistry> surfaces_;
// Output control // Output control
@ -156,6 +156,9 @@ class areaWrite
// Private Member Functions // Private Member Functions
//- Mark intermediate surfaces and writers as needing an update.
void expire();
//- Write fieldName on surface and on outputDir path. //- Write fieldName on surface and on outputDir path.
// Can have a field nullptr for partially missing fields, // Can have a field nullptr for partially missing fields,
// but the caller should generally filter out completely // but the caller should generally filter out completely
@ -177,8 +180,13 @@ class areaWrite
const IOobjectList& objects const IOobjectList& objects
); );
//- Mark intermediate surfaces and writers as needing an update. public:
void expire();
//- Runtime type information
TypeName("areaWrite");
// Generated Methods
//- No copy construct //- No copy construct
areaWrite(const areaWrite&) = delete; areaWrite(const areaWrite&) = delete;
@ -187,12 +195,6 @@ class areaWrite
void operator=(const areaWrite&) = delete; void operator=(const areaWrite&) = delete;
public:
//- Runtime type information
TypeName("areaWrite");
// Constructors // Constructors
//- Construct from name, Time and dictionary //- Construct from name, Time and dictionary
@ -215,14 +217,14 @@ public:
//- Destructor //- Destructor
virtual ~areaWrite() = default; virtual ~areaWrite();
// Member Functions // Member Functions
//- Enable/disable verbose output //- Enable/disable verbose output
// \return old value // \return old value
bool verbose(const bool on) noexcept; bool verbose(bool on) noexcept;
//- Read the function-object dictionary //- Read the function-object dictionary
virtual bool read(const dictionary& dict); virtual bool read(const dictionary& dict);
@ -246,7 +248,7 @@ public:
static scalar mergeTol() noexcept; static scalar mergeTol() noexcept;
//- Set merge tolerance and return old value //- Set merge tolerance and return old value
static scalar mergeTol(const scalar tol) noexcept; static scalar mergeTol(scalar tol) noexcept;
}; };

View File

@ -28,11 +28,13 @@ License
#include "areaWrite.H" #include "areaWrite.H"
#include "polySurface.H" #include "polySurface.H"
#include "faMesh.H"
#include "fvMesh.H" #include "fvMesh.H"
#include "mapPolyMesh.H" #include "mapPolyMesh.H"
#include "areaFields.H" #include "areaFields.H"
#include "HashOps.H" #include "HashOps.H"
#include "ListOps.H" #include "ListOps.H"
#include "IOobjectList.H"
#include "Time.H" #include "Time.H"
#include "IndirectList.H" #include "IndirectList.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
@ -55,7 +57,7 @@ Foam::scalar Foam::areaWrite::mergeTol_ = 1e-10;
// Implementation // Implementation
#include "areaWriteImpl.C" #include "areaWriteImpl.cxx"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -72,12 +74,7 @@ Foam::areaWrite::areaWrite
outputPath_ outputPath_
( (
time_.globalPath()/functionObject::outputPrefix/name time_.globalPath()/functionObject::outputPrefix/name
), )
selectAreas_(),
fieldSelection_(),
meshes_(),
surfaces_(nullptr),
writers_()
{ {
outputPath_.clean(); // Remove unneeded ".." outputPath_.clean(); // Remove unneeded ".."
@ -99,12 +96,7 @@ Foam::areaWrite::areaWrite
outputPath_ outputPath_
( (
time_.globalPath()/functionObject::outputPrefix/name time_.globalPath()/functionObject::outputPrefix/name
), )
selectAreas_(),
fieldSelection_(),
meshes_(),
surfaces_(nullptr),
writers_()
{ {
outputPath_.clean(); // Remove unneeded ".." outputPath_.clean(); // Remove unneeded ".."
@ -112,9 +104,15 @@ Foam::areaWrite::areaWrite
} }
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::areaWrite::~areaWrite()
{} // Define here: header had forward declared classes
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool Foam::areaWrite::verbose(const bool on) noexcept bool Foam::areaWrite::verbose(bool on) noexcept
{ {
bool old(verbose_); bool old(verbose_);
verbose_ = on; verbose_ = on;
@ -393,6 +391,7 @@ bool Foam::areaWrite::write()
void Foam::areaWrite::expire() void Foam::areaWrite::expire()
{ {
// Clear the registry contents
surfaces_->clear(); surfaces_->clear();
// Dimension as fraction of mesh bounding box // Dimension as fraction of mesh bounding box
@ -434,13 +433,15 @@ void Foam::areaWrite::readUpdate(const polyMesh::readUpdateState state)
} }
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
Foam::scalar Foam::areaWrite::mergeTol() noexcept Foam::scalar Foam::areaWrite::mergeTol() noexcept
{ {
return mergeTol_; return mergeTol_;
} }
Foam::scalar Foam::areaWrite::mergeTol(const scalar tol) noexcept Foam::scalar Foam::areaWrite::mergeTol(scalar tol) noexcept
{ {
scalar old(mergeTol_); scalar old(mergeTol_);
mergeTol_ = tol; mergeTol_ = tol;

View File

@ -25,10 +25,6 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "areaWrite.H"
#include "areaFields.H"
#include "faMesh.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template<class Type> template<class Type>

View File

@ -135,8 +135,8 @@ See also
SourceFiles SourceFiles
ensightWrite.C ensightWrite.C
ensightWriteImpl.C ensightWriteImpl.cxx
ensightWriteUpdate.C ensightWriteUpdate.cxx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -158,10 +158,6 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward Declarations
class dictionary;
namespace functionObjects namespace functionObjects
{ {
@ -173,7 +169,7 @@ class ensightWrite
: :
public fvMeshFunctionObject public fvMeshFunctionObject
{ {
// Private data // Private Data
//- Ensight writer options //- Ensight writer options
ensightMesh::options writeOpts_; ensightMesh::options writeOpts_;
@ -188,7 +184,7 @@ class ensightWrite
bool consecutive_; bool consecutive_;
//- Track changes in mesh geometry //- Track changes in mesh geometry
enum polyMesh::readUpdateState meshState_; polyMesh::readUpdateState meshState_;
//- Requested selection of fields to process //- Requested selection of fields to process
wordRes selectFields_; wordRes selectFields_;
@ -212,16 +208,10 @@ class ensightWrite
// Private Member Functions // Private Member Functions
//- Ensight case handler //- Ensight case handler
ensightCase& ensCase() ensightCase& ensCase() { return *ensCase_; }
{
return *ensCase_;
}
//- Ensight mesh handler //- Ensight mesh handler
ensightMesh& ensMesh() ensightMesh& ensMesh() { return *ensMesh_; }
{
return *ensMesh_;
}
//- Update mesh subset according to zones, geometry, bounds //- Update mesh subset according to zones, geometry, bounds
@ -252,13 +242,6 @@ class ensightWrite
const wordHashSet& candidateNames const wordHashSet& candidateNames
); );
//- No copy construct
ensightWrite(const ensightWrite&) = delete;
//- No copy assignment
void operator=(const ensightWrite&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -275,6 +258,12 @@ public:
const dictionary& dict const dictionary& dict
); );
//- No copy construct
ensightWrite(const ensightWrite&) = delete;
//- No copy assignment
void operator=(const ensightWrite&) = delete;
//- Destructor //- Destructor
virtual ~ensightWrite() = default; virtual ~ensightWrite() = default;

View File

@ -49,7 +49,7 @@ namespace functionObjects
} }
// Implementation // Implementation
#include "ensightWriteImpl.C" #include "ensightWriteImpl.cxx"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
@ -96,17 +96,10 @@ Foam::functionObjects::ensightWrite::ensightWrite
) )
: :
fvMeshFunctionObject(name, runTime, dict), fvMeshFunctionObject(name, runTime, dict),
writeOpts_(),
caseOpts_("format", dict, IOstreamOption::BINARY), caseOpts_("format", dict, IOstreamOption::BINARY),
outputDir_(),
consecutive_(false), consecutive_(false),
meshState_(polyMesh::TOPO_CHANGE), meshState_(polyMesh::TOPO_CHANGE),
selectFields_(), meshSubset_(mesh_)
blockFields_(),
selection_(),
meshSubset_(mesh_),
ensCase_(nullptr),
ensMesh_(nullptr)
{ {
// May still want this? (OCT-2018) // May still want this? (OCT-2018)
// if (postProcess) // if (postProcess)

View File

@ -130,8 +130,9 @@ See also
Foam::cellBitSet::select Foam::cellBitSet::select
SourceFiles SourceFiles
vtkWrite.C vtkWrite.cxx
vtkWriteImpl.C vtkWriteImpl.cxx
vtkWriteUpdate.cxx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -193,7 +194,7 @@ class vtkWrite
bool writeIds_; bool writeIds_;
//- Track changes in mesh geometry //- Track changes in mesh geometry
enum polyMesh::readUpdateState meshState_; polyMesh::readUpdateState meshState_;
//- Requested names of regions to process //- Requested names of regions to process
wordRes selectRegions_; wordRes selectRegions_;
@ -294,13 +295,6 @@ class vtkWrite
) const; ) const;
//- No copy construct
vtkWrite(const vtkWrite&) = delete;
//- No copy assignment
void operator=(const vtkWrite&) = delete;
public: public:
//- Runtime type information //- Runtime type information
@ -317,6 +311,12 @@ public:
const dictionary& dict const dictionary& dict
); );
//- No copy construct
vtkWrite(const vtkWrite&) = delete;
//- No copy assignment
void operator=(const vtkWrite&) = delete;
//- Destructor //- Destructor
virtual ~vtkWrite() = default; virtual ~vtkWrite() = default;

View File

@ -49,7 +49,7 @@ namespace functionObjects
// Implementation // Implementation
#include "vtkWriteImpl.C" #include "vtkWriteImpl.cxx"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
@ -134,8 +134,6 @@ Foam::functionObjects::vtkWrite::vtkWrite
) )
: :
timeFunctionObject(name, runTime), timeFunctionObject(name, runTime),
outputDir_(),
printf_(),
writeOpts_(vtk::formatType::INLINE_BASE64), writeOpts_(vtk::formatType::INLINE_BASE64),
verbose_(true), verbose_(true),
doInternal_(true), doInternal_(true),
@ -144,17 +142,7 @@ Foam::functionObjects::vtkWrite::vtkWrite
interpolate_(false), interpolate_(false),
decompose_(false), decompose_(false),
writeIds_(false), writeIds_(false),
meshState_(polyMesh::TOPO_CHANGE), meshState_(polyMesh::TOPO_CHANGE)
selectRegions_(),
selectPatches_(),
blockPatches_(),
selectFields_(),
blockFields_(),
selection_(),
meshes_(),
meshSubsets_(),
vtuMappings_(),
series_()
{ {
// May still want this? (OCT-2018) // May still want this? (OCT-2018)
// if (postProcess) // if (postProcess)

View File

@ -126,8 +126,8 @@ submodels/CloudFunctionObjects/CloudFunctionObject/cloudFunctionObjectTools.C
submodels/MPPIC/AveragingMethods/makeAveragingMethods.C submodels/MPPIC/AveragingMethods/makeAveragingMethods.C
/* conversion methods */ /* conversion methods */
conversion/ensight/ensightOutputCloud.C conversion/ensight/ensightOutputCloud.cxx
conversion/vtk/foamVtkLagrangianWriter.C conversion/vtk/foamVtkLagrangianWriter.cxx
LIB = $(FOAM_LIBBIN)/liblagrangianIntermediate LIB = $(FOAM_LIBBIN)/liblagrangianIntermediate

View File

@ -30,8 +30,8 @@ Description
A collection of functions for writing clouds as ensight file content. A collection of functions for writing clouds as ensight file content.
SourceFiles SourceFiles
ensightOutputCloud.C ensightOutputCloud.cxx
ensightOutputCloudTemplates.C ensightOutputCloud.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -181,7 +181,7 @@ label writeCloudFieldContent
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "ensightOutputCloudTemplates.C" #include "ensightOutputCloud.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -40,8 +40,8 @@ Note
must be decided at construction time. must be decided at construction time.
SourceFiles SourceFiles
lagrangianWriter.C foamVtkLagrangianWriter.cxx
lagrangianWriterTemplates.C foamVtkLagrangianWriter.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -229,7 +229,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkLagrangianWriterTemplates.C" #include "foamVtkLagrangianWriter.txx"
#endif #endif

View File

@ -344,8 +344,8 @@ meshStructure/meshStructure.C
coupling/externalFileCoupler.C coupling/externalFileCoupler.C
vtk = output/vtk vtk = output/vtk
$(vtk)/mesh/foamVtkInternalMeshWriter.C $(vtk)/mesh/foamVtkInternalMeshWriter.cxx
$(vtk)/patch/foamVtkPatchMeshWriter.C $(vtk)/patch/foamVtkPatchMeshWriter.cxx
$(vtk)/topoSet/foamVtkWriteTopoSet.C $(vtk)/topoSet/foamVtkWriteTopoSet.C
$(vtk)/topoSet/foamVtkWriteFaceSet.C $(vtk)/topoSet/foamVtkWriteFaceSet.C
$(vtk)/topoSet/foamVtkWritePointSet.C $(vtk)/topoSet/foamVtkWritePointSet.C

View File

@ -44,8 +44,8 @@ See Also
Foam::vtk::internalWriter Foam::vtk::internalWriter
SourceFiles SourceFiles
foamVtkInternalMeshWriter.C foamVtkInternalMeshWriter.cxx
foamVtkInternalMeshWriterTemplates.C foamVtkInternalMeshWriter.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -240,7 +240,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkInternalMeshWriterTemplates.C" #include "foamVtkInternalMeshWriter.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -43,8 +43,8 @@ See Also
Foam::vtk::patchWriter Foam::vtk::patchWriter
SourceFiles SourceFiles
foamVtkPatchMeshWriter.C foamVtkPatchMeshWriter.cxx
foamVtkPatchMeshWriterTemplates.C foamVtkPatchMeshWriter.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -234,7 +234,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "foamVtkPatchMeshWriterTemplates.C" #include "foamVtkPatchMeshWriter.txx"
#endif #endif

View File

@ -55,7 +55,7 @@ Description
SourceFiles SourceFiles
boundaryDataSurfaceReader.C boundaryDataSurfaceReader.C
boundaryDataSurfaceReaderTemplates.C boundaryDataSurfaceReader.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -242,7 +242,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "boundaryDataSurfaceReaderTemplates.C" #include "boundaryDataSurfaceReader.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -49,7 +49,7 @@ Description
SourceFiles SourceFiles
ensightSurfaceReader.C ensightSurfaceReader.C
ensightSurfaceReaderTemplates.C ensightSurfaceReader.txx
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -285,7 +285,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
#include "ensightSurfaceReaderTemplates.C" #include "ensightSurfaceReader.txx"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //