31 #include "vtkOpenFOAMPoints.H" 34 #include "vtkCellArray.h" 35 #include "vtkPoints.h" 36 #include "vtkPolyData.h" 40 template<
class PatchType>
41 vtkPolyData* Foam::vtkPVFoam::patchVTKMesh
59 vtkpoints->Allocate(points.
size());
65 vtkmesh->SetPoints(vtkpoints);
70 const faceList& faces = p.localFaces();
73 vtkcells->Allocate(faces.size());
76 const face& f = faces[facei];
77 vtkIdType nodeIds[f.size()];
83 vtkcells->InsertNextCell(f.size(), nodeIds);
86 vtkmesh->SetPolys(vtkcells);
#define forAll(list, i)
Loop across all elements in list.
static void printMemory()
Simple memory used debugging information.
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Pre-declare SubField and related Field type.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
#define InfoInFunction
Report an information message using Foam::Info.