Hi Rich,<br><br>The command line will be:<br><br>mpirun -np 1 /path/to/pvbatch /path/to/script.py<br><br><br>The pvbatch executable is similar to pvserver, except proc 0 doesn't wait for a client connection, it reads the python script specified on the command line and executes the script as if it were instructions from a client. The script will be read and interpreted on proc 0, but the processing will be carried out by all the satellite procs, just like pvserver.<br>
<br>I'd recommend starting with a script that is very simple, like:<br><br># testSphere.py<br><br>from paraview.simple import *<br><br>Sphere()<br>writer = XMLPPolyDataWriter(FileName='sphere.pvtp')<br>writer.UpdatePipeline()<br>
<br><br>Try getting that to work using -np 1, then try -np 2, you should find pieces of there sphere written by both processes.<br><br>Pat<br><br>p.s. If your data is unstructured grid, then your writer would be a XMLPUnstructuredGridWriter. Also, I'm not sure if the name should be "XMLP..." or "XMLPartitioned..."<br>
<br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 11:48 AM, Cook, Rich <span dir="ltr"><<a href="mailto:cook47@llnl.gov" target="_blank">cook47@llnl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello, ParaView genii,<br>
<br>
I would like to run ParaView to view some data in parallel using the following script from a user as a basis. Â I'm not sure how to do this right. Â I've never scripted Paraview before, and am thus clueless how to make it work. Â Can someone on this list tell me how Paraview scripting with MPI works or point me to a tutorial on your massive tutorial pages? Â The data is very large and it would be great to decompose the data across the cluster.<br>
<br>
Thanks!<br>
<br>
try: paraview.simple<br>
except: from paraview.simple import *<br>
paraview.simple._DisableFirstRenderCameraReset()<br>
<br>
filein = XMLPartitionedUnstructuredGridReader( FileName=['/p/lscratchd/bodart1/test_para/duct.020000.pvtu'] )<br>
<br>
Slice1 = Slice( SliceType="Plane" )<br>
<br>
Slice1.SliceOffsetValues = [0.0]<br>
Slice1.SliceType.Origin = [0.0,0.0,0.0]<br>
Slice1.SliceType.Normal = [0.0,0.0,1.0]<br>
Slice1.SliceType = "Plane"<br>
<br>
CleantoGrid1 = CleantoGrid()<br>
<br>
<br>
CellDatatoPointData1 = CellDatatoPointData()<br>
<br>
w.FileName="test_slice.vtu"<br>
w.UpdatePipeline()<br>
<br>
<br>
--<br>
âœRichard Cook<br>
✇ Lawrence Livermore National Laboratory<br>
Bldg-453 Rm-4024, Mail Stop L-557<br>
7000 East Avenue, Â Livermore, CA, 94550, USA<br>
☎ (office) (925) 423-9605<br>
☎ (fax) (925) 423-6961<br>
---<br>
Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.<br>
(opinions expressed herein are mine and not those of LLNL)<br>
<br>
<br>
<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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>