Go to the documentation of this file.
46 #ifndef Foam_vtk_vtkTools_H
47 #define Foam_vtk_vtkTools_H
55 #include "vtkCellArray.h"
56 #include "vtkFloatArray.h"
57 #include "vtkDoubleArray.h"
58 #include "vtkIdTypeArray.h"
59 #include "vtkSmartPointer.h"
60 #include "vtkUnsignedCharArray.h"
61 #include "vtkPoints.h"
62 #include "vtkPolyData.h"
86 template<
class DataType>
92 vtkSmartPointer<dataType>
vtkgeom;
95 vtkSmartPointer<dataType>
dataset;
111 vtkSmartPointer<dataType>
getCopy()
const
132 void set(vtkSmartPointer<dataType> geom)
144 vtkgeom->PrintSelf(std::cout, vtkIndent(2));
155 dataset->PrintSelf(std::cout, vtkIndent(2));
175 vtkUnsignedCharArray* array,
182 vtkIdTypeArray* array,
187 inline vtkSmartPointer<vtkPoints>
Points
193 inline vtkSmartPointer<vtkPoints>
Points
204 inline vtkSmartPointer<vtkPolyData>
Vertices
210 inline vtkSmartPointer<vtkPolyData>
Vertices
224 template<
class PatchType>
225 static vtkSmartPointer<vtkPoints>
points(
const PatchType&
p);
228 template<
class PatchType>
229 static vtkSmartPointer<vtkCellArray>
faces(
const PatchType&
p);
232 template<
class PatchType>
233 static vtkSmartPointer<vtkPolyData>
mesh(
const PatchType&
p);
236 template<
class PatchType>
237 static vtkSmartPointer<vtkFloatArray>
faceNormals(
const PatchType&
p);
240 template<
class PatchType>
241 static vtkSmartPointer<vtkPoints>
faceCentres(
const PatchType&
p);
245 static vtkSmartPointer<vtkPolyData>
mesh
299 vtkFloatArray* array,
340 void Foam::vtk::Tools::remapTuple<Foam::symmTensor>(
float data[])
342 std::swap(data[1], data[3]);
343 std::swap(data[2], data[5]);
349 void Foam::vtk::Tools::remapTuple<Foam::symmTensor>(
double data[])
351 std::swap(data[1], data[3]);
352 std::swap(data[2], data[5]);
static Ostream & output(Ostream &os, const IntRange< T > &range)
A class for handling words, derived from Foam::string.
void PrintSelf(std::ostream &os) const
vtkSmartPointer< dataType > vtkgeom
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
OBJstream os(runTime.globalPath()/outputName)
vtkSmartPointer< dataType > getCopy() const
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static Istream & input(Istream &is, IntRange< T > &range)
vtkSmartPointer< dataType > dataset
word name(const expressions::valueTypeCode typeCode)
void set(vtkSmartPointer< dataType > geom)
A min/max value pair with additional methods. In addition to conveniently storing values,...
Database for solution data, solver performance and other reduced data.