Re: [Paraview] Memory leaks in Catalyst ?

2018-02-22 Thread Andy Bauer
Hi Yvan,

The vtkPKdTree ones look like they could be after looking at the code,
especially vtkPKdTree::InitializeRegionAssignmentLists(). It seems like a
good idea to replace the int **ProcessAssignmentMap with maybe a
std::vector. Probably a good idea for the other member variables here as
well. I'll spend some time refactoring vtkPKdTree to make sure that the
memory management is leak free.

I don't see anything that suspicious with respect to ParaView in the other
leak reports, though that doesn't necessarily mean that they aren't leaks.

Cheers,
Andy

On Thu, Feb 22, 2018 at 4:53 PM, Yvan Fournier 
wrote:

> Hello,
>
> Running under Valgrind (memcheck, with --enable-leak-check=full), I have
> some
> warnings about ParaView/Catalyst possibly leaking memory.
>
> Catalyst is called from Code_Saturne, whose adapter code (using ParaView
> Python
> adapters from C++) is here https://www.code-saturne.org/
> viewvc/saturne/trunk/src
> /fvm/fvm_to_catalyst.cxx?revision=11048=markup, using the attached
> results.py script.
>
> I fixed a leak in my own code following the Valgrind warnings, but some
> remining
> warnings seem related to calls I have no direct control over, so I attach
> a log
> (on one MPI rank) of Valgrind warnings (edited to remove OpenMPI
> initialization
> related warnings). The first part contains memcheck warnings, the part
> after
> "HEAP SUMMARY" the memory leak info.
>
> I'm not sure if the leaks are "one time only" (not too much of an issue),
> or can
> occur at every output timestep (30 in this example, for a small case with
> about
> 8000 mesh elements per MPI rank), so any opinion / checking on that would
> be
> welcome.
>
> Best regards,
>
>   Yvan Fournier
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] How to represent many glyphs colored by SeedIds per streamline?

2018-02-22 Thread Dan Lipsa
Thomas,
Take a look at the ParaView pipeline in

https://blog.kitware.com/evenly-spaced-streamlines-2d/

There, I place arrows along a streamline.

Dan


On Thu, Feb 22, 2018 at 1:53 PM, Thomas Oliveira 
wrote:

> Hi,
>
> I am visualizing disks perpendicular to streamlines by performing the
> following steps, which works.
> 1) Create a Plane
> 2) Create a Stream Tracer with Custom Source using the plane
> 3) With the stream tracer selected in the pipeline browser, add the
> glyph filter
> 4) In the Glyph Type combo box, select “2D Glyph”.
> 5) Select “Circle” in the second Glyph Type combo box
> 6) Click on Filled checkbox.
> 5) Under Active Attributes, make sure the Vectors property is set to
> the vector field I used to create the streamlines.
> 6) Set the Glyph Transform Rotate property to 0, 90, 0.
>
> On each streamline, many disks are rendered.
>
> However, if, in Glyph Properties > Active Attributes > Scalars, I select
> SeedIds, I see just one disk per streamline. Would it be possible to have
> many disks per streamline colored by SeedIds?
>
> My final goal is to illustrate at the outlet face of my model the starting
> position the streamlines that cross it. To do I am trying to render disks
> colored by SeedIds near the inlet and outlet faces, so that pair of disks
> of a same color represents two points connected by a streamline. Any other
> idea that provides a similar visual result is also welcome.
>
>
> Best regards,
> Thomas Oliveira
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] How to represent many glyphs colored by SeedIds per streamline?

2018-02-22 Thread Thomas Oliveira
Hi,

I am visualizing disks perpendicular to streamlines by performing the
following steps, which works.
1) Create a Plane
2) Create a Stream Tracer with Custom Source using the plane
3) With the stream tracer selected in the pipeline browser, add the
glyph filter
4) In the Glyph Type combo box, select “2D Glyph”.
5) Select “Circle” in the second Glyph Type combo box
6) Click on Filled checkbox.
5) Under Active Attributes, make sure the Vectors property is set to
the vector field I used to create the streamlines.
6) Set the Glyph Transform Rotate property to 0, 90, 0.

On each streamline, many disks are rendered.

However, if, in Glyph Properties > Active Attributes > Scalars, I select
SeedIds, I see just one disk per streamline. Would it be possible to have
many disks per streamline colored by SeedIds?

My final goal is to illustrate at the outlet face of my model the starting
position the streamlines that cross it. To do I am trying to render disks
colored by SeedIds near the inlet and outlet faces, so that pair of disks
of a same color represents two points connected by a streamline. Any other
idea that provides a similar visual result is also welcome.


Best regards,
Thomas Oliveira
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Re: Hello

2018-02-22 Thread Scott, W Alan
Existing tutorials for ParaView are listed on the ParaView web site here:  
https://www.paraview.org/tutorials/

Does anyone in the community know of other ParaView tutorials that are up to 
date and publicly available?

Thanks,

Alan

From: ParaView [mailto:paraview-boun...@public.kitware.com] On Behalf Of 
Moreland, Kenneth
Sent: Thursday, February 22, 2018 9:16 AM
To: Hassan Elsahely ; paraview@public.kitware.com
Subject: [EXTERNAL] Re: [Paraview] Hello

Hassan,

If you are interested in learning how to use ParaView for post processing, I 
recommend starting with the ParaView Tutorial 
(https://www.paraview.org/Wiki/The_ParaView_Tutorial). The tutorial does not 
talk about SU2 specifically, but it teaches basic techniques for visualization, 
including from CFD simulations.

SU2 can write out .vtk files, which ParaView can read. After learning the 
basics and you have more specific questions, we can help you with that.

-Ken

From: ParaView 
>
 on behalf of Hassan Elsahely 
>
Date: Thursday, February 22, 2018 at 8:50 AM
To: "paraview@public.kitware.com" 
>
Subject: [EXTERNAL] [Paraview] Hello


Hello,



I am using paraview as a post processing in windows not for a long time and I 
am working on laminar flat plate tutorial based on SU2. I would like to plot 
Blasius solution, similarity variable in function of velocity u/Ue. Any help.



Thank you
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] how to make a new protocol

2018-02-22 Thread Sgouros, Thomas
Thank you, I will look at it.

 -Tom

On Thu, Feb 22, 2018 at 11:24 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> LightViz will be a good example as it defines a custom set of protocols
> instead of using only the default ones like in Visualizer.
>
> https://github.com/Kitware/light-viz/tree/master/server
>
> On Thu, Feb 22, 2018 at 6:59 AM, Sgouros, Thomas  > wrote:
>
>> Hello all:
>>
>> Can someone describe the steps necessary to create and use a web socket
>> connection between a Paraviewweb client and a pvpython server? I am not
>> having much luck finding the documentation for registerVtkWebProtocol()
>> which appears to be an important part of the process. Google only helps me
>> find pvw-visualizer.py, which I'm sure is useful code, but I'm having a
>> hard time making much sense of it as an example.
>>
>> I would appreciate even just being pointed to the vtk python code, but
>> I'll take any pointers you can offer.
>>
>> Thank you,
>>
>>  -Tom
>>
>> ___
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> https://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] how to make a new protocol

2018-02-22 Thread Sebastien Jourdain
LightViz will be a good example as it defines a custom set of protocols
instead of using only the default ones like in Visualizer.

https://github.com/Kitware/light-viz/tree/master/server

On Thu, Feb 22, 2018 at 6:59 AM, Sgouros, Thomas 
wrote:

> Hello all:
>
> Can someone describe the steps necessary to create and use a web socket
> connection between a Paraviewweb client and a pvpython server? I am not
> having much luck finding the documentation for registerVtkWebProtocol()
> which appears to be an important part of the process. Google only helps me
> find pvw-visualizer.py, which I'm sure is useful code, but I'm having a
> hard time making much sense of it as an example.
>
> I would appreciate even just being pointed to the vtk python code, but
> I'll take any pointers you can offer.
>
> Thank you,
>
>  -Tom
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] connecting buttons and python

2018-02-22 Thread Sebastien Jourdain
An example is available here

https://github.com/Kitware/light-viz/blob/master/server/light_viz_protocols.py

On Thu, Feb 22, 2018 at 4:32 AM, Sgouros, Thomas 
wrote:

> There appears to be one more missing piece, though, because my attempt
> provokes an assertion error that appears to be claiming that my protocol,
> derived from a LinkProtocol, is not actually a LinkProtocol:
>
>   File "pvsvn.py", line 41, in initialize
>
> self.registerVtkWebProtocol(self.testbutton())
>
>   File "/Applications/ParaView-5.4.1-1232-g1496380e37.app/Contents/
> Python/vtkmodules/web/wslink.py", line 63, in registerVtkWebProtocol
>
> self.registerLinkProtocol(protocol)
>
>   File 
> "/Applications/ParaView-5.4.1-1232-g1496380e37.app/Contents/Python/wslink/websocket.py",
> line 89, in registerLinkProtocol
>
> assert( isinstance(protocol, LinkProtocol))
>
> AssertionError
>
> At least I think that's what it's saying.
>
> Thank you,
>
>  -Tom
>
> On Thu, Feb 22, 2018 at 6:25 AM, Sgouros, Thomas  > wrote:
>
>> Turns out you can't use capital letters for the protocol options (what
>> should I call them?), according to the discussion at this link. Some people
>> here might find it familiar: https://groups.googl
>> e.com/forum/#!topic/autobahnws/mkjF21Fb8ow
>>
>>  -Tom
>>
>>
>>
>> On Wed, Feb 21, 2018 at 7:56 PM, Scott Wittenburg <
>> scott.wittenb...@kitware.com> wrote:
>>
>>> That actually looks ok to me.  Why isn't pvpython happy with it?  What
>>> version of ParaView are you running?  If it's a recent ParaView and the
>>> problem is you can't import wslink, then setting up a virtualenv with the
>>> missing modules (wslink and its dependencies) might be what you need.  See
>>> this blog post for more information on how to use pvpython but also bring
>>> in the modules in your virtualenv:
>>>
>>> https://blog.kitware.com/using-pvpython-and-virtualenv/
>>>
>>> If the problem is something else, we might need more details.
>>>
>>> Hope this helps.
>>>
>>> Cheers,
>>> Scott
>>>
>>>
>>>
>>> On Wed, Feb 21, 2018 at 5:44 PM, Sgouros, Thomas <
>>> thomas_sgou...@brown.edu> wrote:
>>>
 Thank you that's very helpful. Where will I find how to define the
 protocols on the python side? I've only found a wslink example that looks
 like this:

 from wslink import register as exportRPC
 from wslink.websocket import LinkProtocol

 class myProtocol(LinkProtocol):
 def __init__(self):
 super(myProtocol, self).__init__()

 @exportRPC("myprotocol.testButton")
 def testButton(self, nothing):
 print("*** HELP ")

 Pvpython isn't happy with this, but I'm not sure where to look for the
 right way to do it.

 Thank you,

  -Tom

 On Wed, Feb 21, 2018 at 6:55 PM, Scott Wittenburg <
 scott.wittenb...@kitware.com> wrote:

> Yes that link is old and broken, but if you navigate through the api
> docs links, that is working.  Here's the direct link to the page you
> couldn't find though:
>
> https://kitware.github.io/paraviewweb/api/IO_WebSocket_ParaV
> iewWebClient.html
>
>
>
> On Wed, Feb 21, 2018 at 4:43 PM, Sgouros, Thomas <
> thomas_sgou...@brown.edu> wrote:
>
>> Hello all:
>>
>> Got some nice looking buttons and widgets, but I can't seem to find
>> examples of how to deliver the button press or other widget output to my
>> pvpython server. I imagine the steps are:
>>
>> 1. Create a protocol on the python side. Can I use wslink.register,
>> or is there paraviewweb functionality I should be using?
>>
>> 2. Create a matching protocol on the js side, with
>> ParaviewWebClient.createClient(), but I'm not seeing how to link the
>> protocol to a function that can be linked to a button press.
>>
>> Also, this page, found via a google search, seems potentially useful,
>> but gives me a 404.
>>
>> https://kitware.github.io/paraviewweb/api/ParaViewWebClient.html
>>
>> Many thanks,
>>
>>  -Tom
>>
>> ___
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> https://public.kitware.com/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
>
> Search the 

Re: [Paraview] Hello

2018-02-22 Thread Moreland, Kenneth
Hassan,

If you are interested in learning how to use ParaView for post processing, I 
recommend starting with the ParaView Tutorial 
(https://www.paraview.org/Wiki/The_ParaView_Tutorial). The tutorial does not 
talk about SU2 specifically, but it teaches basic techniques for visualization, 
including from CFD simulations.

SU2 can write out .vtk files, which ParaView can read. After learning the 
basics and you have more specific questions, we can help you with that.

-Ken

From: ParaView  on behalf of Hassan 
Elsahely 
Date: Thursday, February 22, 2018 at 8:50 AM
To: "paraview@public.kitware.com" 
Subject: [EXTERNAL] [Paraview] Hello


Hello,



I am using paraview as a post processing in windows not for a long time and I 
am working on laminar flat plate tutorial based on SU2. I would like to plot 
Blasius solution, similarity variable in function of velocity u/Ue. Any help.



Thank you
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] how to make a new protocol

2018-02-22 Thread Sgouros, Thomas
Hello all:

Can someone describe the steps necessary to create and use a web socket
connection between a Paraviewweb client and a pvpython server? I am not
having much luck finding the documentation for registerVtkWebProtocol()
which appears to be an important part of the process. Google only helps me
find pvw-visualizer.py, which I'm sure is useful code, but I'm having a
hard time making much sense of it as an example.

I would appreciate even just being pointed to the vtk python code, but I'll
take any pointers you can offer.

Thank you,

 -Tom
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] connecting buttons and python

2018-02-22 Thread Sgouros, Thomas
Turns out you can't use capital letters for the protocol options (what
should I call them?), according to the discussion at this link. Some people
here might find it familiar:
https://groups.google.com/forum/#!topic/autobahnws/mkjF21Fb8ow

 -Tom



On Wed, Feb 21, 2018 at 7:56 PM, Scott Wittenburg <
scott.wittenb...@kitware.com> wrote:

> That actually looks ok to me.  Why isn't pvpython happy with it?  What
> version of ParaView are you running?  If it's a recent ParaView and the
> problem is you can't import wslink, then setting up a virtualenv with the
> missing modules (wslink and its dependencies) might be what you need.  See
> this blog post for more information on how to use pvpython but also bring
> in the modules in your virtualenv:
>
> https://blog.kitware.com/using-pvpython-and-virtualenv/
>
> If the problem is something else, we might need more details.
>
> Hope this helps.
>
> Cheers,
> Scott
>
>
>
> On Wed, Feb 21, 2018 at 5:44 PM, Sgouros, Thomas  > wrote:
>
>> Thank you that's very helpful. Where will I find how to define the
>> protocols on the python side? I've only found a wslink example that looks
>> like this:
>>
>> from wslink import register as exportRPC
>> from wslink.websocket import LinkProtocol
>>
>> class myProtocol(LinkProtocol):
>> def __init__(self):
>> super(myProtocol, self).__init__()
>>
>> @exportRPC("myprotocol.testButton")
>> def testButton(self, nothing):
>> print("*** HELP ")
>>
>> Pvpython isn't happy with this, but I'm not sure where to look for the
>> right way to do it.
>>
>> Thank you,
>>
>>  -Tom
>>
>> On Wed, Feb 21, 2018 at 6:55 PM, Scott Wittenburg <
>> scott.wittenb...@kitware.com> wrote:
>>
>>> Yes that link is old and broken, but if you navigate through the api
>>> docs links, that is working.  Here's the direct link to the page you
>>> couldn't find though:
>>>
>>> https://kitware.github.io/paraviewweb/api/IO_WebSocket_ParaV
>>> iewWebClient.html
>>>
>>>
>>>
>>> On Wed, Feb 21, 2018 at 4:43 PM, Sgouros, Thomas <
>>> thomas_sgou...@brown.edu> wrote:
>>>
 Hello all:

 Got some nice looking buttons and widgets, but I can't seem to find
 examples of how to deliver the button press or other widget output to my
 pvpython server. I imagine the steps are:

 1. Create a protocol on the python side. Can I use wslink.register, or
 is there paraviewweb functionality I should be using?

 2. Create a matching protocol on the js side, with
 ParaviewWebClient.createClient(), but I'm not seeing how to link the
 protocol to a function that can be linked to a button press.

 Also, this page, found via a google search, seems potentially useful,
 but gives me a 404.

 https://kitware.github.io/paraviewweb/api/ParaViewWebClient.html

 Many thanks,

  -Tom

 ___
 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

 Search the list archives at: http://markmail.org/search/?q=ParaView

 Follow this link to subscribe/unsubscribe:
 https://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview