33 #include "vtkOpenFOAMPoints.H"
36 #include "vtkCellArray.h"
37 #include "vtkPoints.h"
38 #include "vtkPolyData.h"
42 vtkPolyData* Foam::vtkPVFoam::lagrangianVTKMesh
48 vtkPolyData* vtkmesh =
nullptr;
59 IOobjectList sprayObjs
66 IOobject* positionsPtr = sprayObjs.lookup(word(
"positions"));
69 Cloud<passiveParticle> parcels(mesh,
cloudName,
false);
73 Info<<
" cloud with " << parcels.size()
74 <<
" parcels" <<
endl;
81 vtkpoints->Allocate(parcels.size());
82 vtkcells->Allocate(parcels.size());
84 vtkIdType particleId = 0;
89 vtkcells->InsertNextCell(1, &particleId);
93 vtkmesh->SetPoints(vtkpoints);
96 vtkmesh->SetVerts(vtkcells);
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
static const word prefix
The prefix to local: lagrangian.
static void printMemory()
Simple memory used debugging information.
#define InfoInFunction
Report an information message using Foam::Info.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word cloudName(propsDict.lookup("cloudName"))
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)