Go to the documentation of this file.
30 #include "primitivePatch.H"
31 #include "vtkOpenFOAMPoints.H"
34 #include "vtkCellArray.h"
35 #include "vtkPoints.h"
36 #include "vtkPolyData.h"
40 template<
class PatchType>
51 Info<<
"<beg> Foam::vtkPV3Foam::patchVTKMesh - " <<
name <<
endl;
59 vtkpoints->Allocate(
points.size());
65 vtkmesh->SetPoints(vtkpoints);
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);
91 Info<<
"<end> Foam::vtkPV3Foam::patchVTKMesh - " <<
name <<
endl;
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
#define forAll(list, i)
Loop across all elements in list.
vtkPolyData * patchVTKMesh(const word &name, const PatchType &)
Add patch mesh.
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Pre-declare SubField and related Field type.
static void printMemory()
Simple memory used debugging information.
word name(const complex &)
Return a string representation of a complex.