33 #include "vtkOpenFOAMPoints.H" 36 #include "vtkCellArray.h" 37 #include "vtkPoints.h" 38 #include "vtkPolyData.h" 42 vtkPolyData* Foam::vtkPVFoam::lagrangianVTKMesh
48 vtkPolyData* vtkmesh = NULL;
52 Info<<
"<beg> Foam::vtkPVFoam::lagrangianVTKMesh - timePath " 59 IOobjectList sprayObjs
62 mesh.time().timeName(),
66 IOobject* positionsPtr = sprayObjs.lookup(word(
"positions"));
69 Cloud<passiveParticle> parcels(mesh, cloudName,
false);
73 Info<<
"cloud with " << parcels.size() <<
" parcels" <<
endl;
80 vtkpoints->Allocate(parcels.size());
81 vtkcells->Allocate(parcels.size());
83 vtkIdType particleId = 0;
88 vtkcells->InsertNextCell(1, &particleId);
92 vtkmesh->SetPoints(vtkpoints);
95 vtkmesh->SetVerts(vtkcells);
101 Info<<
"<end> Foam::vtkPVFoam::lagrangianVTKMesh" <<
endl;
static void printMemory()
Simple memory used debugging information.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)
const word cloudName(propsDict.lookup("cloudName"))
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
static const word prefix
The prefix to local: lagrangian.