Re: [Paraview] Display number of cells over time

2008-11-14 Thread Jean Favre
Matthias Moeller wrote:
 Hi all,

 I've got a time series of unstructured grid files. Besides the
 visualization of a scalar variable I would like to display some
 statistical data. In particular, I would like to display the number of
 elements over time (animation).

I have tried via the Python interface. This works fine for me:

px = servermanager.ProxyManager()

view = servermanager.GetRenderView()

label = servermanager.sources.TextSource()

# here you must get the right data. I assumed reader was the source of
your data

label.Text = # of cells: %d %
reader.GetDataInformation().GetNumberOfCells()

labelRep = servermanager.filters.TextSourceRepresentation(Input=label)

view.Representations.append(labelRep)
view.StillRender()


getting the right handle on your dataset is left as an exercise, since
it is application dependent


Jean --
Swiss National SuperComputing Center





___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] problems with vtu format

2008-11-14 Thread Giovanni Delibra

Hello everybody
I've been trying to write down a routine to export the results from my cfd  
code in paraview format
I've been able to work with vtk format but wher I try to write in vtu  
(xml) format paraview 3.4.0 read the file without giving any errors, the  
log shows a correct number of cells and points and a listing of all the  
variables but simply NOTHING appear in the workspace

The same behaviour appears both on win and linux machines

Can anyone help me guess what's wrong with this file?
what should appear is a simple cube made of hexaedrals with different  
dimensions (as a matter of fact they are clustered near the walls)


As it's quite long (almost 1000 points) I won't stick it in this message,  
I'm trying to zip and attach it; if attachments are not allowed (it's not  
clear from the ML web page) I've uploaded it on rapidshare (max 10  
downloads allowed)

http://rs367.rapidshare.com/files/163719862/chan1_180.vtu
If not let me just know how to show this file...
Thanks in advance,
--
Giovanni Delibra
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] scalar to vector filter

2008-11-14 Thread Weirs, V Gregory

Use the calculator filter.

For the expression:
scalar1*iHat + scalar2*jHat + scalar3*kHat



On 11/14/08 9:31 AM, S. Levent Yilmaz [EMAIL PROTECTED] wrote:

In Paraview (any version),  is there a preset filter that appends
scalar attributes to form a vector attiribute?
If not how, if at all, can I write one using the programmable filter?

thanks,
Levent

--
Server Levent Yilmaz
Mechanical Engineering
University of Pittsburgh
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] : plot

2008-11-14 Thread David E DeMarle
Yes.

Look at the first python source example on this wiki page:
http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.

You will have to adapt it to suit your format, changing it to skip
over lines starting with %, using white space as a delimiter instead
of , and to give each VTK coordinate an Z value of 0.0.

cheers,
Dave DeMarle

2008/11/14 Samuele Zampini [EMAIL PROTECTED]:
 Hello,
 I would like to know if it is possible to plot - with Paraview - such a text
 file. I should get a 2D plot.
 The first column is the x and the second is the y.

 Could you help?

 Thanks,
 SZ
 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview





-- 
David E DeMarle
Kitware, Inc.
RD Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] scalar to vector filter

2008-11-14 Thread Dominik Szczerba
I was able to achieve it using the Calculator filter and save my 
particular expression as a custom filter. This did not unfortunately 
work for transient data :(


Dominik

S. Levent Yilmaz wrote:

In Paraview (any version),  is there a preset filter that appends
scalar attributes to form a vector attiribute?
If not how, if at all, can I write one using the programmable filter?

thanks,
Levent



--
Dominik Szczerba, PhD
Computational Physics Group
IT'IS Foundation
http://www.itis.ethz.ch
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] : plot

2008-11-14 Thread Utkarsh Ayachit

Samuele,

You have to use CVS paraview. This feature is not available in 3.4.
With CVS ParaView, you should split the view and create a new XY plot 
view and then turn on the visibility for this reader in that view.


Utkarsh

Samuele Zampini wrote:

Dear Utkarsh,
I have tried to follow your advice...
But my Disply menu is different (see picture attached)...
How can I do?


Il giorno ven, 14/11/2008 alle 12.21 -0500, Utkarsh Ayachit ha scritto:

Samuele,

Attached your file converted to a CSV file (I've remove all  % and blank 
lines and make it a 3 column table).


With CVS paraview you can simple load this in and then plot usign the XY 
plot. I've attached an image showing the options choosen on the display 
tab (don;t forget to choose Attribute Mode == Rows).


Utkarsh

Samuele Zampini wrote:
 Hello,
 I would like to know if it is possible to plot - with Paraview - such a 
 text file. I should get a 2D plot.

 The first column is the x and the second is the y.
 
 Could you help?
 
 Thanks,

 SZ
 
 
 
 
 ___

 ParaView mailing list
 ParaView@paraview.org mailto:ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview





___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] problems with vtu format

2008-11-14 Thread Eric E. Monson

Hey Giovanni,

Based on a quick look at the file (with ParaView 3.4, OS X) it seems  
that all of the point coordinates that make up your cells are located  
at coordinate (0.1667, 0.0, 0.2281278). So, you can only see  
anything if you change the representation to Points, where you can  
see a single point. You can see that the data is in there if you do a  
Cell Data to Point Data filter and then glyph that with arrows. I'll  
attach a screenshot.


Hope this helps,
-Eric

--
Eric E Monson
Duke Visualization Technology Group

inline: vtuArrows.jpg

On Nov 14, 2008, at 10:15 AM, Giovanni Delibra wrote:


Hello everybody
I've been trying to write down a routine to export the results from  
my cfd code in paraview format
I've been able to work with vtk format but wher I try to write in  
vtu (xml) format paraview 3.4.0 read the file without giving any  
errors, the log shows a correct number of cells and points and a  
listing of all the variables but simply NOTHING appear in the  
workspace

The same behaviour appears both on win and linux machines

Can anyone help me guess what's wrong with this file?
what should appear is a simple cube made of hexaedrals with  
different dimensions (as a matter of fact they are clustered near  
the walls)


As it's quite long (almost 1000 points) I won't stick it in this  
message, I'm trying to zip and attach it; if attachments are not  
allowed (it's not clear from the ML web page) I've uploaded it on  
rapidshare (max 10 downloads allowed)

http://rs367.rapidshare.com/files/163719862/chan1_180.vtu
If not let me just know how to show this file...
Thanks in advance,
--
Giovanni Delibra
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] : plot

2008-11-14 Thread Samuele Zampini
Just a question about the cvs Paraview: I have followed this
installation guide:
http://www.paraview.org/paraview/resources/software.html

What should I do, now?

I don't know!

Thanks for help,
Samuele.


Il giorno ven, 14/11/2008 alle 14.11 -0500, Utkarsh Ayachit ha scritto:

 Samuele,
 
 You have to use CVS paraview. This feature is not available in 3.4.
 With CVS ParaView, you should split the view and create a new XY plot 
 view and then turn on the visibility for this reader in that view.
 
 Utkarsh
 
 Samuele Zampini wrote:
  Dear Utkarsh,
  I have tried to follow your advice...
  But my Disply menu is different (see picture attached)...
  How can I do?
  
  
  Il giorno ven, 14/11/2008 alle 12.21 -0500, Utkarsh Ayachit ha scritto:
  Samuele,
 
  Attached your file converted to a CSV file (I've remove all  % and blank 
  lines and make it a 3 column table).
 
  With CVS paraview you can simple load this in and then plot usign the XY 
  plot. I've attached an image showing the options choosen on the display 
  tab (don;t forget to choose Attribute Mode == Rows).
 
  Utkarsh
 
  Samuele Zampini wrote:
   Hello,
   I would like to know if it is possible to plot - with Paraview - such a 
   text file. I should get a 2D plot.
   The first column is the x and the second is the y.
   
   Could you help?
   
   Thanks,
   SZ
   
   
   
   
   ___
   ParaView mailing list
   ParaView@paraview.org mailto:ParaView@paraview.org
   http://www.paraview.org/mailman/listinfo/paraview
  
  
  
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Paraview 3.5.0

2008-11-14 Thread David E DeMarle
On Fri, Nov 14, 2008 at 6:30 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hello,

 do you know where and how I can get the 3.5.0 Paraview version?

 Thanks
 for help,
 Samuele.
 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview


3.5 means cvs or current development version. You must download and
build from source to get that. Follow the instructions on the paraview
download page for checking out the source.

cheers,
-- 
David E DeMarle
Kitware, Inc.
RD Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview