<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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">
http://openfoamwiki.net/index.php/HowTo_use_particle_tracer_in_paraFoam</a>. <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></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. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have tried the following 64-bit version:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3.98.1 on Win7<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">4.4.0 on Win7<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">4.2.0 on Linux HPC cluster<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></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.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Are there any restriction to the data which can be used?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The following is the trace right up to pressing ‘Play’:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#### import the simple module from the paraview<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">from paraview.simple import *<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#### disable automatic camera reset on 'Show'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">paraview.simple._DisableFirstRenderCameraReset()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># get active source.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoam = GetActiveSource()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># Properties modified on q97_volutefoam<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoam.CaseType = 'Decomposed Case'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># get active view<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">renderView1 = GetActiveViewOrCreate('RenderView')<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># uncomment following to set a specific view size<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># renderView1.ViewSize = [1025, 773]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># get color transfer function/color map for 'p'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">pLUT = GetColorTransferFunction('p')<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># show data in view<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay = Show(q97_volutefoam, renderView1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># trace defaults for the display properties.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.ColorArrayName = ['POINTS', 'p']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.LookupTable = pLUT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.ScalarOpacityUnitDistance = 0.01089979797382614<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.SelectInputVectors = ['POINTS', 'U']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.WriteLog = ''<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># reset view to fit data<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">renderView1.ResetCamera()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># show color bar/color legend<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoamDisplay.SetScalarBarVisibility(renderView1, True)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># get animation scene<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">animationScene1 = GetAnimationScene()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># update animation scene based on data timesteps<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">animationScene1.UpdateAnimationUsingDataTimeSteps()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># get opacity transfer function/opacity map for 'p'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">pPWF = GetOpacityTransferFunction('p')<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># create a new 'Plane'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">plane1 = Plane()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># Properties modified on q97_volutefoam<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">q97_volutefoam.CellArrays = ['U', 'k', 'nut', 'omega', 'p', 'gradP', 'myPtot', 'myYPlus', 'uPlus', 'y', 'yPlus']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># Properties modified on plane1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">plane1.XResolution = 100<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">plane1.YResolution = 100<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># show data in view<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">plane1Display = Show(plane1, renderView1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># trace defaults for the display properties.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">plane1Display.ColorArrayName = [None, '']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">plane1Display.SelectInputVectors = ['POINTS', 'Normals']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">plane1Display.WriteLog = ''<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># create a new 'ParticleTracer'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">particleTracer1 = ParticleTracer(Input=q97_volutefoam,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"> </span><span lang="EN-US">SeedSource=plane1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1.SelectInputVectors = ['POINTS', 'U']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># Properties modified on particleTracer1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1.StaticSeeds = 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1.StaticMesh = 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># show data in view<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1Display = Show(particleTracer1, renderView1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># trace defaults for the display properties.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">particleTracer1Display.ColorArrayName = ['POINTS', 'p']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">particleTracer1Display.LookupTable = pLUT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1Display.SelectInputVectors = ['POINTS', 'U']<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1Display.WriteLog = ''<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># hide data in view<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hide(q97_volutefoam, renderView1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># hide data in view<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hide(plane1, renderView1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"># show color bar/color legend<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">particleTracer1Display.SetScalarBarVisibility(renderView1, True)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Per Adamsen</span><o:p></o:p></p>
</div>
</body>
</html>