37 namespace functionObjects
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();
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeCellDataHeader(std::ostream &, const label nCells, const label nFields)
Macros for easy insertion into run-time selection tables.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
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.
defineTypeNameAndDebug(Qdot, 0)
virtual bool read(const dictionary &)
Read the writeVTK data.
static bool & parRun()
Is this a parallel run?
virtual bool execute()
Execute, currently does nothing.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
void writeVTK(OFstream &os, const Type &value)
writeVTK(const word &name, const Time &t, const dictionary &)
Construct from Time and dictionary.