Re: [Paraview] How to pass array from Server to Client with as 'Information Helper"

2010-03-26 Thread Michael Jackson
THANKS! that worked great. One last item - where would I look for an  
example of have a custom widget (QListWidget) that is NOT getting  
registered with the proxy mananger, so that when something changes,  
like the selection, the "Accept" button gets "lighted up". I am trying  
to work through the pqContourWidget but not sure if that is the best  
place to start.

___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio


On Mar 26, 2010, at 4:40 PM, Utkarsh Ayachit wrote:


Try returning a vtkIntArray from your reader instead and use
 as the information helper. (Look at it's
use in readers.xml).

Utkarsh

On Fri, Mar 26, 2010 at 4:36 PM, Michael Jackson
 wrote:

The problem is down in a generated file on the server side.

 if (!strcmp("GetNeighborList",method) &&  
msg.GetNumberOfArguments(0) == 3)

   {
   vtkClientServerStreamDataArg temp0(msg, 0, 2);
   if(temp0)
 {
 op->GetNeighborList(temp0);
 return 1;
 }
   }

The problem is that msg.GetNumberOfArguments(0) returns 2 and NOT  
3. I have
no idea of the internals of the msg object to try and figure out  
what is
trying to be passed. Is the client sending in a index also? 2  
pointers? no

idea.

I'll just assume from this that it is basically impossible to pass  
an array
from the server to the Client in an "Information Only" fashion. I  
guess I
can encode the values to a string and send that. Seems odd to have  
to encode

the data into a string...

If anyone else has a better Idea I would much appreciate it.
___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio


On Mar 26, 2010, at 3:23 PM, Michael Jackson wrote:

I have a custom reader. Part of the reader is getting a  
"NeighborList"
which is an vtkIntArray object although I have declared the  
following

methods in my "reader" class:

 int* GetNeighborList();
 void GetNeighborList(int* list);
 vtkIdType GetNumberOfNeighbors();

And in my ServerManagerXML file I have the following:

  
  
  This property lists the neighbors of the grain

  

On the Client side I have the following bit of code to populate a
QListWidget:

void pqH5TiDataReaderPanel::updateNeighborList(QListWidget*  
qListWidget,

QString property)
{
 vtkSMProperty* smProperty =
this->proxy()->GetProperty(property.toAscii());
 if (NULL == smProperty)
 {
  std::string msg = "SMProperty [int] was NULL for ";
  msg.append(property.toAscii() );
  DebugTrace(<< msg.c_str() );
  return;
 }
 vtkSMIntVectorProperty* intProperty
  =  
vtkSMIntVectorProperty::SafeDownCast(smProperty);

 if (NULL == intProperty)
 {
  std::string msg = "Could not SafeDownCase to  
vtkSMIntVectorProperty for

property ";
  msg.append(property.toAscii() );
  DebugTrace(<< msg.c_str() );
  return;
 }
 //intProperty->GetArgumentIsArray();
 int* elements = intProperty->GetElements();
 int nElements = intProperty->GetNumberOfElements(); //<== ALWAYS 0
 qListWidget->clear();  // Remove all the content

 for (int i = 0; i < nElements; ++i)
 {
  qListWidget->addItem(QString::number(elements[i])); //<  
NEVER GETS

HERE
 }
}

So, what am I doing wrong? I have tried reading through the relevant
sections of the "ParaView Guide" but nothing is really jumping  
out. Also
went looking for examples somewhere in the ParaView source code  
but came up

empty. The ContourWidget is close but it "sends" its array, it never
receives one from the server.

Any pointers would be great and much appreciated.
___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio




___
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


Re: [Paraview] How to pass array from Server to Client with as 'Information Helper"

2010-03-26 Thread Utkarsh Ayachit
Try returning a vtkIntArray from your reader instead and use
 as the information helper. (Look at it's
use in readers.xml).

Utkarsh

On Fri, Mar 26, 2010 at 4:36 PM, Michael Jackson
 wrote:
> The problem is down in a generated file on the server side.
>
>  if (!strcmp("GetNeighborList",method) && msg.GetNumberOfArguments(0) == 3)
>    {
>    vtkClientServerStreamDataArg temp0(msg, 0, 2);
>    if(temp0)
>      {
>      op->GetNeighborList(temp0);
>      return 1;
>      }
>    }
>
> The problem is that msg.GetNumberOfArguments(0) returns 2 and NOT 3. I have
> no idea of the internals of the msg object to try and figure out what is
> trying to be passed. Is the client sending in a index also? 2 pointers? no
> idea.
>
> I'll just assume from this that it is basically impossible to pass an array
> from the server to the Client in an "Information Only" fashion. I guess I
> can encode the values to a string and send that. Seems odd to have to encode
> the data into a string...
>
> If anyone else has a better Idea I would much appreciate it.
> ___
> Mike Jackson                      www.bluequartz.net
> Principal Software Engineer       mike.jack...@bluequartz.net
> BlueQuartz Software               Dayton, Ohio
>
>
> On Mar 26, 2010, at 3:23 PM, Michael Jackson wrote:
>
>> I have a custom reader. Part of the reader is getting a "NeighborList"
>> which is an vtkIntArray object although I have declared the following
>> methods in my "reader" class:
>>
>>  int* GetNeighborList();
>>  void GetNeighborList(int* list);
>>  vtkIdType GetNumberOfNeighbors();
>>
>> And in my ServerManagerXML file I have the following:
>>     >       command="GetNeighborList"
>>       argument_is_array="1"
>>       number_of_elements="0"
>>       repeat_command="0"
>>       number_of_elements_per_command="1"
>>       use_index="0" >
>>       
>>       
>>           This property lists the neighbors of the grain
>>         
>>       
>>
>> On the Client side I have the following bit of code to populate a
>> QListWidget:
>>
>> void pqH5TiDataReaderPanel::updateNeighborList(QListWidget* qListWidget,
>> QString property)
>> {
>>  vtkSMProperty* smProperty =
>> this->proxy()->GetProperty(property.toAscii());
>>  if (NULL == smProperty)
>>  {
>>   std::string msg = "SMProperty [int] was NULL for ";
>>   msg.append(property.toAscii() );
>>   DebugTrace(<< msg.c_str() );
>>   return;
>>  }
>>  vtkSMIntVectorProperty* intProperty
>>                   = vtkSMIntVectorProperty::SafeDownCast(smProperty);
>>  if (NULL == intProperty)
>>  {
>>   std::string msg = "Could not SafeDownCase to vtkSMIntVectorProperty for
>> property ";
>>   msg.append(property.toAscii() );
>>   DebugTrace(<< msg.c_str() );
>>   return;
>>  }
>>  //intProperty->GetArgumentIsArray();
>>  int* elements = intProperty->GetElements();
>>  int nElements = intProperty->GetNumberOfElements(); //<== ALWAYS 0
>>  qListWidget->clear();  // Remove all the content
>>
>>  for (int i = 0; i < nElements; ++i)
>>  {
>>   qListWidget->addItem(QString::number(elements[i])); //< NEVER GETS
>> HERE
>>  }
>> }
>>
>> So, what am I doing wrong? I have tried reading through the relevant
>> sections of the "ParaView Guide" but nothing is really jumping out. Also
>> went looking for examples somewhere in the ParaView source code but came up
>> empty. The ContourWidget is close but it "sends" its array, it never
>> receives one from the server.
>>
>> Any pointers would be great and much appreciated.
>> ___
>> Mike Jackson                      www.bluequartz.net
>> Principal Software Engineer       mike.jack...@bluequartz.net
>> BlueQuartz Software               Dayton, Ohio
>>
>>
>
> ___
> 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


Re: [Paraview] How to pass array from Server to Client with as 'Information Helper"

2010-03-26 Thread Michael Jackson

The problem is down in a generated file on the server side.

  if (!strcmp("GetNeighborList",method) &&  
msg.GetNumberOfArguments(0) == 3)

{
vtkClientServerStreamDataArg temp0(msg, 0, 2);
if(temp0)
  {
  op->GetNeighborList(temp0);
  return 1;
  }
}

The problem is that msg.GetNumberOfArguments(0) returns 2 and NOT 3. I  
have no idea of the internals of the msg object to try and figure out  
what is trying to be passed. Is the client sending in a index also? 2  
pointers? no idea.


I'll just assume from this that it is basically impossible to pass an  
array from the server to the Client in an "Information Only" fashion.  
I guess I can encode the values to a string and send that. Seems odd  
to have to encode the data into a string...


If anyone else has a better Idea I would much appreciate it.
___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio


On Mar 26, 2010, at 3:23 PM, Michael Jackson wrote:

I have a custom reader. Part of the reader is getting a  
"NeighborList" which is an vtkIntArray object although I have  
declared the following methods in my "reader" class:


 int* GetNeighborList();
 void GetNeighborList(int* list);
 vtkIdType GetNumberOfNeighbors();

And in my ServerManagerXML file I have the following:
 
   
   
   This property lists the neighbors of the grain
 
   

On the Client side I have the following bit of code to populate a  
QListWidget:


void pqH5TiDataReaderPanel::updateNeighborList(QListWidget*  
qListWidget, QString property)

{
 vtkSMProperty* smProperty = this->proxy()- 
>GetProperty(property.toAscii());

 if (NULL == smProperty)
 {
   std::string msg = "SMProperty [int] was NULL for ";
   msg.append(property.toAscii() );
   DebugTrace(<< msg.c_str() );
   return;
 }
 vtkSMIntVectorProperty* intProperty
   = vtkSMIntVectorProperty::SafeDownCast(smProperty);
 if (NULL == intProperty)
 {
   std::string msg = "Could not SafeDownCase to  
vtkSMIntVectorProperty for property ";

   msg.append(property.toAscii() );
   DebugTrace(<< msg.c_str() );
   return;
 }
 //intProperty->GetArgumentIsArray();
 int* elements = intProperty->GetElements();
 int nElements = intProperty->GetNumberOfElements(); //<== ALWAYS 0
 qListWidget->clear();  // Remove all the content

 for (int i = 0; i < nElements; ++i)
 {
   qListWidget->addItem(QString::number(elements[i])); //< NEVER  
GETS HERE

 }
}

So, what am I doing wrong? I have tried reading through the relevant  
sections of the "ParaView Guide" but nothing is really jumping out.  
Also went looking for examples somewhere in the ParaView source code  
but came up empty. The ContourWidget is close but it "sends" its  
array, it never receives one from the server.


Any pointers would be great and much appreciated.
___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio




___
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] How to pass array from Server to Client with as 'Information Helper"

2010-03-26 Thread Michael Jackson
I have a custom reader. Part of the reader is getting a "NeighborList"  
which is an vtkIntArray object although I have declared the following  
methods in my "reader" class:


  int* GetNeighborList();
  void GetNeighborList(int* list);
  vtkIdType GetNumberOfNeighbors();

And in my ServerManagerXML file I have the following:
  


This property lists the neighbors of the grain
  


On the Client side I have the following bit of code to populate a  
QListWidget:


void pqH5TiDataReaderPanel::updateNeighborList(QListWidget*  
qListWidget, QString property)

{
  vtkSMProperty* smProperty = this->proxy()- 
>GetProperty(property.toAscii());

  if (NULL == smProperty)
  {
std::string msg = "SMProperty [int] was NULL for ";
msg.append(property.toAscii() );
DebugTrace(<< msg.c_str() );
return;
  }
  vtkSMIntVectorProperty* intProperty
= vtkSMIntVectorProperty::SafeDownCast(smProperty);
  if (NULL == intProperty)
  {
std::string msg = "Could not SafeDownCase to  
vtkSMIntVectorProperty for property ";

msg.append(property.toAscii() );
DebugTrace(<< msg.c_str() );
return;
  }
  //intProperty->GetArgumentIsArray();
  int* elements = intProperty->GetElements();
  int nElements = intProperty->GetNumberOfElements(); //<== ALWAYS 0
  qListWidget->clear();  // Remove all the content

  for (int i = 0; i < nElements; ++i)
  {
qListWidget->addItem(QString::number(elements[i])); //< NEVER  
GETS HERE

  }
}

So, what am I doing wrong? I have tried reading through the relevant  
sections of the "ParaView Guide" but nothing is really jumping out.  
Also went looking for examples somewhere in the ParaView source code  
but came up empty. The ContourWidget is close but it "sends" its  
array, it never receives one from the server.


Any pointers would be great and much appreciated.
___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio


___
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] Dashboard Failures from *.hooperlab

2010-03-26 Thread Kevin H. Hobbs
On 03/26/2010 10:52 AM, Kevin H. Hobbs wrote:
> On 03/26/2010 09:55 AM, Dave Partyka wrote:
>> Hey Kevin, For those 5 can you run them by hand and see if you notice
>> why they are hanging/failing? 

> pv.XdmfReadStructuredGrid.XdmfReadStructuredGridCollection.XdmfGridAttributes
> 
> I tried to narrow the problem down so I ran each of the three parts
> separately. The XdmfGridAttributes.xml part is failing.
> 

XdmfGridAttributes.xml mentions only one file :

$PARAVIEW_DATA_ROOT/Data/RodPlate/RodPlate.xmf

When I load this file in paraview there are many data arrays but they
are all zeros except for "MaterialID" which is all ones.



signature.asc
Description: OpenPGP digital signature
___
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] TecPlot problem or question for alternative format

2010-03-26 Thread Fabian Wein
Zhanping,

> Try removing 'K = 1' from the zone header to see it the Tecplot reader
> works. As Berk suggested, you may converted the data to legacy VTK.

Thanks for your reply, it did not work. I'll create a VTK file by
myself, it's
not that much.

Fabian
___
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] Paraview: python script from the command line

2010-03-26 Thread Rick Angelini
Utkarsh - this also works well under some circumstances, but leave it to 
the customers to figure out how to break it.   If we startup paraview:


paraview --server=Host --script=myscript.py

And "Host" is a reverse-connection, the python script executes locally 
without waiting for the remote server to start up. 


Utkarsh Ayachit wrote:


I've added a new --script option to specify python script to be run on 
startup.


Utkarsh

On Fri, Mar 19, 2010 at 3:49 PM, Utkarsh Ayachit
 wrote:
> That's a reasonable request. We don't have such an option currently.
> Let me see if I can add it before 3.8.
>
> Utkarsh
>
> On Fri, Mar 19, 2010 at 3:42 PM, Rick Angelini
>  wrote:
>> Is there a way to startup paraview and have it run a python script 
from the

>> command line?   I know that I can load a state with the "--state" flag.
>>  And, I can run a python script from within ParaView by going to 
the python

>> tool and running the script. As far as I can tell, I'm limited to
>> running the python script after ParaView GUI starts up.It would 
be nice

>> to be able to load that same script from the command line.
>> ___
>> 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


Re: [Paraview] vtu: how to represent variation in cell end values?

2010-03-26 Thread Berk Geveci
The only way to define discontinuities like that is to split cells. So
you would have:

Cell1: point1 -> point2
Cell2: point3 -> point4

where point2 == point3. I know it is a waste of memory but it is the only way.

-berk

On Fri, Mar 26, 2010 at 12:56 PM, Emily Leigh  wrote:
> Berk,
>
> I tried that, but the problem is that each cell/element has its own end
> data, and those data are not the same at each point.  I'm not sure how I
> could "double define" the cell end data at each point and get Paraview to
> understand that and show it correctly.
>
> If I reference the example in my original post, here are the data I have:
>
>> > Locally this variation in y-force is:
>> > Cell 1: 100=>-500
>> > Cell 2: +500=>-200
>> >
>> > Summing the effect of the y-force at each point:
>> > Point 1: 100
>> > Point 2: -500+500 = 0
>> > Point 3: -200
>
> If I assign the end values as point data, then I think I only have two
> options, both of which don't do what I need:
> 1. Sum the effect of the y-force at each point and include this as scalar
> point data: {100, 0, -200} for points 1-3
> 2. Have two sets of scalar point data, "cell end 1" {100, 500} for points
> 1-2 and "cell end 2" {-500, -200} for points 2-3
>
> These are the two things I tried -- perhaps I'm missing something.  Do you
> have any other ideas on how I could set up the cell data variation as point
> data?
>
> Thanks!
>
> -Emily
>
>
>> Date: Fri, 26 Mar 2010 11:40:20 -0400
>> Subject: Re: [Paraview] vtu: how to represent variation in cell end
>> values?
>> From: berk.gev...@kitware.com
>> To: ec...@hotmail.com
>> CC: paraview@paraview.org
>>
>> Emily,
>>
>> It sounds like you need point data not cell data. Point data arrays
>> contain a value per point (those values are interpolated to obtain
>> values that are in the interior of the cell), cell data array contain
>> a value per cell (which is assumed to be constant across the cell).
>> VTK will interpolate point arrays linearly over a cell of type Line.
>>
>> -berk
>>
>> On Thu, Mar 25, 2010 at 3:43 PM, Emily Leigh  wrote:
>> > Hello,
>> >
>> > I am writing a vtu file to represent data for a simple dataset in
>> > Paraview
>> > and I have run into a problem.  What I would like to do is to be able to
>> > represent a variation in a field value over the length of a cell and
>> > look at
>> > this variation as a single layer in Paraview (not separately as the sets
>> > of
>> > end values for end 1 and end 2, respectively).  More simply, each cell
>> > is
>> > assigned a field value at each end point and I want to be able to
>> > visualize
>> > this variation in end values for each cell for all of the cells in my
>> > (small) model.
>> >
>> > As the simplest example of my problem, let's say I have 3 points and 2
>> > cells
>> > between the points.  Cell 1 has point 1 at its left end and point 2 at
>> > its
>> > right end and cell 2 has point 2 at its left end and point 3 at its left
>> > end
>> > (in my field this might represent a beam finite element). 1---2---3
>> > Cell 1: 1=>2 (finite element 1)
>> > Cell 2: 2=>3 (finite element 2)
>> >
>> > I've figured out how to represent the field data at the points
>> > (physically
>> > these would be displacements, rotations, etc.).  However, I need to
>> > figure
>> > out what syntax to use to represent the variation in a physical quantity
>> > over the length of the cell.  Let's say the y-force for element 1 has
>> > values
>> > of 100 at point 1 and -500 at point 2, and that y-force for element 2
>> > has
>> > values of +500 at point 2 and -200 at point 3.
>> >
>> > Locally this variation in y-force is:
>> > Cell 1: 100=>-500
>> > Cell 2: +500=>-200
>> >
>> > Summing the effect of the y-force at each point:
>> > Point 1: 100
>> > Point 2: -500+500 = 0
>> > Point 3: -200
>> >
>> > I have tried the following syntax:
>> > 
>> > 
>> > 100 -500
>> > 500 -200
>> > 
>> > However, when I used the above syntax I found that in Paraview I can
>> > only
>> > view the x-points (100 and 500), the y-points (-500 and -200) or the
>> > vector
>> > magnitudes for each cell (509.9 and  538.5) at one time.
>> >
>> > Does anyone know what syntax I need?
>> >
>> > (Once I figure out the syntax, I'll be all set to modify the code I
>> > wrote to
>> > read in my data and output it to vtu format).
>> >
>> > Thanks!
>> >
>> > -Emily
>> > 
>> > Hotmail: Trusted email with powerful SPAM protection. Sign up now.
>> > ___
>> > 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
>> >
>> >
>
> 
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up
> now.
_

Re: [Paraview] Python scripting: Updating PVDReader source when pvd file has changed and rendering latest time step

2010-03-26 Thread Florian Rathgeber
Translating that to Python as I understand it would correspond to:
reader.FileName = ""
reader.FileName = original

That does the trick, thank you! I had tried that before and had hoped
there is a nicer way, since I get VTK errors about not being able to
open the file and read the file information on the terminal and the
output window.

Florian

On 22.03.2010 14:57, Utkarsh Ayachit wrote:
> The vtkPVDReader (you may want to look at it's superclasses as well)
> does not re-read the XML file, unless the reader is modified. What you
> really need, is somehow call "Modified()" on the reader. One way would
> be setting the filename to empty (then call
> vtkSMPRoxy::UpdateVTKObjects()) and then setting it back  (and again
> calling vtkSMProxy::UpdateVTKObjects()".
> 
> Utkarsh
> 
> On Fri, Mar 19, 2010 at 8:40 AM, Florian Rathgeber  wrote:
>> Hi,
>>
>> I'm trying to get ParaView to work in an interactive context for
>> numerical simulations. The first goal is to have ParaView visualize time
>> steps as they are output by the solver (vtu for individual steps, pvd as
>> collection). I searched the wiki, mailing lists etc. and it seems this
>> cannot be done easily.
>>
>> My current approach uses the python scripting interface. I open a socket
>> in python and wait for messages from the solver that a time step was
>> finished and a new file written out. When this happens for the first
>> time I initialize the visualization, i.e. load the pvd file and set some
>> basic properties. For every subsequent event I set ViewTime to the
>> latest sample and re-render the view. Is there a more elegant way to do
>> that?
>>
>> This works as long as the pvd file contains all the expected time steps
>> from the beginning. But the solver updates the pvd file for every vtu
>> file written out and appends it to the collection. Hence, when I
>> initially load the pvd, I only have the first time step. I tried all
>> methods PVDReader provides but there seems to be no way to re-read the
>> file of a PVDReader source. Did I miss something?
>>
>> I wonder if it might be a better option to try to realize this as a
>> plugin, since in the end is should also be possible to send messages
>> back to the solver to trigger a parameter change for the next time step
>> while the simulation is running. As I'm not so familiar with the VTK /
>> ParaView source and have no experience writing ParaView plugins I'd be
>> happy to get some input or estimate if that is achievable in a
>> reasonable amount of time.
>>
>> Best regards,
>> Florian
>> ___
>> 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


Re: [Paraview] TecPlot problem or question for alternative format

2010-03-26 Thread Zhanping Liu
Try removing 'K = 1' from the zone header to see it the Tecplot reader
works. As Berk suggested, you may converted the data to legacy VTK.
-Zhanping

On Fri, Mar 26, 2010 at 11:19 AM, Fabian Wein <
fabian.w...@am.uni-erlangen.de> wrote:

> > It seems the Tecplot file does not provide the section of x and y
> > corrdinates (before the solution) at all, or you just skipped it at your
> > e-mail for simplification purposes?
>
> No, I did not skip anything, this is the data I have. The X and Y
> coordinates
> are just data values as the following RHO, U, V, ...
>
> So the TecPlot file is not valid?
>
> Which simple file format for 3.6.2 do you suggest to convert the data to?
>
> Thanks,
>
> Fabian
> ___
> 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
>



-- 
Zhanping Liu, PhD
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x 138
http://www.zhanpingliu.org
___
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] Algorithm causing reader RequestData when running

2010-03-26 Thread Berk Geveci
Burlen is correct.

On Fri, Mar 26, 2010 at 11:30 AM, Burlen Loring  wrote:
> If I'm not mistaken, when creating a VTK pipeline inside of a PV filter, you
> need to make a shallow copy of the input dataset in order to keep the PV
> pipeline isolated as your VTK pipeline executes.
>
> Try making a shallow copy of "input" and passing that into
> "extractBlockFilter", and see if it helps.
>
> Burlen
>
> Paul Edwards wrote:
>>
>> Hi,
>>
>> I am writing an algorithm to operate on a vtkMultiBlockDataSet where I
>> would like to extract blocks depending on field data that is set.
>> Internally in my algorithm I am using the vtkExtractBlock filter and
>> when this is updated it causes the RequestData for my reader to be
>> executed again.  This doesn't happen when applying ExtractBlock in
>> ParaView.  Below I have included an example RequestData that causes
>> the data to be reloaded (note: this only happens when running in
>> parallel):
>>
>> 8<-
>> int vtkTestMulti::RequestData(
>>        vtkInformation* vtkNotUsed(request),
>>        vtkInformationVector** inputVector,
>>        vtkInformationVector* outputVector)
>> {
>>
>>    vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);
>>    vtkMultiBlockDataSet* input = vtkMultiBlockDataSet::SafeDownCast(
>>            inInfo->Get(vtkDataObject::DATA_OBJECT()));
>>
>>    vtkInformation* outInfo = outputVector->GetInformationObject(0);
>>    vtkMultiBlockDataSet* output = vtkMultiBlockDataSet::SafeDownCast(
>>            outInfo->Get(vtkDataObject::DATA_OBJECT()));
>>
>>    VTK_CREATE(vtkExtractBlock, extractBlockFilter);
>>    extractBlockFilter->SetInput(input);
>>    extractBlockFilter->AddIndex(1);
>>    extractBlockFilter->Update();
>>    output->ShallowCopy(extractBlockFilter->GetOutput());
>>
>>    return 1;
>> }
>> ->8
>>
>> Can anyone see what I am doing wrong or provide any pointers for where to
>> look?
>>
>> Thanks in advance,
>> Paul
>> ___
>> 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
>
___
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] TecPlot problem or question for alternative format

2010-03-26 Thread Berk Geveci
I suggest legacy VTK (http://www.vtk.org/VTK/img/file-formats.pdf). It
sounds like this is a structured grid. One thing: VTK formats (and VTK
itself) does not directly support 2D so you will have to add a Z
value. Setting all Zs to 0 should work fine.

On Fri, Mar 26, 2010 at 4:53 AM, Fabian Wein
 wrote:
> Hi,
>
> I got a code which exports data (LBM) in a very simple format:
>
> ---
> TITLE=" LBM data"
> VARIABLES = "X", "Y", "RHO", "U", "V", "VOR"
>  ZONE T = "Z"
>  I=  351, J=  122, K=1,  ZONETYPE=ORDERED
>  DATAPACKING=POINT
>  DT=(SINGLE SINGLE SINGLE SINGLE SINGLE SINGLE)
>    1    1  0.000D+00  0.000D+00
> 0.000D+00  0.000D+00
>    2    1  0.000D+00  0.000D+00
> 0.000D+00  0.000D+00
> ...
> ---
> The format of point data is: x, y, several scalar data values
>
> I was told this is TecPlot and the guy uses TecPlot for visualization.
>
> I exchanged the format "D+" by "e+" and opened the file with the CVS
> version from 03/25/2010.
>
> The file is recognized by the TecPlot reader but the geometry of the
> visualization is not correct.
>
> I understand that TecPlot is quite complicated (I saw just the number
> of pages in the data format docu).
>
> I assume that it is more easy for me to convert the simple data to a
> structure that PV 3.6.2 can read.
> What is the most simple PV format for this?
>
> Thanks,
>
> Fabian
> ___
> 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


Re: [Paraview] svn-buildpackage

2010-03-26 Thread Berk Geveci
Is this ParaView cvs head or 3.8 branch? I don't think that you need a
patch anymore. ParaView now supports the latest version of ffmpeg.

-berk

On Fri, Mar 26, 2010 at 10:24 AM, Cecile Forella  wrote:
> Hello,
>
> I'm trying to do a svn-buildpackage on paraview's sources and I've got the
> following error:
>
> cd . && QUILT_PATCHES=/home/forella/Debian/paraview/debian/patches quilt
> --quiltrc /dev/null push -a || test $? = 2
> Application de use-ffmpeg-swscaler.patch
> patching file VTK/IO/vtkFFMPEGWriter.cxx
> Hunk #1 FAILED at 20.
> Hunk #2 FAILED at 244.
> Hunk #3 FAILED at 259.
> 3 out of 3 hunks FAILED -- rejects in file VTK/IO/vtkFFMPEGWriter.cxx
> patching file VTK/CMake/FindFFMPEG.cmake
> Hunk #1 FAILED at 31.
> Hunk #2 FAILED at 71.
> Hunk #3 FAILED at 86.
> Hunk #4 FAILED at 96.
> 4 out of 4 hunks FAILED -- rejects in file VTK/CMake/FindFFMPEG.cmake
> patching file VTK/IO/CMakeLists.txt
> patch unexpectedly ends in middle of line
> Hunk #1 FAILED at 233.
> 1 out of 1 hunk FAILED -- rejects in file VTK/IO/CMakeLists.txt
>
> Does somebody knows how to fix it?
>
> Thank you for your help
> ___
> 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


Re: [Paraview] vtu: how to represent variation in cell end values?

2010-03-26 Thread Berk Geveci
Emily,

It sounds like you need point data not cell data. Point data arrays
contain a value per point (those values are interpolated to obtain
values that are in the interior of the cell), cell data array contain
a value per cell (which is assumed to be constant across the cell).
VTK will interpolate point arrays linearly over a cell of type Line.

-berk

On Thu, Mar 25, 2010 at 3:43 PM, Emily Leigh  wrote:
> Hello,
>
> I am writing a vtu file to represent data for a simple dataset in Paraview
> and I have run into a problem.  What I would like to do is to be able to
> represent a variation in a field value over the length of a cell and look at
> this variation as a single layer in Paraview (not separately as the sets of
> end values for end 1 and end 2, respectively).  More simply, each cell is
> assigned a field value at each end point and I want to be able to visualize
> this variation in end values for each cell for all of the cells in my
> (small) model.
>
> As the simplest example of my problem, let's say I have 3 points and 2 cells
> between the points.  Cell 1 has point 1 at its left end and point 2 at its
> right end and cell 2 has point 2 at its left end and point 3 at its left end
> (in my field this might represent a beam finite element). 1---2---3
> Cell 1: 1=>2 (finite element 1)
> Cell 2: 2=>3 (finite element 2)
>
> I've figured out how to represent the field data at the points (physically
> these would be displacements, rotations, etc.).  However, I need to figure
> out what syntax to use to represent the variation in a physical quantity
> over the length of the cell.  Let's say the y-force for element 1 has values
> of 100 at point 1 and -500 at point 2, and that y-force for element 2 has
> values of +500 at point 2 and -200 at point 3.
>
> Locally this variation in y-force is:
> Cell 1: 100=>-500
> Cell 2: +500=>-200
>
> Summing the effect of the y-force at each point:
> Point 1: 100
> Point 2: -500+500 = 0
> Point 3: -200
>
> I have tried the following syntax:
> 
> 
> 100 -500
> 500 -200
> 
> However, when I used the above syntax I found that in Paraview I can only
> view the x-points (100 and 500), the y-points (-500 and -200) or the vector
> magnitudes for each cell (509.9 and  538.5) at one time.
>
> Does anyone know what syntax I need?
>
> (Once I figure out the syntax, I'll be all set to modify the code I wrote to
> read in my data and output it to vtu format).
>
> Thanks!
>
> -Emily
> 
> Hotmail: Trusted email with powerful SPAM protection. Sign up now.
> ___
> 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


Re: [Paraview] Dashboard Failures from *.hooperlab

2010-03-26 Thread Kevin H. Hobbs
On 03/26/2010 09:55 AM, Dave Partyka wrote:
> Hey Kevin, For those 5 can you run them by hand and see if you notice
> why they are hanging/failing? On some of them it looks like pvserver
> might be crashing? Can you attach a debugger and see if you can get a
> stack trace? Thank you very much for offering to help.
> 

pvcrs.ExodusIIPanel.ExodusModeShapes

The two data servers are spinning which reminded me of an openmpi bug so
I stuck "btl_sm_num_fifos = 15" in ~/.openmpi/mca-params.conf but that
didn't help. I got back traces for the render server and the two data
servers:

(gdb) attach 4998
[Thread debugging using libthread_db enabled]
0x0032456d6f73 in __select_nocancel () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install
e2fsprogs-libs-1.41.9-2.fc11.x86_64 expat-2.0.1-8.fc11.x86_64
fontconfig-2.8.0-1.fc11.x86_64 freetype-2.3.9-5.fc11.x86_64
glib2-2.20.5-1.fc11.x86_64 glibc-2.10.2-1.x86_64
keyutils-libs-1.2-5.fc11.x86_64 krb5-libs-1.6.3-27.fc11.x86_64
libICE-1.0.4-7.fc11.x86_64 libSM-1.1.0-4.fc11.x86_64
libX11-1.2.2-1.fc11.x86_64 libXau-1.0.4-5.fc11.x86_64
libXcursor-1.1.9-4.fc11.x86_64 libXext-1.0.99.1-3.fc11.x86_64
libXfixes-4.0.3-5.fc11.x86_64 libXi-1.2.1-1.fc11.x86_64
libXinerama-1.0.3-4.fc11.x86_64 libXrandr-1.2.99.4-3.fc11.x86_64
libXrender-0.9.4-5.fc11.x86_64 libXt-1.0.5-2.fc11.x86_64
libgcc-4.4.1-2.fc11.x86_64 libpng-1.2.43-1.fc11.x86_64
libselinux-2.0.80-1.fc11.x86_64 libstdc++-4.4.1-2.fc11.x86_64
libxcb-1.2-5.fc11.x86_64 openmpi-1.4-5.fc11.x86_64
openssl-0.9.8k-5.fc11.x86_64 python-libs-2.6-12.fc11.x86_64
qt-4.6.2-8.fc11.x86_64 qt-x11-4.6.2-8.fc11.x86_64 zlib-1.2.3-22.fc11.x86_64
(gdb) bt
#0  0x0032456d6f73 in __select_nocancel () from /lib64/libc.so.6
#1  0x7fa5150d08cb in vtkSocket::SelectSockets(int const*, int,
unsigned long, int*) () from
/home/kevin/kitware/ParaView3_Build/bin/libvtkCommon.so.pv3.7
#2  0x7fa5150d1044 in vtkSocketCollection::SelectSockets(unsigned
long) () from /home/kevin/kitware/ParaView3_Build/bin/libvtkCommon.so.pv3.7
#3  0x7fa51f491584 in
vtkProcessModuleConnectionManager::MonitorConnections(unsigned long) ()
from /home/kevin/kitware/ParaView3_Build/bin/libvtkPVServerCommon.so
#4  0x7fa51f497cdc in vtkProcessModule::StartServer(unsigned long)
() from /home/kevin/kitware/ParaView3_Build/bin/libvtkPVServerCommon.so
#5  0x7fa51f4997c7 in vtkProcessModule::Start(int, char**) () from
/home/kevin/kitware/ParaView3_Build/bin/libvtkPVServerCommon.so
#6  0x7fa51f09e246 in vtkPVMain::Run(vtkPVOptions*) () from
/home/kevin/kitware/ParaView3_Build/bin/libvtkPVFilters.so
#7  0x0040112c in main ()
(gdb) detach
(gdb) attach 5001
[Thread debugging using libthread_db enabled]
0x7f19b2bd1b6b in opal_class_initialize () from
/usr/lib64/openmpi/lib/openmpi/mca_btl_sm.so
(gdb) bt
#0  0x7f19b2bd1b6b in opal_class_initialize () from
/usr/lib64/openmpi/lib/openmpi/mca_btl_sm.so
#1  0x0033c3a123aa in opal_progress () from
/usr/lib64/openmpi/lib/libopen-pal.so.0
#2  0x0033c42363c5 in ?? () from /usr/lib64/openmpi/lib/libmpi.so.0
#3  0x7f19b1b10b6a in opal_class_initialize () from
/usr/lib64/openmpi/lib/openmpi/mca_coll_tuned.so
#4  0x7f19b1b1906f in opal_class_initialize () from
/usr/lib64/openmpi/lib/openmpi/mca_coll_tuned.so
#5  0x7f19b1d2890b in opal_class_initialize () from
/usr/lib64/openmpi/lib/openmpi/mca_coll_sync.so
#6  0x0033c4253f39 in PMPI_Gatherv () from
/usr/lib64/openmpi/lib/libmpi.so.0
#7  0x7f19bb55ceb7 in vtkMPICommunicator::GatherVVoidArray(void
const*, void*, long long, long long*, long long*, int, int) () from
/home/kevin/kitware/ParaView3_Build/bin/libvtkParallel.so.pv3.7
#8  0x7f19c279b111 in
vtkMPIMoveData::DataServerGatherToZero(vtkDataObject*, vtkDataObject*)
() from /home/kevin/kitware/ParaView3_Build/bin/libvtkPVFilters.so
#9  0x7f19c279b9b6 in vtkMPIMoveData::RequestData(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) () from
/home/kevin/kitware/ParaView3_Build/bin/libvtkPVFilters.so
#10 0x7f19b8d73c44 in vtkExecutive::CallAlgorithm(vtkInformation*,
int, vtkInformationVector**, vtkInformationVector*) () from
/home/kevin/kitware/ParaView3_Build/bin/libvtkFiltering.so.pv3.7
#11 0x7f19b8d667ac in
vtkDemandDrivenPipeline::ExecuteData(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) () from
/home/kevin/kitware/ParaView3_Build/bin/libvtkFiltering.so.pv3.7
#12 0x7f19b8d44d01 in
vtkCompositeDataPipeline::ExecuteData(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) () from
/home/kevin/kitware/ParaView3_Build/bin/libvtkFiltering.so.pv3.7
#13 0x7f19b8d69819 in
vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) () from
/home/kevin/kitware/ParaView3_Build/bin/libvtkFiltering.so.pv3.7
#14 0x7f19b8eb1751 in
vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) () from
/home/kevin/kitware/ParaView3_

Re: [Paraview] Algorithm causing reader RequestData when running

2010-03-26 Thread Burlen Loring
If I'm not mistaken, when creating a VTK pipeline inside of a PV filter, 
you need to make a shallow copy of the input dataset in order to keep 
the PV pipeline isolated as your VTK pipeline executes.


Try making a shallow copy of "input" and passing that into 
"extractBlockFilter", and see if it helps.


Burlen

Paul Edwards wrote:

Hi,

I am writing an algorithm to operate on a vtkMultiBlockDataSet where I
would like to extract blocks depending on field data that is set.
Internally in my algorithm I am using the vtkExtractBlock filter and
when this is updated it causes the RequestData for my reader to be
executed again.  This doesn't happen when applying ExtractBlock in
ParaView.  Below I have included an example RequestData that causes
the data to be reloaded (note: this only happens when running in
parallel):

8<-
int vtkTestMulti::RequestData(
vtkInformation* vtkNotUsed(request),
vtkInformationVector** inputVector,
vtkInformationVector* outputVector)
{

vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);
vtkMultiBlockDataSet* input = vtkMultiBlockDataSet::SafeDownCast(
inInfo->Get(vtkDataObject::DATA_OBJECT()));

vtkInformation* outInfo = outputVector->GetInformationObject(0);
vtkMultiBlockDataSet* output = vtkMultiBlockDataSet::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));

VTK_CREATE(vtkExtractBlock, extractBlockFilter);
extractBlockFilter->SetInput(input);
extractBlockFilter->AddIndex(1);
extractBlockFilter->Update();
output->ShallowCopy(extractBlockFilter->GetOutput());

return 1;
}
->8

Can anyone see what I am doing wrong or provide any pointers for where to look?

Thanks in advance,
Paul
___
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


Re: [Paraview] TecPlot problem or question for alternative format

2010-03-26 Thread Fabian Wein
> It seems the Tecplot file does not provide the section of x and y
> corrdinates (before the solution) at all, or you just skipped it at your
> e-mail for simplification purposes?

No, I did not skip anything, this is the data I have. The X and Y
coordinates
are just data values as the following RHO, U, V, ...

So the TecPlot file is not valid?

Which simple file format for 3.6.2 do you suggest to convert the data to?

Thanks,

Fabian
___
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] Dashboard Failures from *.hooperlab

2010-03-26 Thread Kevin H. Hobbs
On 03/26/2010 09:55 AM, Dave Partyka wrote:
> Hey Kevin, For those 5 can you run them by hand and see if you notice
> why they are hanging/failing? On some of them it looks like pvserver
> might be crashing? Can you attach a debugger and see if you can get a
> stack trace? Thank you very much for offering to help.

pv.XdmfReadStructuredGrid.XdmfReadStructuredGridCollection.XdmfGridAttributes

I got an "Output Messages" window that says :

ERROR: In /home/kevin/kitware/ParaView3/VTK/IO/vtkPNGReader.cxx, line 53
vtkPNGReader (0x4bdb950): Unknown file type! Not a PNG file!

This text appeared on the console but I could not reproduce it.

I tried to narrow the problem down so I ran each of the three parts
separately. The XdmfGridAttributes.xml part is failing.






signature.asc
Description: OpenPGP digital signature
___
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] Problem compiling plugin for using with ParaView 64

2010-03-26 Thread Michael Jackson
YES. You need to use the proper command prompt from the start menu  
when compiling Qt to make sure you get the correct type of build (32  
vs 64 bit).


AFTER you have then built Qt correctly, then launch CMake-GUI and  
configure ParaView to build using a clean build directory. MAKE SURE  
YOU select the "Visual Studio 9 2008 x64" as the generator.



___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio


On Mar 26, 2010, at 10:36 AM, Rafael Castaneda wrote:

No, I actually didn't do anything different when compiling the 32  
and 64 versions of ParaView. Just checked "BUILD SHARED LIBS",  
that's all.


There are some flags in CMAKE which I'm not certain what value  
should I set. For instance there is a flag CMAKE_CXX_FLAGS which is  
set to /DWIN32. Shouldn't be /DWIN64 or something ? Also, as I  
compiled with Visual Studio 2008, should I have compiled some sorte  
of "Qt 64bits" ? I noticed that in Start Menu I have "Visual Studio  
2008 Command Prompt" and "Visual Studio 2008 x64 win64 Command  
Prompt". Should I have compiled Qt with the second one ? As I'm not  
sure which one I've used, I'm compiling Qt again...


Thanks,
Rafael March.



2010/3/26 Sven Buijssen 
Hi Rafael,

Did you set VTK_USE_64BIT_IDS to OFF? If not that might very well
explain your problem on 64 bit. See also
http://markmail.org/message/xgjbz5rlwsedkpgo

Sven


Rafael Castaneda wrote, On 26.03.2010 14:40:
> Hey all,
>
> I have programmed a plugin, and I want to get it to work with  
ParaView

> 3.6.2  32 and/or 64 release, distributed in the website www.paraview.org
> .
>
> I compiled ParaView 3.6.2 with Qt 4.3.5 Opensource in release  
mode, then
> pointed the plugin to this version with Cmake, compiled in release  
mode,

> and it works fine: I manage to download the ParaView 3.6.2 in the
> website and load my plugin on it. This was made in a Windows Vista
> Ultimate 32bits machine.
>
> Now I want to compile it for 64 bits version. I took the source from
> ParaView 3.6.2 and Qt 4.3.5, compiled them in a Windows 7  
Professional
> 64 machine, and compiled the plugin pointing to this version. The  
plugin
> compiles and works fine with my self compiled version of ParaView.  
But,
> when I download the 64 (or the 32) version of ParaView in the  
website, I
> can't load the plugin ! It says something like: "This is not a  
valid Qt

> Plugin" when I try to load it. But I'm sure I matched the version of
> ParaView and Qt, 3.6.2 and 4.3.5.
>
> Does anyone know what might be happening ?
>
> Thanks in advance,
> Rafael.
>
>
>
>
> ___
> 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


___
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] Algorithm causing reader RequestData when running

2010-03-26 Thread Paul Edwards
Hi,

I am writing an algorithm to operate on a vtkMultiBlockDataSet where I
would like to extract blocks depending on field data that is set.
Internally in my algorithm I am using the vtkExtractBlock filter and
when this is updated it causes the RequestData for my reader to be
executed again.  This doesn't happen when applying ExtractBlock in
ParaView.  Below I have included an example RequestData that causes
the data to be reloaded (note: this only happens when running in
parallel):

8<-
int vtkTestMulti::RequestData(
vtkInformation* vtkNotUsed(request),
vtkInformationVector** inputVector,
vtkInformationVector* outputVector)
{

vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);
vtkMultiBlockDataSet* input = vtkMultiBlockDataSet::SafeDownCast(
inInfo->Get(vtkDataObject::DATA_OBJECT()));

vtkInformation* outInfo = outputVector->GetInformationObject(0);
vtkMultiBlockDataSet* output = vtkMultiBlockDataSet::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));

VTK_CREATE(vtkExtractBlock, extractBlockFilter);
extractBlockFilter->SetInput(input);
extractBlockFilter->AddIndex(1);
extractBlockFilter->Update();
output->ShallowCopy(extractBlockFilter->GetOutput());

return 1;
}
->8

Can anyone see what I am doing wrong or provide any pointers for where to look?

Thanks in advance,
Paul
___
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] TecPlot problem or question for alternative format

2010-03-26 Thread Zhanping Liu
Farian:

It seems the Tecplot file does not provide the section of x and y
corrdinates (before the solution) at all, or you just skipped it at your
e-mail for simplification purposes?

-Zhanping

On Fri, Mar 26, 2010 at 4:53 AM, Fabian Wein  wrote:

> Hi,
>
> I got a code which exports data (LBM) in a very simple format:
>
> ---
> TITLE=" LBM data"
> VARIABLES = "X", "Y", "RHO", "U", "V", "VOR"
>  ZONE T = "Z"
>  I=  351, J=  122, K=1,  ZONETYPE=ORDERED
>  DATAPACKING=POINT
>  DT=(SINGLE SINGLE SINGLE SINGLE SINGLE SINGLE)
>11  0.000D+00  0.000D+00
> 0.000D+00  0.000D+00
>21  0.000D+00  0.000D+00
> 0.000D+00  0.000D+00
> ...
> ---
> The format of point data is: x, y, several scalar data values
>
> I was told this is TecPlot and the guy uses TecPlot for visualization.
>
> I exchanged the format "D+" by "e+" and opened the file with the CVS
> version from 03/25/2010.
>
> The file is recognized by the TecPlot reader but the geometry of the
> visualization is not correct.
>
> I understand that TecPlot is quite complicated (I saw just the number
> of pages in the data format docu).
>
> I assume that it is more easy for me to convert the simple data to a
> structure that PV 3.6.2 can read.
> What is the most simple PV format for this?
>
> Thanks,
>
> Fabian
> ___
> 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
>



-- 
Zhanping Liu, PhD
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x 138
http://www.zhanpingliu.org
___
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] Problem compiling plugin for using with ParaView 64

2010-03-26 Thread Rafael Castaneda
No, I actually didn't do anything different when compiling the 32 and 64
versions of ParaView. Just checked "BUILD SHARED LIBS", that's all.

There are some flags in CMAKE which I'm not certain what value should I set.
For instance there is a flag CMAKE_CXX_FLAGS which is set to /DWIN32.
Shouldn't be /DWIN64 or something ? Also, as I compiled with Visual Studio
2008, should I have compiled some sorte of "Qt 64bits" ? I noticed that in
Start Menu I have "Visual Studio 2008 Command Prompt" and "Visual Studio
2008 x64 win64 Command Prompt". Should I have compiled Qt with the second
one ? As I'm not sure which one I've used, I'm compiling Qt again...

Thanks,
Rafael March.



2010/3/26 Sven Buijssen 

> Hi Rafael,
>
> Did you set VTK_USE_64BIT_IDS to OFF? If not that might very well
> explain your problem on 64 bit. See also
> http://markmail.org/message/xgjbz5rlwsedkpgo
>
> Sven
>
>
> Rafael Castaneda wrote, On 26.03.2010 14:40:
> > Hey all,
> >
> > I have programmed a plugin, and I want to get it to work with ParaView
> > 3.6.2  32 and/or 64 release, distributed in the website www.paraview.org
> > .
> >
> > I compiled ParaView 3.6.2 with Qt 4.3.5 Opensource in release mode, then
> > pointed the plugin to this version with Cmake, compiled in release mode,
> > and it works fine: I manage to download the ParaView 3.6.2 in the
> > website and load my plugin on it. This was made in a Windows Vista
> > Ultimate 32bits machine.
> >
> > Now I want to compile it for 64 bits version. I took the source from
> > ParaView 3.6.2 and Qt 4.3.5, compiled them in a Windows 7 Professional
> > 64 machine, and compiled the plugin pointing to this version. The plugin
> > compiles and works fine with my self compiled version of ParaView. But,
> > when I download the 64 (or the 32) version of ParaView in the website, I
> > can't load the plugin ! It says something like: "This is not a valid Qt
> > Plugin" when I try to load it. But I'm sure I matched the version of
> > ParaView and Qt, 3.6.2 and 4.3.5.
> >
> > Does anyone know what might be happening ?
> >
> > Thanks in advance,
> > Rafael.
> >
> >
> >
> >
> > ___
> > 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


[Paraview] svn-buildpackage

2010-03-26 Thread Cecile Forella

Hello,

I'm trying to do a svn-buildpackage on paraview's sources and I've got 
the following error:


cd . && QUILT_PATCHES=/home/forella/Debian/paraview/debian/patches quilt 
--quiltrc /dev/null push -a || test $? = 2

Application de use-ffmpeg-swscaler.patch
patching file VTK/IO/vtkFFMPEGWriter.cxx
Hunk #1 FAILED at 20.
Hunk #2 FAILED at 244.
Hunk #3 FAILED at 259.
3 out of 3 hunks FAILED -- rejects in file VTK/IO/vtkFFMPEGWriter.cxx
patching file VTK/CMake/FindFFMPEG.cmake
Hunk #1 FAILED at 31.
Hunk #2 FAILED at 71.
Hunk #3 FAILED at 86.
Hunk #4 FAILED at 96.
4 out of 4 hunks FAILED -- rejects in file VTK/CMake/FindFFMPEG.cmake
patching file VTK/IO/CMakeLists.txt
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 233.
1 out of 1 hunk FAILED -- rejects in file VTK/IO/CMakeLists.txt

Does somebody knows how to fix it?

Thank you for your help
___
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] Problem compiling plugin for using with ParaView 64

2010-03-26 Thread Sven Buijssen
Hi Rafael,

Did you set VTK_USE_64BIT_IDS to OFF? If not that might very well
explain your problem on 64 bit. See also
http://markmail.org/message/xgjbz5rlwsedkpgo

Sven


Rafael Castaneda wrote, On 26.03.2010 14:40:
> Hey all,
> 
> I have programmed a plugin, and I want to get it to work with ParaView
> 3.6.2  32 and/or 64 release, distributed in the website www.paraview.org
> .
> 
> I compiled ParaView 3.6.2 with Qt 4.3.5 Opensource in release mode, then
> pointed the plugin to this version with Cmake, compiled in release mode,
> and it works fine: I manage to download the ParaView 3.6.2 in the
> website and load my plugin on it. This was made in a Windows Vista
> Ultimate 32bits machine.
> 
> Now I want to compile it for 64 bits version. I took the source from
> ParaView 3.6.2 and Qt 4.3.5, compiled them in a Windows 7 Professional
> 64 machine, and compiled the plugin pointing to this version. The plugin
> compiles and works fine with my self compiled version of ParaView. But,
> when I download the 64 (or the 32) version of ParaView in the website, I
> can't load the plugin ! It says something like: "This is not a valid Qt
> Plugin" when I try to load it. But I'm sure I matched the version of
> ParaView and Qt, 3.6.2 and 4.3.5.
> 
> Does anyone know what might be happening ?
> 
> Thanks in advance,
> Rafael.
> 
> 
> 
> 
> ___
> 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


Re: [Paraview] Dashboard Failures from *.hooperlab

2010-03-26 Thread Dave Partyka
Hey Kevin, For those 5 can you run them by hand and see if you notice why
they are hanging/failing? On some of them it looks like pvserver might be
crashing? Can you attach a debugger and see if you can get a stack trace?
Thank you very much for offering to help.

On Fri, Mar 26, 2010 at 9:49 AM, Kevin H. Hobbs  wrote:

> What can I do to help with the 5 tests that have been failing on all of
> my dashboard submissions?
>
> These account for 20 / 35 of the test failures in Nightly expected and
> 25 / 217 in Nightly.
>
>
> ___
> 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


[Paraview] Dashboard Failures from *.hooperlab

2010-03-26 Thread Kevin H. Hobbs
What can I do to help with the 5 tests that have been failing on all of
my dashboard submissions?

These account for 20 / 35 of the test failures in Nightly expected and
25 / 217 in Nightly.



signature.asc
Description: OpenPGP digital signature
___
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] Problem compiling plugin for using with ParaView 64

2010-03-26 Thread Rafael Castaneda
Hey all,

I have programmed a plugin, and I want to get it to work with ParaView
3.6.2  32 and/or 64 release, distributed in the website www.paraview.org.

I compiled ParaView 3.6.2 with Qt 4.3.5 Opensource in release mode, then
pointed the plugin to this version with Cmake, compiled in release mode, and
it works fine: I manage to download the ParaView 3.6.2 in the website and
load my plugin on it. This was made in a Windows Vista Ultimate 32bits
machine.

Now I want to compile it for 64 bits version. I took the source from
ParaView 3.6.2 and Qt 4.3.5, compiled them in a Windows 7 Professional 64
machine, and compiled the plugin pointing to this version. The plugin
compiles and works fine with my self compiled version of ParaView. But, when
I download the 64 (or the 32) version of ParaView in the website, I can't
load the plugin ! It says something like: "This is not a valid Qt Plugin"
when I try to load it. But I'm sure I matched the version of ParaView and
Qt, 3.6.2 and 4.3.5.

Does anyone know what might be happening ?

Thanks in advance,
Rafael.
___
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] TecPlot problem or question for alternative format

2010-03-26 Thread Fabian Wein
Hi,

I got a code which exports data (LBM) in a very simple format:

---
TITLE=" LBM data"
VARIABLES = "X", "Y", "RHO", "U", "V", "VOR"
 ZONE T = "Z"
 I=  351, J=  122, K=1,  ZONETYPE=ORDERED
 DATAPACKING=POINT
 DT=(SINGLE SINGLE SINGLE SINGLE SINGLE SINGLE)
11  0.000D+00  0.000D+00
0.000D+00  0.000D+00
21  0.000D+00  0.000D+00
0.000D+00  0.000D+00
...
---
The format of point data is: x, y, several scalar data values

I was told this is TecPlot and the guy uses TecPlot for visualization.

I exchanged the format "D+" by "e+" and opened the file with the CVS
version from 03/25/2010.

The file is recognized by the TecPlot reader but the geometry of the
visualization is not correct.

I understand that TecPlot is quite complicated (I saw just the number
of pages in the data format docu).

I assume that it is more easy for me to convert the simple data to a
structure that PV 3.6.2 can read.
What is the most simple PV format for this?

Thanks,

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