Re: [Paraview] Annotate time filter - regard real time - error in code after test

2015-03-04 Thread Felipe Bordeu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

what is the error message


Le 03/03/2015 14:06, Madalena S. Malhadas a écrit :
 Dear all,

 I tryed to make the time conversion in the script but i have an error.
When i put this

 programmableFilter1.Script = 'pdo =
self.GetOutput();\npdo.ShallowCopy(self.GetInput());\na =
self.GetInput().GetInformation().Get(pdo.DATA_TIME_STEP());\n# this is
your convertion routine\ntime_label = Days from 12/12/1800 =  +
str(a*100)  + : + str((a*100)%2) +  ...days\nlabel =
vtk.vtkStringArray();\nlabel.SetNumberOfComponents(1);\nlabel.Resize(1);\nlabel.SetName(TimeLabel);\nlabel.SetValue(0,time_label);\npdo.GetFieldData().AddArray(label)\n'

 in the script box via paraview i get error. Do you know how to solve
the error.

 Madalena
 -
 From: nenasan...@hotmail.com
 To: felipe.bor...@ec-nantes.fr; paraview@paraview.org
 Date: Tue, 3 Mar 2015 09:33:39 +
 Subject: Re: [Paraview] Annotate time filter - regard real time -
error in code after test

 Thank you very much.

 -
 Date: Tue, 3 Mar 2015 09:30:19 +0100
 From: felipe.bor...@ec-nantes.fr
 To: paraview@paraview.org
 Subject: Re: [Paraview] Annotate time filter - regard real time -
error in code after test





 Please keep the discussion to the mailing list so others can
 benefit-from/contribute-to the conversion.

 the code I send is for the programmable filter!!!

 if you are using a python script these are the lines to use (generated
with python trace in ParaView):
 the code in the Script variable of the programmable filter is always
very ugly. you can put the source in a file extra file and use the
execfile() function of python to call it.

 #--- begin code ---
 # create a new 'Programmable Filter'
 programmableFilter1 = ProgrammableFilter(Input=waterPropertiesnc)

 # Properties modified on programmableFilter1
 programmableFilter1.Script = 'pdo =
self.GetOutput();\npdo.ShallowCopy(self.GetInput());\na =
self.GetInput().GetInformation().Get(pdo.DATA_TIME_STEP());\n# this is
your convertion routine\ntime_label = Days from 12/12/1800 =  +
str(a*100)  + : + str((a*100)%2) +  ...days\nlabel =
vtk.vtkStringArray();\nlabel.SetNumberOfComponents(1);\nlabel.Resize(1);\nlabel.SetName(TimeLabel);\nlabel.SetValue(0,time_label);\npdo.GetFieldData().AddArray(label)\n'

 programmableFilter1.RequestInformationScript = ''
 programmableFilter1.RequestUpdateExtentScript = ''
 programmableFilter1.PythonPath = ''

 annotateGlobalData1 = AnnotateGlobalData(Input=programmableFilter1)

 # show data in view
 annotateGlobalData1Display = Show(annotateGlobalData1, renderView1)

 #--- end code ---

 don’t forget to do the time conversion in the script!!!


 Felipe

 Le 02/03/2015 17:09, Madalena S. Malhadas a écrit :
  Hi Felipe,

  I am a new user of paraview/python, so i Have dificult to understand
where i have to place the code in my script.

  My script read a nc file, then i use the annotate time filter to
extract the time in file, but apears numbers (equivalent to seconds)

  Then i include your code after call annotate time filter but i get
an error.

  Attached i send my scritp and if possible can you see the part of
the time conversions and understand what ihave wrong. For me is to
difficult to understand since i am novate in programming.

  Thank you very much

  Madalena

  -
  From: nenasan...@hotmail.com mailto:nenasan...@hotmail.com
  To: felipe.bor...@ec-nantes.fr mailto:felipe.bor...@ec-nantes.fr
  Date: Mon, 2 Mar 2015 15:49:15 +
  CC: paraview@paraview.org mailto:paraview@paraview.org
  Subject: Re: [Paraview] Annotate time filter - regard real time

  Thank you very much! I will test now.

  Kind regards

  -
  Date: Mon, 2 Mar 2015 16:46:32 +0100
  From: felipe.bor...@ec-nantes.fr mailto:felipe.bor...@ec-nantes.fr
  CC: paraview@paraview.org mailto:paraview@paraview.org
  Subject: Re: [Paraview] Annotate time filter - regard real time


  to generate a string from you field data (using a ProgrammableFilter):

  script:

  pdo = self.GetOutput();
  pdo.ShallowCopy(self.GetInput());
  a = self.GetInput().GetInformation().Get(pdo.DATA_TIME_STEP());
  # this is your convertion routine
  time_label = Days from 12/12/1800 =  + str(a*100)  + : +
str((a*100)%2) +  ...days
  label = vtk.vtkStringArray();
  label.SetNumberOfComponents(1);
  label.Resize(1);
  label.SetName(TimeLabel);
  label.SetValue(0,time_label);
  pdo.GetFieldData().AddArray(label)

  del label

  then you use a AnnotateGlobalData Filter.

  Done




  Le 02/03/2015 15:07, Madalena S. Malhadas a écrit :
   But how do I do it? Can you explain the steps please?

   Regards
   Madalena

   -
   From: felipe.bor...@ec-nantes.fr
mailto:felipe.bor...@ec-nantes.fr mailto:felipe.bor...@ec-nantes.fr
mailto:felipe.bor...@ec-nantes.fr
   Date: Mon, 2 Mar 2015 14:18:06 +0100
   CC: paraview@paraview.org mailto:paraview@paraview.org

Re: [Paraview] Mismatched image size returned from ViewPort image render

2015-03-04 Thread Scott Wittenburg
Hi Jordan,

   I wonder if that is the issue that is addressed in this topic:

http://review.source.kitware.com/#/t/5425/

   If so, I think this fix may be merged soon, as it has already been
approved.  If you built the ParaView release you're running yourself, you
could always try to check out the topic and see if it fixes the issue
you're seeing.

Cheers,
Scott




On Tue, Mar 3, 2015 at 1:32 PM, Jordan Deyton deyto...@ornl.gov wrote:

 ParaView gurus,

 I am working on a project that uses the JSON RPC protocols provided by
 ParaViewWeb. I've noticed that the image quality for ViewPorts seems bad
 regardless of what is specified in the call to viewport.image.render (docs
 here: http://www.paraview.org/ParaView3/Doc/Nightly/www/js-
 doc/index.html#!/api/protocols.ParaViewWebViewPortImageDelivery ).

 After decoding the returned image from the Base64 encoding, the JPEG image
 comes out as 636x420, while the quality is listed as 100 and the original
 size is 1440x850.

 The JSON object passed to viewport.image.render looks like

 {args:[{
 localtime:1425413914878,
 view:-1,
 size:[1440,850],
 quality:100}]
 }

 While the returned object from that RPC call looks like

 {
 image: very long encoded image text here,
 localTime: 0,
 stale: false,
 size: [1440,850],
 format: jpeg;base64,
 global_id: 315,
 mtime: 3068929,
 workTime: 1
 }

 I've used two separate Base64 decoders, and both result in a JPEG image
 that is 636x420, not the reported 1440x850.

 Any idea what could be the problem here? Is this a bug in ParaViewWeb? I'm
 running the latest stable ParaView release (4.3.1) on RHEL.

 Thanks,
 Jordan

 --
 Jordan Deyton
 Oak Ridge National Laboratory
 Telephone: (865) 574-1091
 Email: deyto...@ornl.gov

 ___
 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


[Paraview] Density of streamlines using StreamTracerWithCustomSource

2015-03-04 Thread Daniel Bruno
Hello all.

I'm using StreamTracerWithCustomSource filter to generate streamlines shed
from a specific surface. There are no problems to achieve my goals but I
was not able to find a way to control the density of streamlines.

Is it possible to control the number of streamlines that are shed when
using StreamTracerWithCustomSource filter?

Thank you so much for your help.

Regards,


Daniel.
___
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] Density of streamlines using StreamTracerWithCustomSource

2015-03-04 Thread Andy Bauer
I believe that the streamline density is based on the points from the
custom source. If you add or remove points in the custom source you should
get more or less streamlines, respectively.

On Wed, Mar 4, 2015 at 1:05 PM, Daniel Bruno danielbr...@gmail.com wrote:

 Hello all.

 I'm using StreamTracerWithCustomSource filter to generate streamlines shed
 from a specific surface. There are no problems to achieve my goals but I
 was not able to find a way to control the density of streamlines.

 Is it possible to control the number of streamlines that are shed when
 using StreamTracerWithCustomSource filter?

 Thank you so much for your help.

 Regards,


 Daniel.

 ___
 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


Re: [Paraview] Superbuilds and clusters

2015-03-04 Thread Utkarsh Ayachit
Alan,

What do you mean by it isn't remote rendering? Does it say display is
not accessible and hence cannot use remote rendering? Don't you have X
server running? If not, then use, you'd need to use OSMesa.

Utkarsh

On Tue, Mar 3, 2015 at 11:09 AM, Scott, W Alan wasc...@sandia.gov wrote:
 I am trying to use the superbuild to create pvserver on a cluster.  It
 appears to be running in parallel, but isn’t remote rendering.  The issue i
 believe is that the Superbuild isn’t building with Mesa.   I have done an
 ldd for mesa in the lib/paraview4-3 directory, and when I turn on Show
 Annotation, Remote Rendering says no.

 I am turning on ENABLE_mesa (-DENABLE_mesa:BOOL=ON).  Should I be using
 osmesa instead?  Any ideas what I am doing wrong?

 Thanks!!

 Alan


 ___
 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


[Paraview] Rotational Degrees of Freedom

2015-03-04 Thread Teo Ioannis
In many applications particularly engineering ones, structural finite
elements are used such as beams and shells. In the case of beams, in
addition to degrees of freedom representing translations there exist
rotational degrees of freedom. Is there a way to make paraview 'recognize'
these rotational degrees of freedom so that it's able to produce a correct
deformed shape visualization?

Thank you for your help.

Manitaras Theofilos
___
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] [EXTERNAL] Re: Superbuilds and clusters

2015-03-04 Thread Scott, W Alan
When I try to search the binaries (i.e., pvserver and associated libraries), as 
follows, I don't see mesa.  When I do this search on a good, I made it myself 
build, I do see mesa.

cd ../lib/paraview.4.3
ldd * | egrep -i mesa

Next, when I try to run with MPI, on the nodes of the clusters, 8 processes, I 
get the following:  Display is not accessible on the server side.  Remote 
rendering will be disabled..  

And, as expected, when I visualize wavelet, I see remote rendering is off.  
This is with a remote rendering threshold of 0.  I also have Show Annotation on.

OK, I don't know what you are talking about, so I assume I am not running an X 
server.  Let me rebuild overnight with OSMesa.  What is the difference?

Alan

-Original Message-
From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] 
Sent: Wednesday, March 04, 2015 1:37 PM
To: Scott, W Alan
Cc: paraview@paraview.org
Subject: [EXTERNAL] Re: [Paraview] Superbuilds and clusters

Alan,

What do you mean by it isn't remote rendering? Does it say display is not 
accessible and hence cannot use remote rendering? Don't you have X server 
running? If not, then use, you'd need to use OSMesa.

Utkarsh

On Tue, Mar 3, 2015 at 11:09 AM, Scott, W Alan wasc...@sandia.gov wrote:
 I am trying to use the superbuild to create pvserver on a cluster.  It 
 appears to be running in parallel, but isn’t remote rendering.  The issue i
 believe is that the Superbuild isn’t building with Mesa.   I have done an
 ldd for mesa in the lib/paraview4-3 directory, and when I turn on Show 
 Annotation, Remote Rendering says no.

 I am turning on ENABLE_mesa (-DENABLE_mesa:BOOL=ON).  Should I be 
 using osmesa instead?  Any ideas what I am doing wrong?

 Thanks!!

 Alan


 ___
 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


[Paraview] Help with producing a X Y plot of a scalar

2015-03-04 Thread Nikolaos Beratlis
Hi,

I have a cartesian grid and two scalars U, W that I read into paraview as
follows:

?xml version=1.0 ?
!DOCTYPE Xdmf SYSTEM Xdmf.dtd []
Xdmf xmlns:xi=http://www.w3.org/2003/XInclude; Version=2.2
  Information Name=MetaData Value=ID-23454/
  Domain
Grid Name=Eulerian Grid GridType=Uniform
  Topology TopologyType=3DRectMesh NumberOfElements=   202   100
100/
  Geometry GeometryType=VXVYVZ
DataItem Dimensions= 100 NumberType=Float Precision=4
Format=HDF
 ../grid3dc_vxvyvz_VP.h5sp:/X
/DataItem
DataItem Dimensions= 100 NumberType=Float Precision=4
Format=HDF
 ../grid3dc_vxvyvz_VP.h5sp:/Y
/DataItem
DataItem Dimensions= 202 NumberType=Float Precision=4
Format=HDF
 ../grid3dc_vxvyvz_VP.h5sp:/Z
/DataItem
  /Geometry
  Attribute Name=U AttributeType=Scalar Center=Node
DataItem Dimensions=  202  100  100 NumberType=Float
Precision=4 Format=HDF
 ../oy_tmavg_cyl2car.h5sp:/var3d
/DataItem
  /Attribute
  Attribute Name=W AttributeType=Scalar Center=Node
DataItem Dimensions=  202  100  100 NumberType=Float
Precision=4 Format=HDF
 ../oy_tmavg_cyl2car.h5sp:/var3d
/DataItem
  /Attribute
   /Grid
  /Domain
/Xdmf


I then multiply U*W using the calculator to get a new variable UW. What I
want to do is create a scatter plot of the variable UW at a particular a
slice in the domain where in the X-axis I have U variable and in the Y-axis
I have W variable. The end result would like this


​
Paraview has a function called scatter plot but it only allows to specify
one axis, the X-axis data. How can I specify the Y-axis to be a different
variable?

Regards,

Nikos
___
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] Vector Glyph with FieldData

2015-03-04 Thread ABE Hiroshi
Dear All,

I am new to the ParaView.
The software is quite nice and I can use it without any problems in many cases.
But I get a trouble in rendering 2D vector with my vtk file which contains 
“Field Data” that is:

# vtk DataFile Version 2.0
mag.vtk, Created by Freefem++ 
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 46764 float
…
FIELD FieldData 1
mag.field 2 94956 float
2.45639014e+00 -6.87174034e+00 1.62697911e+00 -8.08913136e+00
…

This is actually 2D FEM magnetic field data (Hx, Hy) produced by FreeFem++.

Loading the vtk file(mag.vtk) to ParaView and I can see “mag.field” in the 
ParaView’s menu and “Magnitude/X/Y” next to the menu.
Then select “mag.vtk” in Pipeline Browser and click Glyph icon in the ParaView 
menu to see some weird Arrow in RenderView window.
I expect something in “Vectors” in Active Attributes” in “Properties” panel 
but the menu is empty.

I would be really obliged if you could tell me the missing things in my 
procedure to show vector field with Arrow Glyph.

My Env. is :

iMac 21.5 inch Late 2013 (16GB main memory, Core i5 2.9GHz, NVIDIA GeForce GT 
750M)
Mac OS X 10.9.5
ParaView 4.3.1 64 bit

And I have some documents,

ParaViewTutorial42.pdf
TheParaViewGuide-v4.3-CC-Edition.pdf

ABE Hiroshi
 from Tokorozawa, JAPAN

___
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