[Paraview] compiling ParaView on Windows
I'm on a project to add a new Reader to ParaView, and have successfully gotten it working as a Plugin on linux. Now I need to do this for Windows. A few questions: 1) Can I compile my plugin as a DLL, that can be loaded with the downloaded windows binary? 2) Is that version compiled with MinGW or Visual Studio? 3) If it's Visual Studio, can it use the QT compiled with MinGW? I see that to get QT compiled with Visual Studio, I have to have the Commercial Version, not the Open Source version. Randall Hand Visualization Scientist ERDC MSRC-ITL ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] compiling ParaView on Windows
Actually, the latest Qt 4.4.x supports the free versions of Visual Studio so you can compile the OpenSource version of Qt with Visual Studio Express. The ParaView devs can answer the rest of the questions with more authority but if you were to try to compile against the downloaded version of ParaView you would have to match their version of visual studio and Qt which is entirely possible. I have found that compiling Qt 4.4.2 on windows is now straight forward and the build of ParaView after that is just as straight forward.. unless you have an older machine then it just takes a llloonnnggg time to compile everything. On my 2.6Ghz Core 2 Duo with 2GB ram I think Qt 4 is taking a few hours to compile. Mike Jackson BlueQuartz Software On Wed, Sep 24, 2008 at 10:57 AM, Randall Hand [EMAIL PROTECTED] wrote: I'm on a project to add a new Reader to ParaView, and have successfully gotten it working as a Plugin on linux. Now I need to do this for Windows. A few questions: 1) Can I compile my plugin as a DLL, that can be loaded with the downloaded windows binary? 2) Is that version compiled with MinGW or Visual Studio? 3) If it's Visual Studio, can it use the QT compiled with MinGW? I see that to get QT compiled with Visual Studio, I have to have the Commercial Version, not the Open Source version. Randall Hand Visualization Scientist ERDC MSRC-ITL ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] compiling ParaView on Windows
Last I heard, ParaView was very specific about requiring QT 4.3.5 .. Is this no longer the case? fyi, I need to compile PV3.2.3, not the latest CVS. Randall Hand Visualization Scientist ERDC MSRC-ITL On Wed, Sep 24, 2008 at 10:07 AM, Mike Jackson [EMAIL PROTECTED]wrote: Actually, the latest Qt 4.4.x supports the free versions of Visual Studio so you can compile the OpenSource version of Qt with Visual Studio Express. The ParaView devs can answer the rest of the questions with more authority but if you were to try to compile against the downloaded version of ParaView you would have to match their version of visual studio and Qt which is entirely possible. I have found that compiling Qt 4.4.2 on windows is now straight forward and the build of ParaView after that is just as straight forward.. unless you have an older machine then it just takes a llloonnnggg time to compile everything. On my 2.6Ghz Core 2 Duo with 2GB ram I think Qt 4 is taking a few hours to compile. Mike Jackson BlueQuartz Software On Wed, Sep 24, 2008 at 10:57 AM, Randall Hand [EMAIL PROTECTED] wrote: I'm on a project to add a new Reader to ParaView, and have successfully gotten it working as a Plugin on linux. Now I need to do this for Windows. A few questions: 1) Can I compile my plugin as a DLL, that can be loaded with the downloaded windows binary? 2) Is that version compiled with MinGW or Visual Studio? 3) If it's Visual Studio, can it use the QT compiled with MinGW? I see that to get QT compiled with Visual Studio, I have to have the Commercial Version, not the Open Source version. Randall Hand Visualization Scientist ERDC MSRC-ITL ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] compiling ParaView on Windows
I think it complains with a warning. Qt 4.3.5 can be compiled with VS2005 express and probably VS2008 Express although 2008 is not officially supported. So basically pull the sources for Qt 4.3.5 and compile with VS Express, then pull the PV sources and compile that. Should work. I think I had that for a while in the summer without a problem. Mike On Wed, Sep 24, 2008 at 11:10 AM, Randall Hand [EMAIL PROTECTED] wrote: Last I heard, ParaView was very specific about requiring QT 4.3.5 .. Is this no longer the case? fyi, I need to compile PV3.2.3, not the latest CVS. Randall Hand Visualization Scientist ERDC MSRC-ITL On Wed, Sep 24, 2008 at 10:07 AM, Mike Jackson [EMAIL PROTECTED] wrote: Actually, the latest Qt 4.4.x supports the free versions of Visual Studio so you can compile the OpenSource version of Qt with Visual Studio Express. The ParaView devs can answer the rest of the questions with more authority but if you were to try to compile against the downloaded version of ParaView you would have to match their version of visual studio and Qt which is entirely possible. I have found that compiling Qt 4.4.2 on windows is now straight forward and the build of ParaView after that is just as straight forward.. unless you have an older machine then it just takes a llloonnnggg time to compile everything. On my 2.6Ghz Core 2 Duo with 2GB ram I think Qt 4 is taking a few hours to compile. Mike Jackson BlueQuartz Software On Wed, Sep 24, 2008 at 10:57 AM, Randall Hand [EMAIL PROTECTED] wrote: I'm on a project to add a new Reader to ParaView, and have successfully gotten it working as a Plugin on linux. Now I need to do this for Windows. A few questions: 1) Can I compile my plugin as a DLL, that can be loaded with the downloaded windows binary? 2) Is that version compiled with MinGW or Visual Studio? 3) If it's Visual Studio, can it use the QT compiled with MinGW? I see that to get QT compiled with Visual Studio, I have to have the Commercial Version, not the Open Source version. Randall Hand Visualization Scientist ERDC MSRC-ITL ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Unstructured Grids
That is a pretty open ended question. Unstructured grids are defined by an array of point coordinates and a separate array of cell topologies. In your case, the list of points will simply correspond to each particle, and each cell will be a 0D cell (a vertex) that points to a single point. There are actually two types of unstructured data supported, poly data and unstructured grid. All things being equal, I would probably use the poly data type because you won't have to identify each cell type. ParaView supports multiple file formats for this type of data. One you can use is the legacy data format. It's not an optimal file format, but it's easy to make these files and the documentation is readily available from the VTK User's Guide and the ParaView wiki ((http://www.paraview.org/Wiki/images/5/51/VTK-File-Formats.pdf). This format does not support time natively, but you can write out a sequence of files with incremental numbering, and ParaView will read that as a time series. The files could look something like the following (with the .. replaced with an appropriate value). # vtk DataFile Version 2.0 A descriptive comment ASCII DATASET POLYDATA POINTS num_particles double P0x P0y P0z P1x P1y P1z ... Pn-1x Pn-1y Pn-1z VERTICES num_particles 2*num_particles 1 0 1 1 ... 1 n-1 POINT_DATA num_particles SCALARS field_name double 1 LOOKUP_TABLE default S0 S1 ... Sn-1 -Ken On 9/24/08 3:18 AM, christopher mccabe [EMAIL PROTECTED] wrote: Hi I am new to using Paraview and would like some assistance if possible. I am researching particle dynamics and need to create files for unstructured grids. For the moment as I have just started all I have are particle locations, but I will later require several physcial variables for view. So I have a problem in which X number of particles are initially static and after an initial shock the particles dissipate. I would like to view the simulation of this by a Paraview animation of the particle locations recorded at fixed time intervals. What do I need to write in the vtk file for this , and why? I am using Paraview 3.2.2 Thanks in advance Chris _ Discover Bird's Eye View now with Multimap from Live Search http://clk.atdmt.com/UKM/go/111354026/direct/01/ ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: [EMAIL PROTECTED] ** *** ** phone: (505) 844-8919 *** fax: (505) 845-0833 ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] python scripts
That's weird. from paraview import servermanager should work from all the 3 locations client, pvbatch or pvpython. Can you try the following script and print your path in all the three applications? import sys print sys.path Utkarsh Patrick Shinpaugh wrote: Hi, I've been writing some python scripts and running them through the paraview GUI. I start the scripts with from paraview import servermanager When I use pvpython or pvbatch to run the same scripts I receive an error: [project] pvpython paraview.py Traceback (most recent call last): File paraview.py, line 1, in module from paraview import servermanager File /home/project/paraview.py, line 1, in module from paraview import servermanager ImportError: cannot import name servermanager After messing with this for a while I finally tried: import servermanager which worked. Question: Why is there a difference in the way the servermanager is imported between paraview gui and pvpython/pvbatch? Have other people run across this issue? This is version 3.2.2. Is it possible there is something wrong my build? If this is something I just have to live with, is there a way to prevent the error from closing the script/interpreter, check to see if the first import failed and then run the second import? Thanks, Pat ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] python scripts
I created the script you posted. The results of each are displayed below: pvpython ~/paraview-test-path.py ['/home/project', '/usr/local/ParaView-3.2.2/lib/paraview-3.2', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', /usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/usr/lib/python2.5/site-packages/gtk-2.0'] pvbatch ~/paraview-test-path.py ['/home/project', '/usr/local/ParaView-3.2.2/lib/paraview-3.2', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', /usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', /usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/usr/lib/python2.5/site-packages/gtk-2.0'] from paraview gui - tools/python shell/run script ['/usr/local/ParaView-3.2.2/lib/paraview-3.2', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', /usr/lib/python2.5/lib-dynload', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', /usr/lib/python2.5/site-packages/PIL', /usr/lib/python2.5/site-packages/gst-0.10', '/usr/lib/python2.5/site-packages/gtk-2.0'] Interestingly, the only difference is the home directory at the beginning for pvbatch/pvpython... Any ideas? Pat Utkarsh Ayachit wrote: That's weird. from paraview import servermanager should work from all the 3 locations client, pvbatch or pvpython. Can you try the following script and print your path in all the three applications? import sys print sys.path Utkarsh Patrick Shinpaugh wrote: Hi, I've been writing some python scripts and running them through the paraview GUI. I start the scripts with from paraview import servermanager When I use pvpython or pvbatch to run the same scripts I receive an error: [project] pvpython paraview.py Traceback (most recent call last): File paraview.py, line 1, in module from paraview import servermanager File /home/project/paraview.py, line 1, in module from paraview import servermanager ImportError: cannot import name servermanager After messing with this for a while I finally tried: import servermanager which worked. Question: Why is there a difference in the way the servermanager is imported between paraview gui and pvpython/pvbatch? Have other people run across this issue? This is version 3.2.2. Is it possible there is something wrong my build? If this is something I just have to live with, is there a way to prevent the error from closing the script/interpreter, check to see if the first import failed and then run the second import? Thanks, Pat -- Patrick Shinpaugh Virginia Tech UVAG System Administrator/Programmer 540-231-2054 ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
[Paraview] How to write out data
Hi I am trying to plot 2d graph on gunplot. But i am facing problem while writing out the data from paraview. Can you please help me how to write data from paraview and if you know please tell me in which format i need to write it for gunplot. - Velan ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview