[Paraview] python exodus parsing segaults

2017-12-02 Thread Julian A. Quick
Hello All,

I wrote a python script using the Paraview ExodusIIReader to convert exodus
II files into csv's. The script usually runs successfully, but sometimes I
get a segfault. Am I missing something? How might I be able to better
handle memory in this code? I tried pasting the reset function I found on
the mailing list
 to
the top of the code but it did not seem to help. I appreciate your time and
support.


from paraview.simple import *
from paraview.numpy_support import vtk_to_numpy
import vtk.numpy_interface.dataset_adapter as dsa
import sys
s = ExodusIIReader(FileName='./results/%s.e'%sys.argv[-1])
d = CreateWriter('./out.csv', s)
Delete(d)
d.FieldAssociation = "Points"
d.UpdatePipeline(time=s.TimestepValues[-1])
Delete(s)
Delete(d)
del d



$ pvpython mycode.py my_ecodus_file
$ pvpython mycode.py my_ecodus_file
Segmentation fault: 11


Thanks,
Julian
___
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:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Python Programmable Filter Time Series Source

2017-12-02 Thread Bane Sullivan
Here is an example of a programmable filter vis XML that I want to simply
print off the various file names or give me and ability to read the file
series. I have this python programmable filter set up to work when I click
File->Open in ParaView. I have the ability to then chose file series from
the file prompt. How might I make a programmable filter via XML attributes
so that it can handle file series.


  

  
  
  

  
  

  

  
  
The value of this property determines the dataset
type
for the output of the programmable filter.
  



  


  

  

  

  

  

This property contains the text of a python program
that
the programmable source runs.


  

  

This property is a python script that is executed
during
the RequestInformation pipeline pass. Use this to provide
information
such as WHOLE_EXTENT to the pipeline downstream.
  


 

___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Python in the VR Build

2017-12-02 Thread Ken Martin
I believe the nightly PV builds now include the OpenVR plugin on windows. I
have not had a chance to try it but it might do the trick.

On Sat, Dec 2, 2017 at 5:07 PM, Bane Sullivan  wrote:

> Is it possible to release a Python compatible version of the VR build of
> ParaView?
>
> I am working on a project where I am dynamically linking geophysical
> processing code to ParaView for near-real time visualizations. Having
> Python included in the VR build would be a huge benefit!
>
> This would also help me for the static visualizations I am working with
> where I have created tons of file readers and filters in the Python
> Programmable Filter/Source format. Checkout my project here:
> https://github.com/banesullivan/ParaViewGeophysics
>
> Thanks,
>
> B
>
>
> ___
> 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:
> http://public.kitware.com/mailman/listinfo/paraview
>
>


-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  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:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Python in the VR Build

2017-12-02 Thread Bane Sullivan
Is it possible to release a Python compatible version of the VR build of
ParaView?

I am working on a project where I am dynamically linking geophysical
processing code to ParaView for near-real time visualizations. Having
Python included in the VR build would be a huge benefit!

This would also help me for the static visualizations I am working with
where I have created tons of file readers and filters in the Python
Programmable Filter/Source format. Checkout my project here:
https://github.com/banesullivan/ParaViewGeophysics

Thanks,

B
___
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:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] post-process of CFL3D result with surfaces in paraview?

2017-12-02 Thread Stephen Wornom
I have a different code but had the same problem that I resolved by adding an 
additional variable which sets value 0 at interior points and a different 
values for each surface, for example, -3 for the wing surface points. Then I 
use "extract" to visualize the different surfaces. 
Hope this helps, 
Stephen 

- Original Message -

> From: "程迪" 
> To: "ParaView" 
> Sent: Wednesday, November 29, 2017 9:32:45 PM
> Subject: [Paraview] post-process of CFL3D result with surfaces in paraview?

> Hi paraviewers,

> I am using paraview to render results in CFL3D, which is in Plot3D format,
> including ` abc.xyz ` grid file and `abc.q` solution file. Besides, I have a
> boundary condition file `abc.xyz.fvbnd` in FieldView 1.3 format which was
> generated by grid pre-processor.

> My problem is: How to extract the surface of the aircraft?

> Because the Plot3D format is a multi-block curvilinear grid. When I use
> `Extract Surface` filter, it will extract the block interfaces. My current
> solution to combine blocks by `Merge Blocks` filter. Then I can extract the
> surfaces, including the outer boundary and the inner aircraft walls. After
> that, I need to clip the farfield and keep the aircraft walls. Is there a
> better solution?

> However, what I need to do is to evaluate the force on specific parts. So I
> need to use the information from the boundary condition file `abc.xyz.fvbnd`
> which indicates ranges of indexes in curvilinear grid as wall of certain
> parts. My problem is how to use it to generate several surfaces in paraview
> for rendering and integration.

> p.s. I am using paraview 5.4.1. The grid consists of farfield outer boundary
> and several aircraft parts' wall inner boundaries.

> Di Cheng
> Engineer of Research Center
> China Academy of Aerospace Aerodynamics
> Phone: +86-l58Ol5949ll

> Address: No.17, YunGang West Road, Fengtai District, Beijing, China

> Zip Code:100074

> ___
> 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:
> http://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:
http://public.kitware.com/mailman/listinfo/paraview