37 namespace functionObjects
47 Foam::functionObjects::writeVTK::writeVTK
51 const dictionary& dict
54 fvMeshFunctionObject(name, runTime, dict),
71 dict.lookup(
"objects") >> objectNames_;
87 Info<<
"Time: " << time_.timeName() <<
endl;
89 word timeDesc = time_.timeName();
92 fileName fvPath(time_.path()/
"VTK");
96 string vtkName = time_.caseName();
103 if (i != string::npos)
105 vtkName = vtkName.substr(i);
118 Info<<
" Internal : " << vtkFileName <<
endl;
120 vtkMesh vMesh(const_cast<fvMesh&>(mesh_));
123 internalWriter writer(vMesh,
false, vtkFileName);
125 UPtrList<const volScalarField> vsf(lookupFields<volScalarField>());
126 UPtrList<const volVectorField> vvf(lookupFields<volVectorField>());
127 UPtrList<const volSphericalTensorField> vsptf
129 lookupFields<volSphericalTensorField>()
131 UPtrList<const volSymmTensorField> vstf(lookupFields<volSymmTensorField>());
132 UPtrList<const volTensorField> vtf(lookupFields<volTensorField>());
139 1 + vsf.size() + vvf.size() + vsptf.size() + vstf.size() + vtf.size()
143 writer.writeCellIDs();
static void writeCellDataHeader(std::ostream &, const label nCells, const label nFields)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
bool read(const char *, int32_t &)
virtual ~writeVTK()
Destructor.
graph_traits< Graph >::vertices_size_type size_type
virtual bool write()
Write the writeVTK.
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
word name(const complex &)
Return a string representation of a complex.
virtual bool read(const dictionary &)
Read the writeVTK data.
static bool & parRun()
Is this a parallel run?
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
addToRunTimeSelectionTable(functionObject, blendingFactor, dictionary)
virtual bool execute()
Execute, currently does nothing.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
void writeVTK(OFstream &os, const Type &value)