37 namespace functionObjects
51 const dictionary& dict
54 fvMeshFunctionObject(name, runTime, dict),
71 dict.lookup(
"objects") >> objectNames_;
93 Info<<
"Time: " << time_.timeName() <<
endl;
95 word timeDesc = time_.timeName();
98 fileName fvPath(time_.path()/
"VTK");
102 string vtkName = time_.caseName();
109 if (i != string::npos)
111 vtkName = vtkName.substr(i);
124 Info<<
" Internal : " << vtkFileName <<
endl;
126 vtkMesh vMesh(const_cast<fvMesh&>(mesh_));
129 internalWriter writer(vMesh,
false, vtkFileName);
132 #define DeclareTypeFields(Type, nullArg) \ 133 UPtrList<const VolField<Type>> Type##Fields; 135 #undef DeclareTypeFields 141 bool objectFound =
false;
143 #define SetTypeFields(Type, nullarg) \ 145 if (obr_.foundObject<VolField<Type>>(objectNames_[i])) \ 147 const VolField<Type>& field = \ 148 obr_.lookupObject<VolField<Type>>(objectNames_[i]); \ 150 Type##Fields.resize(Type##Fields.size() + 1); \ 151 Type##Fields.set(Type##Fields.size() - 1, &field); \ 153 Info<< " Writing " << VolField<Type>::typeName \ 154 << " field " << field.name() << endl; \ 157 objectFound = true; \ 165 cannotFindObject(objectNames_[i]);
178 writer.writeCellIDs();
181 #define WriteTypeFields(Type, nullArg) \ 182 writer.write(Type##Fields); 184 #undef WriteTypeFields #define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual wordList fields() const
Return the list of fields required.
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.
#define DeclareTypeFields(Type, nullArg)
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.
FOR_ALL_FIELD_TYPES(DefineFvWallInfoType)
void writeVTK(OFstream &os, const Type &value)
writeVTK(const word &name, const Time &t, const dictionary &)
Construct from Time and dictionary.