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
62 mesh.time().timeName(),
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);
static void printMemory()
Simple memory used debugging information.
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)
Ostream & endl(Ostream &os)
Add newline and flush stream.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
static const word prefix
The prefix to local: lagrangian.
const word cloudName(propsDict.lookup("cloudName"))
#define InfoInFunction
Report an information message using Foam::Info.