Re: [Paraview] [EXTERNAL] Geometric center of Dataset

2013-03-29 Thread Favre Jean

If you are looking for the Centroid of the dataset, then I would propose 3 
lines of python in a Programmable Filter, using numpy's mean. Cut and paste in 
the script section of a PF:


from paraview.vtk.dataset_adapter import numpyTovtkDataArray

coords = inputs[0].Points

print mean(coords)

see page 85 of the ParaViewManual for other examples

http://www.paraview.org/files/v3.98/ParaViewManual.v3.98.pdf
-
Jean
CSCS
___
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] Failed to locate server for newly registered proxy ( animation , AnimationScene2 )

2013-03-29 Thread Chris Kees
Hi,

I've been having an intermittent failures initiating connections to
remove servers. That is, I have successfully used paraview in
cliient/server mode many times but also had many connection failures.
All I get is the error:

Failed to locate server for newly registered proxy ( animation ,
AnimationScene2 )

It shows up after I select the server configuration and click connect
(i.e. when it would normally be ssh'ing to the server). Ssh works and
I have no trouble connecting to the servers manually with ssh.
Paraview crashes after the error message is printed.  Sometimes after
3 or 4 failures(restarting paraview each time), the connection will
succeed.

I'm attaching the servers files. This happens with paraview 3.14.1 and
3.14.0, on mac os x 10.8 and ubuntu 12.10, and on commercial broadband
and gigabit ethernet connections. I am using kitware paraview binaries
on the client, while the server binaries match those versions and were
built by sys admins. Unfortunately we don't have paraview 3.98
installed on the servers yet so I can't test the latest. The
configurations I'm using out of the list are 'garnet', 'diamond', and
ERDC Utility Server. Same error for all configurations at about the
same frequency.

Any ideas?

Thanks,
Chris


default_servers.pvsc
Description: Binary data
___
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] Quadrature in Paraview

2013-03-29 Thread Burlen Loring

Hi afad sfgsfdgsfd,

Fixes for bugs introduced by changes in VTK's xml file format are in the 
pipeline, so you'll have to checkout the latest git HEAD and build 
ParaView from source to get the bug fixes. If that's something you're 
willing to do, here are first steps


# get sources
$ git clone --recursive git://www.paraview.org/ParaView.git
# apply the patch
# patch is attached and I just now submitted to PV, will show up in PV 
after the next review.

$ cd ParaView
$ git am -3 0001-QuadraturePoints-any-integer-type-for-offsets.patch
# build pv

That will get you the bug fixes. Build it, use default build opts is fine.

Then if you like you can get the test data, and open the file 
ParaViewData/Data/blow.vtk, construct the pipeline showed in the post 
(http://markmail.org/message/6qz3ebszvny4vwxp#query:+page:1+mid:6qz3ebszvny4vwxp+state:results). 
That shows how it's supposed to work.


$ git clone www.paraview.org/ParaViewData.git

Now onto your data, the xml you gave is incorrect , it's missing the 
offset array. let me see if I can get your example working, I'll post a 
follow up, hopefully in a few minutes.


Burlen


On 03/28/2013 12:43 AM, afad sfgsfdgsfd wrote:
I am trying to understand quadrature in paraview.  I am running finite 
element simulations in which I have displacements at the nodes of the 
element, and stress/strain at the quadrature points.  I have linear 
and quadratic hexahedral or tetrahedral elements.  I have been 
spending days trying to figure out how to implement data on the 
quadrature points.  I have downloaded just about every document I can 
find.


First:  I downloaded CylinderQuadratic.vtk as shown in 
VTK-Quadrature-Point-Design-Doc.  I was able to generate the 
quadrature scheme dictioanary and generate quadrature points.  But, 
when I tried to use the Interpolate to Quadrature Points filter I 
could not select QuadratureOffset in the Select Source Array drop down 
menu.  I was able to do this when using the Generate Quadrature Points 
filter.


Second:  Considering I couldn't figure out how to interpolate 
quadrature points using CylinderQuadratic.vtk, I decided to 
investigate just using a single element.  I took quadraticTetra01.vtu 
and modified it to only have on quadratic tetrahedron.  Then I used 
paraview to generate the quadrature scheme dictionary.  I saved this 
into a VTU file in order to see how to implement the dictionary on my 
own.  When I tried to reopen this new VTU file, paraview was unable to 
open the file.  Specifically, it choked on the QuadratureOffset data 
array.

This is the file that paraview cannot open

VTKFile type=UnstructuredGrid version=0.1 byte_order=LittleEndian
  UnstructuredGrid
Piece NumberOfPoints=10 NumberOfCells=1
  PointData Scalars=scalars
DataArray type=Float32 Name=scalars format=ascii 
RangeMin=0 RangeMax=1

  1 1 1 1 0 0
  0 0 0 0
/DataArray
  /PointData
  CellData
DataArray type=Int64 Name=QuadratureOffset format=ascii 
RangeMin=0 RangeMax=0
InformationKey name=DICTIONARY 
location=vtkQuadratureSchemeDefinition

  vtkQuadratureSchemeDefinition
CellType value=24
/CellType
NumberOfNodes value=10
/NumberOfNodes
NumberOfQuadraturePoints value=4
/NumberOfQuadraturePoints
ShapeFunctionWeights
  1.5625e-001 -9.3750e-002 
-9.3750e-002 -9.3750e-002
  3.1250e-001 6.2500e-002 
3.1250e-001 3.1250e-001
  6.2500e-002 6.2500e-002 
-9.3750e-002 7.03125000e-002
  -1.17187500e-001 -9.3750e-002 
2.8125e-001 4.21875000e-001
  9.3750e-002 6.2500e-002 
2.8125e-001 9.3750e-002
  -9.3750e-002 -1.17187500e-001 
7.03125000e-002 -9.3750e-002
  9.3750e-002 4.21875000e-001 
2.8125e-001 6.2500e-002
  9.3750e-002 2.8125e-001 
-9.3750e-002 -5.46875000e-002
  -5.46875000e-002 3.7500e-001 
3.1250e-002 1.5625e-002
  3.1250e-002 3.7500e-001 
1.8750e-001 1.8750e-001

/ShapeFunctionWeights
QuadratureWeights
  2.1219962781139991e-314 2.1219957914593380e-314 
1.1013158155129526e-311 1.1501217187461613e-311

/QuadratureWeights
  /vtkQuadratureSchemeDefinition
/InformationKey
  0
/DataArray
  /CellData
  Points
DataArray type=Float32 Name=Points NumberOfComponents=3 
format=ascii RangeMin=0 RangeMax=1.1874342107

  0 0 0 1 0 0
  0.5 

Re: [Paraview] Quadrature in Paraview

2013-03-29 Thread Andy Bauer
Hi,

FYI: We now generate installers for ParaView nightly for git HEAD. They're
available at http://www.paraview.org/paraview/resources/software.php and by
choosing Nightly for Version of ParaView.

Andy

On Fri, Mar 29, 2013 at 12:43 PM, Burlen Loring blor...@lbl.gov wrote:

  Hi afad sfgsfdgsfd,

 Fixes for bugs introduced by changes in VTK's xml file format are in the
 pipeline, so you'll have to checkout the latest git HEAD and build ParaView
 from source to get the bug fixes. If that's something you're willing to do,
 here are first steps

 # get sources
 $ git clone --recursive git://www.paraview.org/ParaView.git
 # apply the patch
 # patch is attached and I just now submitted to PV, will show up in PV
 after the next review.
 $ cd ParaView
 $ git am -3 0001-QuadraturePoints-any-integer-type-for-offsets.patch
 # build pv

 That will get you the bug fixes. Build it, use default build opts is fine.

 Then if you like you can get the test data, and open the file
 ParaViewData/Data/blow.vtk, construct the pipeline showed in the post (
 http://markmail.org/message/6qz3ebszvny4vwxp#query:+page:1+mid:6qz3ebszvny4vwxp+state:results).
 That shows how it's supposed to work.

 $ git clone www.paraview.org/ParaViewData.git

 Now onto your data, the xml you gave is incorrect , it's missing the
 offset array. let me see if I can get your example working, I'll post a
 follow up, hopefully in a few minutes.

 Burlen


 On 03/28/2013 12:43 AM, afad sfgsfdgsfd wrote:

  I am trying to understand quadrature in paraview.  I am running finite
 element simulations in which I have displacements at the nodes of the
 element, and stress/strain at the quadrature points.  I have linear and
 quadratic hexahedral or tetrahedral elements.  I have been spending days
 trying to figure out how to implement data on the quadrature points.  I
 have downloaded just about every document I can find.

  First:  I downloaded CylinderQuadratic.vtk as shown in
 VTK-Quadrature-Point-Design-Doc.  I was able to generate the quadrature
 scheme dictioanary and generate quadrature points.  But, when I tried to
 use the Interpolate to Quadrature Points filter I could not select
 QuadratureOffset in the Select Source Array drop down menu.  I was able to
 do this when using the Generate Quadrature Points filter.

  Second:  Considering I couldn't figure out how to interpolate quadrature
 points using CylinderQuadratic.vtk, I decided to investigate just using a
 single element.  I took quadraticTetra01.vtu and modified it to only have
 on quadratic tetrahedron.  Then I used paraview to generate the quadrature
 scheme dictionary.  I saved this into a VTU file in order to see how to
 implement the dictionary on my own.  When I tried to reopen this new VTU
 file, paraview was unable to open the file.  Specifically, it choked on the
 QuadratureOffset data array.
 This is the file that paraview cannot open

  VTKFile type=UnstructuredGrid version=0.1 byte_order=LittleEndian
   UnstructuredGrid
 Piece NumberOfPoints=10 NumberOfCells=1
   PointData Scalars=scalars
 DataArray type=Float32 Name=scalars format=ascii
 RangeMin=0 RangeMax=1
   1 1 1 1 0 0
   0 0 0 0
 /DataArray
   /PointData
   CellData
 DataArray type=Int64 Name=QuadratureOffset format=ascii
 RangeMin=0 RangeMax=0
 InformationKey name=DICTIONARY
 location=vtkQuadratureSchemeDefinition
   vtkQuadratureSchemeDefinition
 CellType value=24

 /CellType
 NumberOfNodes value=10

 /NumberOfNodes
 NumberOfQuadraturePoints value=4

 /NumberOfQuadraturePoints
 ShapeFunctionWeights
   1.5625e-001 -9.3750e-002
 -9.3750e-002 -9.3750e-002
   3.1250e-001 6.2500e-002
 3.1250e-001 3.1250e-001
   6.2500e-002 6.2500e-002
 -9.3750e-002 7.03125000e-002
   -1.17187500e-001 -9.3750e-002
 2.8125e-001 4.21875000e-001
   9.3750e-002 6.2500e-002
 2.8125e-001 9.3750e-002
   -9.3750e-002 -1.17187500e-001
 7.03125000e-002 -9.3750e-002
   9.3750e-002 4.21875000e-001
 2.8125e-001 6.2500e-002
   9.3750e-002 2.8125e-001
 -9.3750e-002 -5.46875000e-002
   -5.46875000e-002 3.7500e-001
 3.1250e-002 1.5625e-002
   3.1250e-002 3.7500e-001
 1.8750e-001 1.8750e-001
 /ShapeFunctionWeights
 QuadratureWeights
   2.1219962781139991e-314 2.1219957914593380e-314
 1.1013158155129526e-311 

Re: [Paraview] Quadrature in Paraview

2013-03-29 Thread Burlen Loring
That's good to know, however, you should follow my instructions for now 
since you have to apply the patch I sent.


On 03/29/2013 09:49 AM, Andy Bauer wrote:

Hi,

FYI: We now generate installers for ParaView nightly for git HEAD. 
They're available at 
http://www.paraview.org/paraview/resources/software.php and by 
choosing Nightly for Version of ParaView.


Andy

On Fri, Mar 29, 2013 at 12:43 PM, Burlen Loring blor...@lbl.gov 
mailto:blor...@lbl.gov wrote:


Hi afad sfgsfdgsfd,

Fixes for bugs introduced by changes in VTK's xml file format are
in the pipeline, so you'll have to checkout the latest git HEAD
and build ParaView from source to get the bug fixes. If that's
something you're willing to do, here are first steps

# get sources
$ git clone --recursive git://www.paraview.org/ParaView.git
http://www.paraview.org/ParaView.git
# apply the patch
# patch is attached and I just now submitted to PV, will show up
in PV after the next review.
$ cd ParaView
$ git am -3 0001-QuadraturePoints-any-integer-type-for-offsets.patch
# build pv

That will get you the bug fixes. Build it, use default build opts
is fine.

Then if you like you can get the test data, and open the file
ParaViewData/Data/blow.vtk, construct the pipeline showed in the
post

(http://markmail.org/message/6qz3ebszvny4vwxp#query:+page:1+mid:6qz3ebszvny4vwxp+state:results).
That shows how it's supposed to work.

$ git clone www.paraview.org/ParaViewData.git
http://www.paraview.org/ParaViewData.git

Now onto your data, the xml you gave is incorrect , it's missing
the offset array. let me see if I can get your example working,
I'll post a follow up, hopefully in a few minutes.

Burlen


On 03/28/2013 12:43 AM, afad sfgsfdgsfd wrote:

I am trying to understand quadrature in paraview.  I am running
finite element simulations in which I have displacements at the
nodes of the element, and stress/strain at the quadrature points.
 I have linear and quadratic hexahedral or tetrahedral elements.
 I have been spending days trying to figure out how to implement
data on the quadrature points.  I have downloaded just about
every document I can find.

First:  I downloaded CylinderQuadratic.vtk as shown in
VTK-Quadrature-Point-Design-Doc.  I was able to generate the
quadrature scheme dictioanary and generate quadrature points.
 But, when I tried to use the Interpolate to Quadrature Points
filter I could not select QuadratureOffset in the Select Source
Array drop down menu.  I was able to do this when using the
Generate Quadrature Points filter.

Second:  Considering I couldn't figure out how to interpolate
quadrature points using CylinderQuadratic.vtk, I decided to
investigate just using a single element.  I took
quadraticTetra01.vtu and modified it to only have on quadratic
tetrahedron.  Then I used paraview to generate the quadrature
scheme dictionary.  I saved this into a VTU file in order to see
how to implement the dictionary on my own.  When I tried to
reopen this new VTU file, paraview was unable to open the file.
 Specifically, it choked on the QuadratureOffset data array.
This is the file that paraview cannot open

VTKFile type=UnstructuredGrid version=0.1
byte_order=LittleEndian
  UnstructuredGrid
Piece NumberOfPoints=10 NumberOfCells=1
  PointData Scalars=scalars
DataArray type=Float32 Name=scalars format=ascii
RangeMin=0 RangeMax=1
  1 1 1 1 0 0
  0 0 0 0
/DataArray
  /PointData
  CellData
DataArray type=Int64 Name=QuadratureOffset
format=ascii RangeMin=0 RangeMax=0
InformationKey name=DICTIONARY
location=vtkQuadratureSchemeDefinition
  vtkQuadratureSchemeDefinition
CellType value=24
/CellType
NumberOfNodes value=10
/NumberOfNodes
NumberOfQuadraturePoints value=4
/NumberOfQuadraturePoints
ShapeFunctionWeights
  1.5625e-001 -9.3750e-002
-9.3750e-002 -9.3750e-002
  3.1250e-001 6.2500e-002
3.1250e-001 3.1250e-001
  6.2500e-002 6.2500e-002
-9.3750e-002 7.03125000e-002
  -1.17187500e-001 -9.3750e-002
2.8125e-001 4.21875000e-001
  9.3750e-002 6.2500e-002
2.8125e-001 9.3750e-002
  -9.3750e-002 -1.17187500e-001
7.03125000e-002 -9.3750e-002
  9.3750e-002 4.21875000e-001

[Paraview] Gatekeeper Review Summary

2013-03-29 Thread Sebastien Jourdain
SUMMARY
-
Topics merged into master:
(VTK)   13950-gl2ps-size-factors
   13973_do_not_auto_replace_algorithm_executive
   13976_api_for_extra_catalyst_scripts
fix-paraviewweb-view-update
renable_catalyst_tests


-
Topics reverted from next:
  python-wrapping
  quadrature-points-xml
___
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] Line thickness vector image

2013-03-29 Thread David Lonie
Hi Nikolay,

The new GL2PS line and point scaling factor branch has been merged into
ParaView's master branch today.

The easiest way to use the feature is to go to File  Export Scene and
select one of the vector graphics formats (ps, eps, svg, or pdf), and the
configuration dialog that pops up will let you toggle the scaling factors.
The default value is 5/7, like it was before.

If you want to continue using your script, the mechanism is a little
different. Rather than calling the global functions to set the scaling
factors, the factors are now a property of the vtkGL2PSExporter instance
with their own setters/getters. They will need to be set for each
vtkGL2PSExporter used.

Let me know if you have any problems with the feature or notice any
regressions with the new implementation.

Dave


On Fri, Mar 22, 2013 at 10:58 AM, Nikolay Kostov kos...@rice.edu wrote:

  Hi Dave,
 Please let me know if you think this is something which can be solved in
 the next few weeks or if I should look at other ways of exporting the
 images (non-vector)?

 Thanks a lot,
 Nik



 On 3/19/2013 2:14 PM, David Lonie wrote:

 On Tue, Mar 19, 2013 at 2:26 PM, Nikolay Kostov kos...@rice.edu wrote:

  The pdf image has very thick lines whereas what I see in paraview
 before I export looks fine.
 Before I was using a python script which called vtkGL2PSExporter and I
 had:
 gl2ps.SetGlobalPointSizeFactor(size)
 gl2ps.SetGlobalLineWidthFactor(size)

 This code doesn't work with paraview 3.98 anymore and I am not able to
 select line width and point size anywhere.
 Maybe the problem has to do with the newer version of vtkGL2PSExporter?


  These functions were removed for the new vtkGL2PSExporter class. Let me
 see what I can do, something similar can likely be added.

  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] Time series of files with different dimensions

2013-03-29 Thread Berk Geveci
Hi Jiri,

Unfortunately, this particular feature is not currently supported in
ParaView. There are various reasons behind this and it is too complex to
explain here. You can get around this however. You can create a multi-block
dataset (a vtm file) that points to the rectilinear grid. Too see what this
looks like, apply Group Dataset filter to your data and save it out as a
vtm file. This should generate a vtm file and a vtr (or vti if this is
uniform rectilinear grid) file. You can file more information about the vtr
format here:

http://www.vtk.org/VTK/img/file-formats.pdf

Best,
-berk


On Thu, Mar 28, 2013 at 5:01 PM, Jiri Vyskocil s...@centrum.cz wrote:

 Hello,

 I have a series of ASCII VTK files with 3D uniform rectilinear grid
 data. Each file has different dimensions - one cooridnate (x) grows in
 time. Let's say the first file is 4x9x9, next is 5x9x9 ... up to
 100x9x9. When I load the files separately, they display correctly, but
 if i load them as a time series together (from the file chooser, grouped
 by timestep number). They are all rendered only as big as the first file
 (4x9x9).

 If i step through time, the Bounds and Extents on the Information
 tab show correct values - the x coordinate is growing. But in the
 rendering window will only show a 4x9x9 box for all files. I use a 3D
 view with slice representation, but even the Outline stays small.

 Today, I accidentaly managed to open one of the series, while still
 having another file open, and suddenly it displayed correctly - the
 dimensionsof the rendered graph were the actual dimensions as displayed
 in the information tab, so it should be possible to do this - but I have
 no idea, how I did it.

 Is there some option to make ParaView update the dimensions for each
 file in the series?

 I'm using ParaView 3.98.1, Linux, 64-bit. I attache some sample files,
 in case it would help.

 Thanks,
 Jiri Vyskocil


 ___
 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