<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>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. <br><br></div>As for building ParaView, you may want to look into using the ParaView Superbuild (<a 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.<br><br></div>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.<br><br></div>Best,<br></div>Andy <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 26, 2017 at 9:53 AM, 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="#0563C1" vlink="#954F72" lang="DE">
<div class="m_-2348538213397004740WordSection1">
<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.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></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:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">coprocessor.UpdateProducers(<wbr>datadescription)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"># Write output data, if appropriate.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">coprocessor.WriteData(<wbr>datadescription);<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"># Live Visualization, if enabled.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">coprocessor.<wbr>DoLiveVisualization(<wbr>datadescription, "localhost", 22222)
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">We tried the following:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">//INITIALIZE<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">vtkNew<vtkLiveInsituLink> link;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">vtkSMProxyManager* proxyManager;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">vtkSMSessionProxyManager* sessionProxyManager;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">link -> SetInsituPort(22222);<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">link -> SetHostname("localhost");<u></u><u></u></span></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"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">// Initialize returns 1, therefore connection established properly<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">//Then we tried to coprocess with the following code:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">vtkNew<vtkXMLPImageDataWriter> writer;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">writer->SetInputConnection(<wbr>producer->GetOutputPort());<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">vtkSMProxy* proxy = sessionProxyManager->NewProxy(<wbr>"insitu_writer_parameters","<wbr>XMLPImageDataWriter");<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">vtkSMInputProperty* property = (vtkSMInputProperty*) proxy -> GetProperty("Input");<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">//set input of proxy to our writer or datadescription – DOESN’T WORK<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">while(true){<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">  link->InsituUpdate(<wbr>dataDescription->GetTime(), dataDescription->GetTimeStep()<wbr>);<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">  //update pipeline<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">  link->InsituPostProcess(<wbr>dataDescription->GetTime(), dataDescription->GetTimeStep()<wbr>);<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">  if(link->GetSimulationPaused()<wbr>){<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">    if(link->WaitForLiveChange()){<u></u><u></u></span></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"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">So how are we supposed to get the data from our simulation into the Proxy?<u></u><u></u></span></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.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">We would really appreciate some help ;-)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Simon Kohlhase<u></u><u></u></span></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>