<div dir="ltr"><div><div><div><div>Hi Per,<br><br></div>I'm glad you're able to move forward with this. <br><br></div>Did you look at <a href="https://cmake.org/pipermail/paraview/2014-May/031000.html">https://cmake.org/pipermail/paraview/2014-May/031000.html</a> for information on the Id Channel Array? That may help.<br><br></div>Best,<br></div>Andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 17, 2016 at 3:27 AM, Per Adamsen <span dir="ltr"><<a href="mailto:padamsen@grundfos.com" target="_blank">padamsen@grundfos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="DA">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Andy,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">I have tried with PV 5.0 and I got a lot further than previous (I didn’t test my findings below on earlier PV versions)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">The issue with missing particles after 1<sup>st</sup> timestep was simply because the time-stepping was too coarse making all the particles leave
the domain at next time-step. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Adding the temporal interpolator to get much smaller timesteps I managed to get some quite descent animations although I still have some issues with
the path lines jumping around which I would assume is caused by the wrong “Id Channel Array” setting.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Per<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> Andy Bauer [mailto:<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>]
<br>
<b>Sent:</b> 23. februar 2016 16:12</span></p><div><div class="h5"><br>
<b>To:</b> Per Adamsen <<a href="mailto:padamsen@grundfos.com" target="_blank">padamsen@grundfos.com</a>><br>
<b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] ParticleTracer filter makes Paraview crash on 'play'<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Per,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Can you share either a Python script or state file which reproduces the problem for PV 5.0? I still have your OpenFOAM file to test with so I don't need that.<u></u><u></u></p>
</div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<p class="MsoNormal">Andy<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, Feb 23, 2016 at 2:10 AM, Per Adamsen <<a href="mailto:padamsen@grundfos.com" target="_blank">padamsen@grundfos.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">Hi Andy,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">I just want to refresh this conversation – sorry for not passing all messages through this mailing list…
my mistake.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">After I shared the case you wrote that you had tried a few things but with no luck in PV 5.0. As mentioned
below I have tried the following 64-bit versions</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">- 3.98.1 on Win7</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">- 4.4.0 on Win7</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">- 4.2.0 on Linux HPC cluster</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">Per</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> Andy
Bauer [mailto:<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>]
<br>
<b>Sent:</b> 23. november 2015 16:18<br>
<b>To:</b> Per Adamsen <<a href="mailto:padamsen@grundfos.com" target="_blank">padamsen@grundfos.com</a>><br>
<b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] ParticleTracer filter makes Paraview crash on 'play'</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">My guess is that it has to do with OpenFOAM's way of saving out extra fields for the initial time step. Several temporal filters assume that the arrays are ordered the same for different
time steps but the OpenFOAM reader doesn't follow this convention.<br>
<br>
Can you share a data set that reproduces the issue?<u></u><u></u></p>
</div>
<p class="MsoNormal">Andy<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Mon, Nov 23, 2015 at 8:23 AM, Per Adamsen <<a href="mailto:padamsen@grundfos.com" target="_blank">padamsen@grundfos.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">I have been trying to visualize flow using the particle tracers as described at
<a href="http://openfoamwiki.net/index.php/HowTo_use_particle_tracer_in_paraFoam" target="_blank">
http://openfoamwiki.net/index.php/HowTo_use_particle_tracer_in_paraFoam</a>. </span>
<u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">It works when using it on the cavity tutorial but when I try to transfer the setup to one of my own 3D OpenFOAM cases of a pump volute with e.g. 20 timesteps
and 900,000 cells Paraview crashes with a segmentation fault when I hit the ‘Play’ button to step through the individual timesteps.
</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">The pipeline setup is exactly as described in the HowTo (linked above) and I have tried both with and without the Temporal Interpolator and on Linux and Windows
platform – all with the same crash result.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">I have tried the following 64-bit version:</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">3.98.1 on Win7</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">4.4.0 on Win7</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">4.2.0 on Linux HPC cluster</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">At first I thought the reason for the crash was due to the use of interfaces in the model but I have tried a model without interfaces at all and the result is
the same. </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Are there any restriction to the data which can be used?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">The following is the trace right up to pressing ‘Play’:</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">#### import the simple module from the paraview</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">from paraview.simple import *</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">#### disable automatic camera reset on 'Show'</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">paraview.simple._DisableFirstRenderCameraReset()</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># get active source.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoam = GetActiveSource()</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># Properties modified on q97_volutefoam</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoam.CaseType = 'Decomposed Case'</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># get active view</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">renderView1 = GetActiveViewOrCreate('RenderView')</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># uncomment following to set a specific view size</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># renderView1.ViewSize = [1025, 773]</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># get color transfer function/color map for 'p'</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">pLUT = GetColorTransferFunction('p')</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># show data in view</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay = Show(q97_volutefoam, renderView1)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># trace defaults for the display properties.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.ColorArrayName = ['POINTS', 'p']</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.LookupTable = pLUT</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.ScalarOpacityUnitDistance = 0.01089979797382614</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.SelectInputVectors = ['POINTS', 'U']</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.WriteLog = ''</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># reset view to fit data</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">renderView1.ResetCamera()</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># show color bar/color legend</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.SetScalarBarVisibility(renderView1, True)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># get animation scene</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">animationScene1 = GetAnimationScene()</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># update animation scene based on data timesteps</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">animationScene1.UpdateAnimationUsingDataTimeSteps()</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># get opacity transfer function/opacity map for 'p'</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">pPWF = GetOpacityTransferFunction('p')</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># create a new 'Plane'</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">plane1 = Plane()</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># Properties modified on q97_volutefoam</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoam.CellArrays = ['U', 'k', 'nut', 'omega', 'p', 'gradP', 'myPtot', 'myYPlus', 'uPlus', 'y', 'yPlus']</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># Properties modified on plane1</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">plane1.XResolution = 100</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">plane1.YResolution = 100</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># show data in view</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">plane1Display = Show(plane1, renderView1)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># trace defaults for the display properties.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">plane1Display.ColorArrayName = [None, '']</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">plane1Display.SelectInputVectors = ['POINTS', 'Normals']</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">plane1Display.WriteLog = ''</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># create a new 'ParticleTracer'</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="FR">particleTracer1 = ParticleTracer(Input=q97_volutefoam,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="FR">
</span><span lang="EN-US">SeedSource=plane1)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1.SelectInputVectors = ['POINTS', 'U']</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># Properties modified on particleTracer1</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1.StaticSeeds = 1</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1.StaticMesh = 1</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># show data in view</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1Display = Show(particleTracer1, renderView1)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># trace defaults for the display properties.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="FR">particleTracer1Display.ColorArrayName = ['POINTS', 'p']</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="FR">particleTracer1Display.LookupTable = pLUT</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1Display.SelectInputVectors = ['POINTS', 'U']</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1Display.WriteLog = ''</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># hide data in view</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Hide(q97_volutefoam, renderView1)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># hide data in view</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Hide(plane1, renderView1)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"># show color bar/color legend</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1Display.SetScalarBarVisibility(renderView1, True)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Per Adamsen</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">
http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>