37 namespace functionObjects
51 const dictionary&
dict
54 fvMeshFunctionObject(
name, runTime,
dict),
71 dict.lookup(
"objects") >> objectNames_;
93 Info<<
"Time: " << time_.name() <<
endl;
95 word timeDesc = time_.
name();
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.writeCellIndices();
181 #define WriteTypeFields(Type, nullArg) \
182 writer.write(Type##Fields);
184 #undef WriteTypeFields
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
graph_traits< Graph >::vertices_size_type size_type
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
virtual const fileName & name() const
Return the name of the stream.
static bool & parRun()
Is this a parallel run?
virtual wordList fields() const
Return the list of fields required.
virtual bool execute()
Execute, currently does nothing.
virtual ~writeVTK()
Destructor.
virtual bool write()
Write the writeVTK.
virtual bool read(const dictionary &)
Read the writeVTK data.
writeVTK(const word &name, const Time &t, const dictionary &)
Construct from Time and dictionary.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
void writeCellDataHeader(std::ostream &, const label nCells, const label nFields)
Write cell data header.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
void writeVTK(OFstream &os, const Type &value)
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
#define DeclareTypeFields(Type, nullArg)