<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1486021371565_15511"><span>Hi Andy, <br></span></div><div id="yui_3_16_0_ym19_1_1486021371565_15599"><br><span></span></div><div id="yui_3_16_0_ym19_1_1486021371565_15563"><span id="yui_3_16_0_ym19_1_1486021371565_16068">Thanks for your reply.</span></div><div id="yui_3_16_0_ym19_1_1486021371565_15598"><br><span></span></div><div id="yui_3_16_0_ym19_1_1486021371565_15833"><span id="yui_3_16_0_ym19_1_1486021371565_15832">I think you've mixed my question up with someone else´s.</span></div><div id="yui_3_16_0_ym19_1_1486021371565_15917"><span id="yui_3_16_0_ym19_1_1486021371565_15916">I still have the problem with data-visualization (data are read but not visualized).</span></div><div id="yui_3_16_0_ym19_1_1486021371565_16074"><br><span id="yui_3_16_0_ym19_1_1486021371565_15916"></span></div><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> Andy Bauer <andy.bauer@kitware.com> schrieb am 19:02 Dienstag, 31.Januar 2017:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv6164780938"><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 rel="nofollow" target="_blank" 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="yiv6164780938gmail_extra"><br><div class="yiv6164780938gmail_quote">On Thu, Jan 26, 2017 at 12:29 PM, Kohlhase, Simon <span dir="ltr"><<a rel="nofollow" ymailto="mailto:simon.kohlhase@tum.de" target="_blank" href="mailto:simon.kohlhase@tum.de">simon.kohlhase@tum.de</a>></span> wrote:<br><blockquote class="yiv6164780938gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="DE">
<div class="yiv6164780938m_-127956791296691129WordSection1">
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;">Hi,<u></u><u></u></span></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;"><u></u> <u></u></span></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;" lang="EN-GB">thanks a lot for the quick respons.<u></u><u></u></span></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;" lang="EN-GB">At least now we know that there’s no point to keep on trying.<u></u><u></u></span></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;" lang="EN-GB"><u></u> <u></u></span></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;" lang="EN-GB">I’ll try to build and install it myself then.<u></u><u></u></span></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;" lang="EN-GB"><u></u> <u></u></span></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;" 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></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;" lang="EN-GB"><u></u> <u></u></span></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;" lang="EN-GB">Best regards,<u></u><u></u></span></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;" lang="EN-GB">Simon<u></u><u></u></span></div>
<div class="yiv6164780938MsoNormal"><span style="font-size:11.0pt;" lang="EN-GB"><u></u> <u></u></span></div>
<div class="yiv6164780938MsoNormal"><b><span style="font-size:11.0pt;" lang="EN-US">From:</span></b><span style="font-size:11.0pt;" lang="EN-US"> Andy Bauer [mailto:<a rel="nofollow" ymailto="mailto:andy.bauer@kitware.com" target="_blank" href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a> ]
<br>
<b>Sent:</b> Donnerstag, 26. Januar 2017 16:22<br>
<b>To:</b> Kohlhase, Simon <<a rel="nofollow" ymailto="mailto:simon.kohlhase@tum.de" target="_blank" href="mailto:simon.kohlhase@tum.de">simon.kohlhase@tum.de</a>><br>
<b>Cc:</b> <a rel="nofollow" ymailto="mailto:paraview@paraview.org" target="_blank" href="mailto:paraview@paraview.org">paraview@paraview.org</a>; <a rel="nofollow" ymailto="mailto:felix.hennerkes@gmail.com" target="_blank" href="mailto:felix.hennerkes@gmail.com">felix.hennerkes@gmail.com</a>; Damerow, David <<a rel="nofollow" ymailto="mailto:david.damerow@tum.de" target="_blank" href="mailto:david.damerow@tum.de">david.damerow@tum.de</a>><br>
<b>Subject:</b> Re: [Paraview] Paraview Live Visualisation C++ Pipeline<u></u><u></u></span></div><div><div class="yiv6164780938h5">
<div class="yiv6164780938MsoNormal"><u></u> <u></u></div>
<div>
<div>
<div>
<div>
<div>
<div>
<div class="yiv6164780938MsoNormal" style="margin-bottom:12.0pt;">Hi,<u></u><u></u></div>
</div>
<div class="yiv6164780938MsoNormal" 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></div>
</div>
<div class="yiv6164780938MsoNormal" style="margin-bottom:12.0pt;">As for building ParaView, you may want to look into using the ParaView Superbuild (<a rel="nofollow" target="_blank" href="https://gitlab.kitware.com/paraview/paraview-superbuild/">https://gitlab.kitware.com/ 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></div>
</div>
<div class="yiv6164780938MsoNormal" 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></div>
</div>
<div class="yiv6164780938MsoNormal">Best,<u></u><u></u></div>
</div>
<div class="yiv6164780938MsoNormal">Andy <u></u><u></u></div>
</div>
<div>
<div class="yiv6164780938MsoNormal"><u></u> <u></u></div>
<div>
<div class="yiv6164780938MsoNormal">On Thu, Jan 26, 2017 at 9:53 AM, Kohlhase, Simon <<a rel="nofollow" ymailto="mailto:simon.kohlhase@tum.de" target="_blank" href="mailto:simon.kohlhase@tum.de">simon.kohlhase@tum.de</a>> wrote:<u></u><u></u></div>
<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>
<div class="yiv6164780938MsoNormal">Hi,<u></u><u></u></div>
<div class="yiv6164780938MsoNormal"> <u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><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></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><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></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">coprocessor.UpdateProducers( datadescription)</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"># Write output data, if appropriate.</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">coprocessor.WriteData( datadescription);</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"># Live Visualization, if enabled.</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">coprocessor. DoLiveVisualization( datadescription, "localhost", 22222)
</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">We tried the following:</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">//INITIALIZE</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">vtkNew<vtkLiveInsituLink> link;</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">vtkSMProxyManager* proxyManager;</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">vtkSMSessionProxyManager* sessionProxyManager;</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">link -> SetInsituPort(22222);</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">link -> SetHostname("localhost");</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal">proxyManager = vtkSMProxyManager:: GetProxyManager();<u></u><u></u></div>
<div class="yiv6164780938MsoNormal">sessionProxyManager = proxyManager-> GetActiveSessionProxyManager() ;<u></u><u></u></div>
<div class="yiv6164780938MsoNormal">link -> Initialize( sessionProxyManager);<u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">// Initialize returns 1, therefore connection established properly</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">//Then we tried to coprocess with the following code:</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">vtkNew<vtkXMLPImageDataWriter> writer;</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">writer->SetInputConnection( producer->GetOutputPort());</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">vtkSMProxy* proxy = sessionProxyManager->NewProxy( "insitu_writer_parameters"," XMLPImageDataWriter");</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">vtkSMInputProperty* property = (vtkSMInputProperty*) proxy -> GetProperty("Input");</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">//set input of proxy to our writer or datadescription – DOESN’T WORK</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">while(true){</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> link->InsituUpdate( dataDescription->GetTime(), dataDescription->GetTimeStep() );</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> //update pipeline</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> link->InsituPostProcess( dataDescription->GetTime(), dataDescription->GetTimeStep() );</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> if(link->GetSimulationPaused() ){</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> if(link->WaitForLiveChange()){</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">
</span>break;<u></u><u></u></div>
<div class="yiv6164780938MsoNormal"> }<u></u><u></u></div>
<div class="yiv6164780938MsoNormal"> } else{<u></u><u></u></div>
<div class="yiv6164780938MsoNormal"> break;<u></u><u></u></div>
<div class="yiv6164780938MsoNormal">}<u></u><u></u></div>
<div class="yiv6164780938MsoNormal"> }<u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">So how are we supposed to get the data from our simulation into the Proxy?</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><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></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">We would really appreciate some help ;-)</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">Best regards,</span><u></u><u></u></div>
<div class="yiv6164780938MsoNormal"><span lang="EN-GB">Simon Kohlhase</span><u></u><u></u></div>
</div>
</div>
<div class="yiv6164780938MsoNormal" style="margin-bottom:12.0pt;"><br>
______________________________ _________________<br>
Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">
http://www.kitware.com/ opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a rel="nofollow" target="_blank" href="http://paraview.org/Wiki/ParaView">
http://paraview.org/Wiki/ ParaView</a><br>
<br>
Search the list archives at: <a rel="nofollow" target="_blank" href="http://markmail.org/search/?q=ParaView">
http://markmail.org/search/?q= ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" target="_blank" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/ mailman/listinfo/paraview</a><u></u><u></u></div>
</blockquote>
</div>
<div class="yiv6164780938MsoNormal"><u></u> <u></u></div>
</div>
</div></div></div>
</div>
</blockquote></div><br></div></div><br>_______________________________________________<br>Powered by www.kitware.com<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><br><br><br></div> </div> </div> </div></div></body></html>