<div dir="ltr"><div>/*--------------------------------*- C++ -*----------------------------------*\</div><div>| ========= | |</div><div>| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |</div>
<div>| \\ / O peration | Version: 2.1.x |</div><div>| \\ / A nd | Web: <a href="http://www.OpenFOAM.org">www.OpenFOAM.org</a> |</div><div>
| \\/ M anipulation | |</div><div>\*---------------------------------------------------------------------------*/</div><div>FoamFile</div><div>{</div><div> version 2.0;</div>
<div> format ascii;</div><div> class dictionary;</div><div> object blockMeshDict;</div><div>}</div><div>// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //</div><div><br>
</div><div>convertToMeters 0.1;</div><div><br></div><div>vertices</div><div>(</div><div> (0 0 0)</div><div> (1 0 0)</div><div> (1 1 0)</div><div> (0 1 0)</div><div> (0 0 0.1)</div><div> (1 0 0.1)</div><div>
(1 1 0.1)</div><div> (0 1 0.1)</div><div>);</div><div><br></div><div>blocks</div><div>(</div><div> hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1)</div><div>);</div><div><br></div><div>edges</div><div>(</div>
<div>);</div><div><br></div><div>boundary</div><div>(</div><div> movingWall</div><div> {</div><div> type wall;</div><div> faces</div><div> (</div><div> (3 7 6 2)</div><div> );</div>
<div> }</div><div> fixedWalls</div><div> {</div><div> type wall;</div><div> faces</div><div> (</div><div> (0 4 7 3)</div><div> (2 6 5 1)</div><div> (1 5 4 0)</div>
<div> );</div><div> }</div><div> frontAndBack</div><div> {</div><div> type empty;</div><div> faces</div><div> (</div><div> (0 3 2 1)</div><div> (4 5 6 7)</div><div>
);</div><div> }</div><div>);</div><div><br></div><div>mergePatchPairs</div><div>(</div><div>);</div><div>// ************************************************************************* //</div><div><br></div><div>
<br></div><div><br></div><div><font class="" color="#0000ff">This is the file of openfoam which shows geometry. . . Now the above code contains the geometry of Square box . . . </font><font class="" color="#ff00ff"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ParticleReader">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ParticleReader</a> . . . </font><font class="" color="#0000ff">I took the code from the link and add the path of openfoam file and also add the vtkopenfoamreader.h directory . . . . but the output is only a single dot in the middle. . . not the square box with no error . . .</font></div>
<div><font class="" color="#0000ff"><br></font></div><div><font class="" color="#0000ff">Regards </font></div><div><font class="" color="#0000ff">Abbasi</font></div><div><font class="" color="#0000ff">University of Stuttgurt</font></div>
<div><font class="" color="#0000ff">Germany</font></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 21, 2013 at 2:57 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Aug 21, 2013 at 8:51 AM, Altamash Abbasi<br>
<<a href="mailto:altamashabbasi@gmail.com">altamashabbasi@gmail.com</a>> wrote:<br>
> All things are fine but when i execute this commands these errors are coming<br>
> ???<br>
><br>
> Opetame1@itlrstud044:~/software/ReadPLOT3D/build> ./ReadPLOT3D<br>
> ERROR: In<br>
> /home/stame1/software/VTK6.0.0/Common/ExecutionModel/vtkExecutive.cxx, line<br>
> 754<br>
> vtkCompositeDataPipeline (0x62d3d0): Algorithm<br>
> vtkMultiBlockPLOT3DReader(0x62b720) returned failure for request:<br>
> vtkInformation (0x62eb50)<br>
> Debug: Off<br>
> Modified Time: 108<br>
> Reference Count: 1<br>
> Registered Events: (none)<br>
> Request: REQUEST_INFORMATION<br>
> ALGORITHM_AFTER_FORWARD: 1<br>
> FORWARD_DIRECTION: 0<br>
><br>
><br>
><br>
> ERROR: In<br>
> /home/stame1/software/VTK6.0.0/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx,<br>
> line 715<br>
> vtkCompositeDataPipeline (0x6303a0): Input port 0 of algorithm<br>
> vtkStructuredGridGeometryFilter(0x62fb50) has 0 connections but is not<br>
> optional.<br>
<br>
"Input port 0 of algorithm vtkStructuredGridGeometryFilter(0x62fb50)<br>
</div></div>has 0 connections but is not optional." means that you have not called<br>
SetInput* (or similar) on your vtkStructuredGridGeometryFilter.<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>