Re: [Paraview] exporting selection labels to an SVG as editable/movable text-objects
Hi Dave, Many thanks for Your quick answer. I checked exporting the labels of selections, where the text export works as expected (SVG attached). For using Paraview SVG export in latex it would still be very nice to have the same export functionality for the cube axes. Should I reopen the former feature-request/fix or open a new one just to keep track in the system should the VTK implementation become stable? Many thanks for Your help. Roman On 05/06/14 15:40, David Lonie wrote: Hi Roman, Aha, the cube axis actors are still using vtkVectorText to render the text. vtkVectorText is a text source that produces polydata to forms the characters of the text string, and the actual text information is lost by the time the SVG exporter processes the actors. There was an effort in VTK to convert the cube axes to use vtkTextActor3D, which would allow proper text exporting, but this is disabled in ParaView, and I believe it is only experimental at this point. So unfortunately, this is the best it gets for that particular text source at the moment. Sorry for the misinformation earlier -- I thought you were referring to a ParaView text source, which should export as editable text. Dave On Thu, Jun 5, 2014 at 8:57 AM, Dr. Roman Grothausmann grothausmann.ro...@mh-hannover.de mailto:grothausmann.ro...@mh-hannover.de wrote: Hi Dave, Many thanks for Your reply. I tried this option, neither disabling nor enabling Render text as paths creates an SVG with editable text for me with paraview 4.1.0. See e.g. attached SVGs which show simply a cone where I enabled Show Axis. Opening theses with inkscape reveals that in both cases the text consist of triangles and not of text objects. Any idea what I could be doing wrong? Many thanks for looking into this. Roman On 22/05/14 14:11, David Lonie wrote: Hi Roman, On Thu, May 22, 2014 at 6:22 AM, Dr. Roman Grothausmann grothausmann.roman@mh-__hannover.de mailto:grothausmann.ro...@mh-hannover.de wrote: Many thanks for fixing the Label exporter issue. It does work with 4.1 to get the text exported into e.g. an SVG. However, the text is always rendered as paths (always consists of triangles). Is it also possible to have the text being exported as actual text-fields (like e.g. gnuplot does) that can be edited with the text-tool in e.g. inkscape? There is an checkbox in the export options Render text as paths (see http://www.kitware.com/blog/__home/post/508 http://www.kitware.com/blog/home/post/508 ). It's enabled by default for portability, but disabling this option should do what you need. Hope this helps, Dave -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut für Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-9574 tel:%2B49%20511%20532-9574 -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut für Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-9574 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] Memory explosion and strange behavior -- Linux -- 'clip' -- 360 MB file needs 60 GB ??
Concerning the clipping of volume data when doing volume rendering is done more precise in paraview than often necessary: even individual voxels are clipped. With such large data this is likely not visible at all. I therefore tried to use the vtkImplicitFunctionToImageStencil to create a paraview plugin. Sadly so far that can only be done outside paraview. See this thread: http://www.paraview.org/pipermail/paraview/2013-August/028988.html and on mantis: http://www.paraview.org/Bug/view.php?id=14236 Best wishes Roman On 02/06/14 19:11, Scott, W Alan wrote: Not replying to your specific questions below, but ... you have some pretty large data here! It is amazing how a fairly small cell count on the edge of your data (for instance X axis) can become huge when you add a Y axis and Z axis. You have about 375 million cells. If you were able to volume render that on a local server, one machine, I believe you have the world's record! Wow. Generally speaking, I sort of tell people that anything around thousands of cells is a toy, a million is real data (and you should start thinking about using a cluster for a back end), and a billion is hero size and you want some heavy iron to deal with it. Tens of billions, and especially trillions, pushes state of the art. If you are volume rendering, divide any of these numbers by 10. By the way, exascale will be in the trillions of cells. Some of the greatest minds in the world are still trying to figure out how to visualize data of this size. Alan -Original Message- From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of robert.atw...@diamond.ac.uk Sent: Monday, June 02, 2014 9:42 AM To: paraview@paraview.org Subject: [EXTERNAL] [Paraview] Memory explosion and strange behaviour -- Linux -- 'clip' -- 360 MB file needs 60 GB ?? Hi, I like volume viewing in Paraview 4.1.0 so far! But, when I try to use even what I consider a rather small subset of one image file that I work with normally, the large memory on my large memory workstation still gets used up. I am using Red Hat 6 on a system with 100 GB of Ram, adn a Quadro 6000 graphics card. I have compiled the Paraview code that I downloaded on Friday. The image I loaded is saved as raw unsinged 8-bit and is 860x872x501 voxels i.e. about 360 MB file. If I load it and then try to apply the 'clip' tool, the system is unresponsive for a few minutes. If I run 'top ' during this process I see the memory in use expand up to 60 GB , this seems excessive! Then, the resulting display behaves oddly, the clipped view suddenly 'vanishes' after moving the view around ?? -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut für Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-9574 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Crash of pvserver using pqActiveObjects::instance()
pqActiveObjects is not available on the server side. It's a construct used by the client alone to keep track of what's active. Where is this call being made? In a filter/reader/writer code? That's not recommended (rather possible). Utkarsh On Thu, Jun 5, 2014 at 9:03 AM, Christian Andreas christian.andr...@ipcms.unistra.fr wrote: Hello, I'm using an in-house written Plugin to read time dependent simulation data. The plugin has an option to reposition the camera during the RequestData routine in order to keep the focus on the centre of a moving structure of interest. For that purpose we use the pqActiveObjects::instance() singleton. As long as the plugin is used to read the data without involving a pvserver (using Paraview only), everything works as expected. But if the data is processed with a pvserver, a call of pqActiveObjects* tempInstance = ( pqActiveObjects::instance() ); results in a crash of the server. We use Paraview 4.0.1 64bit on ubuntu 12.04 systems. And paraview is configured to render remotely with a Remote Render Threshold of 0MBytes. Is this kind of repositioning illegal and works just accidentally in the case of local execution or is there a way to solve this problem? Best regards Christian -- IPCMS - Department of Magnetic Objets on the NanoScale (DMONS) 23, rue du Loess BP 43 F-67034 STRASBOURG CEDEX 2 FRANCE Phone : (33) 3 88 10 70 84 Fax : (33) 3 88 10 72 49 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] exporting selection labels to an SVG as editable/movable text-objects
On Fri, Jun 6, 2014 at 3:17 AM, Dr. Roman Grothausmann grothausmann.ro...@mh-hannover.de wrote: Hi Dave, Many thanks for Your quick answer. I checked exporting the labels of selections, where the text export works as expected (SVG attached). For using Paraview SVG export in latex it would still be very nice to have the same export functionality for the cube axes. Should I reopen the former feature-request/fix or open a new one just to keep track in the system should the VTK implementation become stable? Feel free to open a new ticket in ParaView for exposing the vtkTextActor3D option for cube axes. Dave ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Linking Catalyst example samples with Catalyst
Hi Praveen, My suggestion would be to start with a build of ParaView 4.1. Build it with MPI, Python and Catalyst enabled (Catalyst should be enabled by default but MPI and Python need to be explicitly turned on). The Catalyst editions are meant to be subsets of ParaView that get rid of specific functionality that may not be needed for certain simulation runs. This helps for decreasing executable size but can make it slightly more confusing. See http://www.kitware.com/blog/home/post/606 for an explanation on that. At one time I tested the Catalyst examples with several of the editions but haven't tried it recently so it's possible that something broke. As for the Connect to Catalyst option in the ParaView GUI, I've never tested that with any of the Catalyst editions so it's possible that they don't work with the live in situ connection. Again, using a full ParaView 4.1 build should work here though. We're in the process of improving the line in situ connection right now for a project that ends in August. This should vastly improve the usability of this. I'm not sure I answered all of your questions but my goal was more to get you past some issues and then we can help you focus on the other parts that come up as well as making everything work more efficiently together. Regards, Andy On Fri, Jun 6, 2014 at 5:18 AM, Praveen Narayanan prave...@nvidia.com wrote: Greetings I am examining the example code for catalyst from Andy Bauer’s git repository (https://github.com/acbauer/CatalystExampleCode). I am trying to learn about the catalyst workflow before using it in my own in situ examples. To this end, I built catalyst from the nightly samples in the paraview download page (http://www.paraview.org/download/). However, I was unable to run the examples satisfactorily. 1) The method of extending the paraview source tree failed from the sources given in the above page (paraview 4.1) python catalyze.py -i Editions/Base -o ../catalyst_src fatal: Not a git repository (or any of the parent directories): .git Error: Command '['git', 'rev-parse', '--show-toplevel']' returned non-zero exit status 128 2) I tried two of the catalyst sources a. Base+python: This builds properly and links with the example code (CxxFullExample) b. Base+essentials+extras+python: This also builds and links with the example code, but I get the following runtime error: ERROR: In /home/praveen/projects/catalyst/failed/base+essentials+extras+python/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 565 vtkSIProxyDefinitionManager (0x12af110): No proxy that matches: group=animation and proxy=AnimationScene were found. ERROR: In /home/praveen/projects/catalyst/failed/base+essentials+extras+python/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 565 vtkSIProxyDefinitionManager (0x12af110): No proxy that matches: group=misc and proxy=GlobalMapperProperties were found. ERROR: In /home/praveen/projects/catalyst/failed/base+essentials+extras+python/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 565 vtkSIProxyDefinitionManager (0x12af110): No proxy that matches: group=misc and proxy=StrictLoadBalancing were found. ERROR: In /home/praveen/projects/catalyst/failed/base+essentials+extras+python/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 565 vtkSIProxyDefinitionManager (0x12af110): No proxy that matches: group=misc and proxy=ColorPalette were found. a) Logs: base+essentials+extras+python_CxxFullExample.log base+essentials+extras+python_CMakeLists.txt, 3) The build base+python runs the example code, but does not connect with catalyst. Furthermore, upon running make test to test with the sample python script in ‘SampleScripts’ (which basically invokes CxxFullExample with the python script as an input argument, I get errors stating that it cannot load some vtk modules, which upon looking turn out not to be built at all a. Logs: LastTest.log (python script), and base+python_CMakeLists.txt for the catalyst build. I would like to know what I am missing in these builds. It appears that some of the vtk modules are not being built: Error: Could not import vtkCommonComputationalGeometryPython Error: Could not import vtkRenderingCorePython Error: Cannot import vtkPVServerManagerDefaultPython Error: Cannot import vtkPVServerManagerRenderingPython Error: Cannot import vtkPVAnimationPython What is the correct way to get a working run for the examples supplied. Also, how do we connect to catalyst after this? My understanding is that we just load up paraview (4.1) and then the simulation would connect to catalyst after we hit ‘Connect to Catalyst’ and load up the ‘Coprocessing’ plugin. Does paraview have to be built from source? More specifically, is there a particular download version that might work, and what flags do we turn on
Re: [Paraview] Linking Catalyst example samples with Catalyst
On Fri, Jun 06, 2014 at 02:18:42 -0700, Praveen Narayanan wrote: I am examining the example code for catalyst from Andy Bauer’s git repository (https://github.com/acbauer/CatalystExampleCode). I am trying to learn about the catalyst workflow before using it in my own in situ examples. So, first, there is no requirement to use a Catalyst-the-build to use Catalyst-the-coprocessing-API. Catalyst builds are meant for use where a smaller ParaView is a better fit (super computing, lower memory constraints, etc.). The naming is indeed confusing :( . python catalyze.py -i Editions/Base -o ../catalyst_src fatal: Not a git repository (or any of the parent directories): .git Error: Command '['git', 'rev-parse', '--show-toplevel']' returned non-zero exit status 128 You can give `-r dir` to tell it the top-level of the source tree. Without it, it will try and find the top-level using git, which won't work for tarballs. I'll improve the error message. 2) I tried two of the catalyst sources a. Base+python: This builds properly and links with the example code (CxxFullExample) b. Base+essentials+extras+python: This also builds and links with the example code, but I get the following runtime error: When do these errors pop up? The Catalyst build trees are slimmed down ParaView builds and don't have everything under the sun included (e.g., animation classes are missing). If you need other classes, another edition should be made to include the required classes and proxies. 3) The build base+python runs the example code, but does not connect with catalyst. Furthermore, upon running make test to test with the sample python script in ‘SampleScripts’ (which basically invokes CxxFullExample with the python script as an input argument, I get errors stating that it cannot load some vtk modules, which upon looking turn out not to be built at all snip I would like to know what I am missing in these builds. It appears that some of the vtk modules are not being built: Error: Could not import vtkCommonComputationalGeometryPython Error: Could not import vtkRenderingCorePython Error: Cannot import vtkPVServerManagerDefaultPython Error: Cannot import vtkPVServerManagerRenderingPython Error: Cannot import vtkPVAnimationPython Catalyst builds do not build all ParaView modules, so some missing is expected. What is the correct way to get a working run for the examples supplied. Also, how do we connect to catalyst after this? My understanding is that we just load up paraview (4.1) and then the simulation would connect to catalyst after we hit ‘Connect to Catalyst’ and load up the ‘Coprocessing’ plugin. Does paraview have to be built from source? The way I've done it is that the simulation loads up Catalyst (using the vtkCPProcessor class). ParaView can create Python scripts for use with vtkCPPythonScriptPipeline, but if there is a way to use ParaView-the-application with in-situ runs, I don't know it. Andy? More specifically, is there a particular download version that might work, and what flags do we turn on in CMakeLists.txt? Is there any other set of examples (although I think the git examples demonstrate the workflow quite properly) that we could use to try catalyst? From a full build, PARAVIEW_ENABLE_CATALYST=ON should be all that is necessary. From a Catalyst build, the same should be sufficient, but for any VTK or ParaView classes which you require, you will need to create an edition to bring them in. --Ben ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Linking Catalyst example samples with Catalyst
Thanks Andy. It is a bit of a pain to see the examples fail to run after the long paraview build process. Can’t you bundle the examples along with the paraview sources? I will keep posted. Thanks Praveen. From: Andy Bauer [mailto:andy.ba...@kitware.com] Sent: Friday, June 06, 2014 7:10 AM To: Praveen Narayanan Cc: paraview@paraview.org Subject: Re: [Paraview] Linking Catalyst example samples with Catalyst Hi Praveen, My suggestion would be to start with a build of ParaView 4.1. Build it with MPI, Python and Catalyst enabled (Catalyst should be enabled by default but MPI and Python need to be explicitly turned on). The Catalyst editions are meant to be subsets of ParaView that get rid of specific functionality that may not be needed for certain simulation runs. This helps for decreasing executable size but can make it slightly more confusing. See http://www.kitware.com/blog/home/post/606 for an explanation on that. At one time I tested the Catalyst examples with several of the editions but haven't tried it recently so it's possible that something broke. As for the Connect to Catalyst option in the ParaView GUI, I've never tested that with any of the Catalyst editions so it's possible that they don't work with the live in situ connection. Again, using a full ParaView 4.1 build should work here though. We're in the process of improving the line in situ connection right now for a project that ends in August. This should vastly improve the usability of this. I'm not sure I answered all of your questions but my goal was more to get you past some issues and then we can help you focus on the other parts that come up as well as making everything work more efficiently together. Regards, Andy On Fri, Jun 6, 2014 at 5:18 AM, Praveen Narayanan prave...@nvidia.commailto:prave...@nvidia.com wrote: Greetings I am examining the example code for catalyst from Andy Bauer’s git repository (https://github.com/acbauer/CatalystExampleCode). I am trying to learn about the catalyst workflow before using it in my own in situ examples. To this end, I built catalyst from the nightly samples in the paraview download page (http://www.paraview.org/download/). However, I was unable to run the examples satisfactorily. 1) The method of extending the paraview source tree failed from the sources given in the above page (paraview 4.1) python catalyze.py -i Editions/Base -o ../catalyst_src fatal: Not a git repository (or any of the parent directories): .git Error: Command '['git', 'rev-parse', '--show-toplevel']' returned non-zero exit status 128 2) I tried two of the catalyst sources a. Base+python: This builds properly and links with the example code (CxxFullExample) b. Base+essentials+extras+python: This also builds and links with the example code, but I get the following runtime error: ERROR: In /home/praveen/projects/catalyst/failed/base+essentials+extras+python/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 565 vtkSIProxyDefinitionManager (0x12af110): No proxy that matches: group=animation and proxy=AnimationScene were found. ERROR: In /home/praveen/projects/catalyst/failed/base+essentials+extras+python/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 565 vtkSIProxyDefinitionManager (0x12af110): No proxy that matches: group=misc and proxy=GlobalMapperProperties were found. ERROR: In /home/praveen/projects/catalyst/failed/base+essentials+extras+python/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 565 vtkSIProxyDefinitionManager (0x12af110): No proxy that matches: group=misc and proxy=StrictLoadBalancing were found. ERROR: In /home/praveen/projects/catalyst/failed/base+essentials+extras+python/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 565 vtkSIProxyDefinitionManager (0x12af110): No proxy that matches: group=misc and proxy=ColorPalette were found. a) Logs: base+essentials+extras+python_CxxFullExample.log base+essentials+extras+python_CMakeLists.txt, 3) The build base+python runs the example code, but does not connect with catalyst. Furthermore, upon running make test to test with the sample python script in ‘SampleScripts’ (which basically invokes CxxFullExample with the python script as an input argument, I get errors stating that it cannot load some vtk modules, which upon looking turn out not to be built at all a. Logs: LastTest.log (python script), and base+python_CMakeLists.txt for the catalyst build. I would like to know what I am missing in these builds. It appears that some of the vtk modules are not being built: Error: Could not import vtkCommonComputationalGeometryPython Error: Could not import vtkRenderingCorePython Error: Cannot import vtkPVServerManagerDefaultPython Error: Cannot import vtkPVServerManagerRenderingPython Error: Cannot import vtkPVAnimationPython What is the correct way to get a working run
Re: [Paraview] settings and default values
Hi Felipe, The general approach would be: - create a VTK singleton class, say vtkPxdmfSettings - configure your settings proxy group to use this settings class as follows: ProxyGroup name=settings SettingsProxy name=PxdmfSettings label=Pxdmf processes=client|dataserver|renderserver class=vtkPxdmfSettings Documentation Custom settings for Pxdmf plugin. /Documentation IntVectorProperty name=GUIMaxNbModes number_of_elements=1 default_values=0 Documentation /Documentation !-- Note that if you include the hint below, this setting will be saved to the Qt settings -- Hints SaveInQSettings / /Hints /IntVectorProperty /SettingsProxy /ProxyGroup - Create your custom VTK filter and set up the XML as usual - Within your VTK filter, access the singleton class you created in the first step and read the settings file in the constructor For a concrete example, take a look at how this is done for the RenderViewSettings in the following files: The singleton class for settings: ParaViewCore/ClientServerCore/Rendering/vtkPVRenderViewSettings.cxx The XML for the singleton class: ParaViewCore/ServerManager/Default/settings.xml A VTK filter that accesses the settings singleton and setting values: ParaViewCore/ServerManager/Rendering/vtkSMRepresentationTypeDomain.cxx The hint SaveInQSettings tells ParaView to save the setting in the Qt .ini file - you don't need to include it, but I suspect you may have it in your settings XML. It may also be saved to the JSON file if this hint is present (which could be considered a bug), so that might be why you are seeing the setting in two places. Hope that helps, Cory On Thu, Jun 5, 2014 at 11:28 AM, Felipe Bordeu felipe.bor...@ec-nantes.fr wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi to all, I have a custom filter with default values (defined in the xml). but now I want to populate the default values from the data coming from the plugin settings. so a have a ProxyGroup name=settings with the descriptions of my settings window. but I don't know how to put this information into my filter. I'm trying something like this vtkSMIntVectorProperty::SafeDownCast(proxy()-GetProperty(GUIMaxNbModes))-SetElement(0,settings-value(PxdmfSettings.GUIMaxNbModes,100).toInt()); (in the constructor of a pqPropertyWidget) but I don't know if this is the right way. Also when I use the setting menu, my data (GUIMaxNbModes) is written in the ParaView4.1.0.ini AND in the UserSettings.json. Why ??? Thank to all Felipe - -- Felipe Bordeu Weldt Ingénieur de Recherche - - Tél. : 33 (0)2 40 37 16 57 Fax. : 33 (0)2 40 74 74 06 felipe.bor...@ec-nantes.fr Institut GeM - UMR CNRS 6183 École Centrale Nantes 1 Rue de La Noë, 44321 Nantes, FRANCE - - -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTkIyaAAoJEE/fMfNgU9/DKzQH/ikRCDd+/3Fu49XnZxTGrETF 98MCPlFMeYYKT9FksqcgZyKvt0qeF0uPsBpc7Dpt8yUlbWHgZ4DEQtGlZ/s/wJ1H 3a7p5Do+zd1tocjFVCvZ8JE7REjEuVBv8Furh0X5JAzVZF3YY8alkmR/MIPBBHEm Rci7BWU2kUL6vPLV31Z0Hwl+0ksvotOJ/byM2HxBgcAFBHRVdLcN8QQYpuQGSy73 otX4m/n/9EkJmiFfsnW0cFvOq5tPiZp4x1tBYD40d6ulS6jsr1Z7+pGT/OP0ECPs RwBzPL94kMLZtqvByjY6CmGg0sLByGDxU9M5eMjPf9cHNkc0DsT1UR3Egns7iek= =KwyN -END PGP SIGNATURE- ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Clarification on Paraview pvbatch run
The FOAM reader should read the data in parallel. Try changing the CaseType property from Reconstructed (meaning OpenFOAM did the gather) to Decomposed (meaning OpenFOAM left the data as the parallel nodes in the simulation wrote them) case and see if that helps. David E DeMarle Kitware, Inc. RD Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Jun 5, 2014 at 2:07 PM, Sebastien Jourdain sebastien.jourd...@kitware.com wrote: Ok, so you are correctly using everything. The question is now on the *OpenFOAMReader and if it properly use MPI to read and distribute the data.* *Which unfortunately I don't know.* *If you want to force a redistribution of your data across your nodes, you can use the D3 filter just after your reader.* *Seb* On Thu, Jun 5, 2014 at 11:44 AM, Daniele Obiso daniele.ob...@phitecingegneria.it wrote: Hi Sebastien, here you can find the main parts of the script. *try: paraview.simple* *except: from paraview.simple import ** *paraview.simple._DisableFirstRenderCameraReset()* *RenderView1 = CreateRenderView()* *# Lights* * options * *# Screen** options* *# Set scale parameters* *a1_Cp_PVLookupTable = GetLookupTableForArray( Cp, 3, RGBPoints=[-1, 0.0, 0.0, 1.0, 0.75, 1.0, 0.0, 0.0], VectorMode='Magnitude', NanColor=[0.498039, 0.498039, 0.498039], NumberOfTableValues=100, ColorSpace='HSV', LockScalarRange=1 )* *a1_Cp_PiecewiseFunction = CreatePiecewiseFunction()* *ScalarBarWidgetRepresentation1 = CreateScalarBar(Position=[0.33, 0.95], Title='Cp [-]', Orientation = 'Horizontal', Position2=[0.4, 0.04], Enabled=1, LabelFontSize=12, LabelColor=[0.0, 0.0, 0.0], LookupTable=a1_Cp_PVLookupTable, TitleFontSize=12, TitleColor=[0.0, 0.0, 0.0] )* *# Legend position* *GetRenderView().Representations.append(ScalarBarWidgetRepresentation1)* *# Time* *RenderView1 = GetRenderView()* *AnimationScene1 = GetAnimationScene()* *AnimationScene1.EndTime = 2500* *AnimationScene1.AnimationTime = 2500* *RenderView1.ViewTime = 2500* *# Open the model: volume mesh* *foam_foam = OpenFOAMReader( FileName='../case.foam' )* *foam_foam.CellArrays = ['Cp']* *foam_foam.CaseType = 'Reconstructed Case'* *foam_foam.MeshRegions = ['internalMesh']* *DataRepresentation2 = Show()* *DataRepresentation2.ScalarOpacityUnitDistance = 0.01* *DataRepresentation2.Representation = 'Outline'* *DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5]* *DataRepresentation2.Visibility = 0* *# Slice* *RenderView1.CameraViewUp = [0.0, 1.0, 0.0]* *RenderView1.CameraPosition = [1.5, 0.3, 18]* *RenderView1.CameraFocalPoint = [**1.5, 0.3, 1]* *RenderView1.CameraClippingRange = [18, 18]* *RenderView1.CameraParallelScale = 0.9* *SetActiveSource(foam_foam)* *Slice1 = Slice( SliceType=Plane )* *Slice1.SliceOffsetValues = [0.0]* *Slice1.SliceType.Origin = [0, 0, 0]* *Slice1.SliceType.Normal = [0, 0, 1]* *Slice1.SliceType = Plane* *DataRepresentation3 = Show()* *DataRepresentation3.Visibility = 1* *DataRepresentation3.EdgeColor = [0.0, 0.0, 0.5]* *DataRepresentation3.ColorArrayName = 'Cp'* *DataRepresentation3.LookupTable = a1_Cp_PVLookupTable* *# Animation Time* *RenderView1 = GetRenderView()* *AnimationScene1 = GetAnimationScene()* *AnimationScene1.EndTime = 2500* *AnimationScene1.AnimationTime = 2500* *RenderView1.ViewTime = 2500* *AnimationScene1.PlayMode = 'Sequence'* *AnimationScene1.NumberOfFrames =10* *KeyFrameAnimationCue3 = GetAnimationTrack( 'Origin', 2, proxy=Slice1.SliceType)* *KeyFrame = CompositeKeyFrame( KeyValues=[0] )* *KeyFrame = CompositeKeyFrame( KeyTime=1.0, KeyValues=[1.4] )* *TimeAnimationCue1 = GetTimeTrack()* *TimeAnimationCue1.UseAnimationTime = 0* *KeyFrame = CompositeKeyFrame( KeyTime=1.0, KeyValues=[2500] )* *KeyFrame = CompositeKeyFrame( KeyValues=[2500] )* *KeyFrameAnimationCue3.KeyFrames = [ KeyFrame, KeyFrame ] * *TimeAnimationCue1.KeyFrames = [ KeyFrame, KeyFrame ]* *# Write* *WriteAnimation('Cp.png', Magnification=1, Quality=2, FrameRate=1.00)* *# End* *Render()* Hope this can help you to understand the problem! Thanks for the availability! Daniele On 06/05/2014 07:04 PM, Sebastien Jourdain wrote: Is it using the VTK classes or the paraview Proxy? Moreover, the reader/source is responsible to distribute the data to properly handle parallelism. If it does not, then you right, everything will happen on the root node. Hense a quick look at the script can help us determine which part need to change in order to truly use parallel processing. Seb On Thu, Jun 5, 2014 at 8:32 AM, Daniele Obiso
Re: [Paraview] Make animation from steady state result
Here's a more expanded list of steps outlining the solution David gave in case you are not very familiar with the contour filter and animation controls in ParaView. 1. Create the streamlines as you normally would. 2. Add a Contour filter to the streamline (third toolbar, second button from the left). 2.a. Change the Contour By property to IntegrationTime. 2.b. Press Apply. This little trick will create a point on each streamline at a particular time in the particle advection simulation that created the streamlines. 3. Open the Animation View (View - Animation View) 3.a. On the bottom row, select the contour filter in the first chooser box and Isosurfaces in the second chooser box. Then hit the blue plus button at the left. 3.b. Make sure Mode is set to Sequence and change No. Frames to 100. 3.c. Hit the play button in the VCR controls (green triangle in the top toolbar). You will see the dots animate over the streamlines. 3.d. You can adjust the speed of the animation by changing the No. Frames. 4. If you want to see glyphs instead of dots, just add the glyph filter to the output of the contour filter. BTW, props to Jean Favre for originally posting this solution to the ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg). -Ken From: David E DeMarle dave.dema...@kitware.commailto:dave.dema...@kitware.com Date: Thursday, June 5, 2014 8:07 AM To: minh hien minh@gmail.commailto:minh@gmail.com Cc: paraview@paraview.orgmailto:paraview@paraview.org paraview@paraview.orgmailto:paraview@paraview.org Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result Make an isocontour of the streamlines' integrationTime variable. Then in animation view, make a track for the isocontour value. David E DeMarle Kitware, Inc. RD Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Jun 5, 2014 at 9:52 AM, minh hien minh@gmail.commailto:minh@gmail.com wrote: Hi all, I got steady state solution for my problem. After plotting streamlines at steady state, I would like to make animation showing moving of spheres (resulted from Glyph filter) on the streamlines, the spheres' velocity should be defined by the flow velocity. How can I make this? Any suggestion would be very much appreciated. Thank you in advance. Minh ___ Powered by www.kitware.comhttp://www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] Memory explosion and strange behavior -- Linux -- 'clip' -- 360 MB file needs 60 GB ??
For structured data, prefer the Extract Subset filter to the Clip filter. Subset works in the topological space and therefore preserves the implicitly defined geometry and topology. Once you reduce the size to something manageable with that, (either through subrange or striding) then the filters that change representation to unstructured can be useable. The best practices chapters of the paraview guide and tutorial explain in more detail. David E DeMarle Kitware, Inc. RD Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Jun 6, 2014 at 3:29 AM, Dr. Roman Grothausmann grothausmann.ro...@mh-hannover.de wrote: Concerning the clipping of volume data when doing volume rendering is done more precise in paraview than often necessary: even individual voxels are clipped. With such large data this is likely not visible at all. I therefore tried to use the vtkImplicitFunctionToImageStencil to create a paraview plugin. Sadly so far that can only be done outside paraview. See this thread: http://www.paraview.org/pipermail/paraview/2013-August/028988.html and on mantis: http://www.paraview.org/Bug/view.php?id=14236 Best wishes Roman On 02/06/14 19:11, Scott, W Alan wrote: Not replying to your specific questions below, but ... you have some pretty large data here! It is amazing how a fairly small cell count on the edge of your data (for instance X axis) can become huge when you add a Y axis and Z axis. You have about 375 million cells. If you were able to volume render that on a local server, one machine, I believe you have the world's record! Wow. Generally speaking, I sort of tell people that anything around thousands of cells is a toy, a million is real data (and you should start thinking about using a cluster for a back end), and a billion is hero size and you want some heavy iron to deal with it. Tens of billions, and especially trillions, pushes state of the art. If you are volume rendering, divide any of these numbers by 10. By the way, exascale will be in the trillions of cells. Some of the greatest minds in the world are still trying to figure out how to visualize data of this size. Alan -Original Message- From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of robert.atw...@diamond.ac.uk Sent: Monday, June 02, 2014 9:42 AM To: paraview@paraview.org Subject: [EXTERNAL] [Paraview] Memory explosion and strange behaviour -- Linux -- 'clip' -- 360 MB file needs 60 GB ?? Hi, I like volume viewing in Paraview 4.1.0 so far! But, when I try to use even what I consider a rather small subset of one image file that I work with normally, the large memory on my large memory workstation still gets used up. I am using Red Hat 6 on a system with 100 GB of Ram, adn a Quadro 6000 graphics card. I have compiled the Paraview code that I downloaded on Friday. The image I loaded is saved as raw unsinged 8-bit and is 860x872x501 voxels i.e. about 360 MB file. If I load it and then try to apply the 'clip' tool, the system is unresponsive for a few minutes. If I run 'top ' during this process I see the memory in use expand up to 60 GB , this seems excessive! Then, the resulting display behaves oddly, the clipped view suddenly 'vanishes' after moving the view around ?? -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut für Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-9574 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/ opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] Re: Make animation from steady state result
Ken and Jean, excellent idea! I liked it so much that I wrote it up in the SNL ParaView tutorials, tips and tricks page. It is located here: http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks Alan From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Moreland, Kenneth Sent: Friday, June 06, 2014 11:43 AM To: David E DeMarle; minh hien Cc: paraview@paraview.org Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result Here's a more expanded list of steps outlining the solution David gave in case you are not very familiar with the contour filter and animation controls in ParaView. 1. Create the streamlines as you normally would. 2. Add a Contour filter to the streamline (third toolbar, second button from the left). 2.a. Change the Contour By property to IntegrationTime. 2.b. Press Apply. This little trick will create a point on each streamline at a particular time in the particle advection simulation that created the streamlines. 3. Open the Animation View (View - Animation View) 3.a. On the bottom row, select the contour filter in the first chooser box and Isosurfaces in the second chooser box. Then hit the blue plus button at the left. 3.b. Make sure Mode is set to Sequence and change No. Frames to 100. 3.c. Hit the play button in the VCR controls (green triangle in the top toolbar). You will see the dots animate over the streamlines. 3.d. You can adjust the speed of the animation by changing the No. Frames. 4. If you want to see glyphs instead of dots, just add the glyph filter to the output of the contour filter. BTW, props to Jean Favre for originally posting this solution to the ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg). -Ken From: David E DeMarle dave.dema...@kitware.commailto:dave.dema...@kitware.com Date: Thursday, June 5, 2014 8:07 AM To: minh hien minh@gmail.commailto:minh@gmail.com Cc: paraview@paraview.orgmailto:paraview@paraview.org paraview@paraview.orgmailto:paraview@paraview.org Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result Make an isocontour of the streamlines' integrationTime variable. Then in animation view, make a track for the isocontour value. David E DeMarle Kitware, Inc. RD Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Jun 5, 2014 at 9:52 AM, minh hien minh@gmail.commailto:minh@gmail.com wrote: Hi all, I got steady state solution for my problem. After plotting streamlines at steady state, I would like to make animation showing moving of spheres (resulted from Glyph filter) on the streamlines, the spheres' velocity should be defined by the flow velocity. How can I make this? Any suggestion would be very much appreciated. Thank you in advance. Minh ___ Powered by www.kitware.comhttp://www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Setting development environment for Custom application development using ParaView
We are planning to develop custom application using our own GUI. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Linking Catalyst example samples with Catalyst
I got a 'working' build as suggested by turning on the mpi and python flags from within the paraview 4.1 source distribution - these were not turned on in my earlier builds. I was able to play with the examples so that they dumped data files. Turning on the 'Connect to Catalyst' button in the paraview GUI with coprocessing on loads the data. The data outputted does not seem very meaningful, but we can see the grid that was generated. The live visualization switch in the python script provided seemingly loads the data. But it then crashes with an MPI error which I will report on later. -Original Message- From: Ben Boeckel [mailto:ben.boec...@kitware.com] Sent: Friday, June 06, 2014 7:16 AM To: Praveen Narayanan Cc: paraview@paraview.org Subject: Re: [Paraview] Linking Catalyst example samples with Catalyst On Fri, Jun 06, 2014 at 02:18:42 -0700, Praveen Narayanan wrote: I am examining the example code for catalyst from Andy Bauer’s git repository (https://github.com/acbauer/CatalystExampleCode). I am trying to learn about the catalyst workflow before using it in my own in situ examples. So, first, there is no requirement to use a Catalyst-the-build to use Catalyst-the-coprocessing-API. Catalyst builds are meant for use where a smaller ParaView is a better fit (super computing, lower memory constraints, etc.). The naming is indeed confusing :( . python catalyze.py -i Editions/Base -o ../catalyst_src fatal: Not a git repository (or any of the parent directories): .git Error: Command '['git', 'rev-parse', '--show-toplevel']' returned non-zero exit status 128 You can give `-r dir` to tell it the top-level of the source tree. Without it, it will try and find the top-level using git, which won't work for tarballs. I'll improve the error message.g 2) I tried two of the catalyst sources a. Base+python: This builds properly and links with the example code (CxxFullExample) b. Base+essentials+extras+python: This also builds and links with the example code, but I get the following runtime error: When do these errors pop up? The Catalyst build trees are slimmed down ParaView builds and don't have everything under the sun included (e.g., animation classes are missing). If you need other classes, another edition should be made to include the required classes and proxies. 3) The build base+python runs the example code, but does not connect with catalyst. Furthermore, upon running make test to test with the sample python script in ‘SampleScripts’ (which basically invokes CxxFullExample with the python script as an input argument, I get errors stating that it cannot load some vtk modules, which upon looking turn out not to be built at all snip I would like to know what I am missing in these builds. It appears that some of the vtk modules are not being built: Error: Could not import vtkCommonComputationalGeometryPython Error: Could not import vtkRenderingCorePython Error: Cannot import vtkPVServerManagerDefaultPython Error: Cannot import vtkPVServerManagerRenderingPython Error: Cannot import vtkPVAnimationPython Catalyst builds do not build all ParaView modules, so some missing is expected. What is the correct way to get a working run for the examples supplied. Also, how do we connect to catalyst after this? My understanding is that we just load up paraview (4.1) and then the simulation would connect to catalyst after we hit ‘Connect to Catalyst’ and load up the ‘Coprocessing’ plugin. Does paraview have to be built from source? The way I've done it is that the simulation loads up Catalyst (using the vtkCPProcessor class). ParaView can create Python scripts for use with vtkCPPythonScriptPipeline, but if there is a way to use ParaView-the-application with in-situ runs, I don't know it. Andy? More specifically, is there a particular download version that might work, and what flags do we turn on in CMakeLists.txt? Is there any other set of examples (although I think the git examples demonstrate the workflow quite properly) that we could use to try catalyst? From a full build, PARAVIEW_ENABLE_CATALYST=ON should be all that is necessary. From a Catalyst build, the same should be sufficient, but for any VTK or ParaView classes which you require, you will need to create an edition to bring them in. --Ben --- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. --- ___ Powered by www.kitware.com Visit other Kitware open-source projects at