<div dir="ltr"><div><div><div><div>Hi,<br><br></div>Please keep the discussion on the mailing list so that anyone can participate (also, stuff gets lost in my Inbox too).<br><br></div>The ParaView Catalyst Users Guide at <a href="http://www.paraview.org/files/catalyst/docs/ParaViewCatalystUsersGuide_v2.pdf">http://www.paraview.org/files/catalyst/docs/ParaViewCatalystUsersGuide_v2.pdf</a> has information on how to use the Live functionality. It's in Section 2.3.<br><br></div>Best,<br></div>Andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 26, 2017 at 12:29 PM, Kohlhase, Simon <span dir="ltr"><<a href="mailto:simon.kohlhase@tum.de" target="_blank">simon.kohlhase@tum.de</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="DE">
<div class="m_-127956791296691129WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB">thanks a lot for the quick respons.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB">At least now we know that there’s no point to keep on trying.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB">I’ll try to build and install it myself then.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB">Is there any previous thread where I can find out more about the simulation + catalyst linking to a parallel server?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB">Simon<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-GB"><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><wbr>]
<br>
<b>Sent:</b> Donnerstag, 26. Januar 2017 16:22<br>
<b>To:</b> Kohlhase, Simon <<a href="mailto:simon.kohlhase@tum.de" target="_blank">simon.kohlhase@tum.de</a>><br>
<b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>; <a href="mailto:felix.hennerkes@gmail.com" target="_blank">felix.hennerkes@gmail.com</a>; Damerow, David <<a href="mailto:david.damerow@tum.de" target="_blank">david.damerow@tum.de</a>><br>
<b>Subject:</b> Re: [Paraview] Paraview Live Visualisation C++ Pipeline<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Currently the Live functionality only works when ParaView is built with Python bindings. My suggestion would be to build ParaView yourself. That should be much easier than trying to put in a C++ pipeline that
can deal with the Live functionality properly. <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">As for building ParaView, you may want to look into using the ParaView Superbuild (<a href="https://gitlab.kitware.com/paraview/paraview-superbuild/" target="_blank">https://gitlab.kitware.com/<wbr>paraview/paraview-superbuild/</a>)
which will also build all needed dependencies. The dependencies are probably all there though since you've said that ParaView is already installed there.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I'm not sure the set up you're looking for but if you want to run with the simulation+Catalyst linking to a parallel pvserver on the cluster which then connects to a client, you may want to use ParaView master.
The reason for this is that there was a bug that had all of the simulation+Catalyst nodes only being able to communicate with a single pvserver node (multiple pvserver processes though). If you only want to connect the simulation+Catalyst to the GUI client
or pvserver processes on a single node then 5.2 should work fine for you.<u></u><u></u></p>
</div>
<p class="MsoNormal">Best,<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 Thu, Jan 26, 2017 at 9:53 AM, Kohlhase, Simon <<a href="mailto:simon.kohlhase@tum.de" target="_blank">simon.kohlhase@tum.de</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">Hi,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">for a University Project we’re trying to run Paraview Live Simulation on the local cluster-network. Unfortunately the network only has a Paraview version without
python-binding installed, therefore we would like to run the LiveSimulation with a C++-coded Pipeline Skript.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">As far as we understood, to make it work we have to rewrite the following lines from the PythonPipeline Script to C++, which turns out to be quite challenging:</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">coprocessor.UpdateProducers(<wbr>datadescription)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"># Write output data, if appropriate.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">coprocessor.WriteData(<wbr>datadescription);</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"># Live Visualization, if enabled.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">coprocessor.<wbr>DoLiveVisualization(<wbr>datadescription, "localhost", 22222)
</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">We tried the following:</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">//INITIALIZE</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">vtkNew<vtkLiveInsituLink> link;</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">vtkSMProxyManager* proxyManager;</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">vtkSMSessionProxyManager* sessionProxyManager;</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">link -> SetInsituPort(22222);</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">link -> SetHostname("localhost");</span><u></u><u></u></p>
<p class="MsoNormal">proxyManager = vtkSMProxyManager::<wbr>GetProxyManager();<u></u><u></u></p>
<p class="MsoNormal">sessionProxyManager = proxyManager-><wbr>GetActiveSessionProxyManager()<wbr>;<u></u><u></u></p>
<p class="MsoNormal">link -> Initialize(<wbr>sessionProxyManager);<u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">// Initialize returns 1, therefore connection established properly</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">//Then we tried to coprocess with the following code:</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">vtkNew<vtkXMLPImageDataWriter> writer;</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">writer->SetInputConnection(<wbr>producer->GetOutputPort());</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">vtkSMProxy* proxy = sessionProxyManager->NewProxy(<wbr>"insitu_writer_parameters","<wbr>XMLPImageDataWriter");</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">vtkSMInputProperty* property = (vtkSMInputProperty*) proxy -> GetProperty("Input");</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">//set input of proxy to our writer or datadescription – DOESN’T WORK</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">while(true){</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> link->InsituUpdate(<wbr>dataDescription->GetTime(), dataDescription->GetTimeStep()<wbr>);</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> //update pipeline</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> link->InsituPostProcess(<wbr>dataDescription->GetTime(), dataDescription->GetTimeStep()<wbr>);</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> if(link->GetSimulationPaused()<wbr>){</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> if(link->WaitForLiveChange()){</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">
</span>break;<u></u><u></u></p>
<p class="MsoNormal"> }<u></u><u></u></p>
<p class="MsoNormal"> } else{<u></u><u></u></p>
<p class="MsoNormal"> break;<u></u><u></u></p>
<p class="MsoNormal">}<u></u><u></u></p>
<p class="MsoNormal"> }<u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">So how are we supposed to get the data from our simulation into the Proxy?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">We have been trying and searching the documentation for the right functions, but we can’t figure out how to do it.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">We would really appreciate some help ;-)</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">Best regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">Simon Kohlhase</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<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/<wbr>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/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">
http://markmail.org/search/?q=<wbr>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/<wbr>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><br></div>