Re: [Paraview] xdmf writer in parallel

2012-04-13 Thread Utkarsh Ayachit
Looking at the xmls definition, no, it doesn't look like it supports
parallel. Dave, is that for real or an oversight?

Utkarsh

On Thu, Apr 12, 2012 at 3:44 PM, Burlen Loring  wrote:

> XDMF writer disappears as an option from the save dialog when I run with
> mpi and np is more than 1. However, when run in serial or with np 1 it is
> available. Can the XDMF writer write in parallel?
> __**_
> 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] [vtkusers] Rotating ImageData from vti file

2012-04-13 Thread Cory Quammen
Christopher,

You didn't say exactly what you want to do with such rotated data, so
I'll make a leap and assume you just want to display it in ParaView.

If that's the case, then within ParaView, you can set a transform on a
data object by selecting the object in the pipeline browser, selecting
the Display tab, and scrolling down to the bottom until you see the
Transformation section. Here you can apply a rotation by changing the
orientation.

You can define this rotation in an XML state file that you can then
import into ParaView. To generate an example, try loading an image in
ParaView, applying a transformation, selecting File->Save State, and
then examine the contents of the state file. Look for a Property
element with a name attribute "Orientation".

Hope that helps,
Cory

On Fri, Apr 13, 2012 at 5:18 AM, Christoffer Green
 wrote:
> Thank you for the reply.
>
> Interesting, I had not realized that vtk cannot handle rotated image data
> (without conversion/interpolation), that explains why there are no such
> properties in the xml file.
>
> Well, that throws quite the wrench in my plans, but thanks for letting me
> know :)
>
> BR/ Christoffer
>
>
> On Thu, Apr 12, 2012 at 3:53 PM, David E DeMarle 
> wrote:
>>
>> No, vtk's image data is defined to be axis aligned.
>> You have to apply filters to transform them (and change type to
>> structuredgrid in the process), so the image data file formats are not
>> the place to specify the transformation you want.
>>
>> David E DeMarle
>> Kitware, Inc.
>> R&D Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4909
>>
>>
>>
>> On Wed, Apr 11, 2012 at 12:54 PM, Christoffer Green
>>  wrote:
>> > My question was if it is possible to define this within the xml file
>> > itself.
>> >
>> > Thanks.
>> >
>> > BR/ Christoffer
>> >
>> >
>> > On Wed, Apr 11, 2012 at 4:20 PM, Jothybasu Selvaraj
>> > 
>> > wrote:
>> >>
>> >> Using vtkImageReslice you could rotate the vtkImageData.
>> >>
>> >>
>> >> You need to create a vtkMatrix4x4 for the rotation nad pass this matrix
>> >> to
>> >> vtkImageReslice::
>> >> SetReSliceAxes
>> >>
>> >> Jothy
>> >>
>> >>
>> >> On Wed, Apr 11, 2012 at 3:17 PM, Jothybasu Selvaraj
>> >> 
>> >> wrote:
>> >>>
>> >>> Using vtkImageReslice you could rotate the vtkImageData?
>> >>>
>> >>> You need to create a vtkMatrix4x4 for the rotation nad pass this
>> >>> matrix
>> >>> to vtkImageReslice::SetReSliceAxes
>> >>>
>> >>> Jothy
>> >>>
>> >>> On Wed, Apr 11, 2012 at 3:10 PM, Christoffer Green
>> >>>  wrote:
>> 
>>  Hello!
>> 
>>  I have been trying to figure out if it is possible to rotate data
>>  directly from a imagedata xml file. Can anyone lend me a hand on how
>>  to do
>>  that?
>> 
>>  I am currently exporting data from matlab to a .vti imagedata xml
>>  file
>>  and importing it to paraview (that is I am writing the file without
>>  using
>>  vtk classes) but I
>>  do not know how to rotate the data. According to
>>  the www.vtk.org/VTK/img/file-formats.pdf file there is a Coordinate
>>  tag
>>  but it does not appear to have an effect when importing, but on the
>>  other hand its barely documented and I am really just guessing on how
>>  to use
>>  it.
>> 
>>  Currently I am testing with this data (but my actual data is much
>>  larger):
>> 
>>  
>>  
>>  >  Spacing="0.4
>>  0.4 0.4">
>>  
>>  
>>  0.0 0.3
>>  0.0
>>  0.5 0.2
>>  0.0
>>  1.0 0.0
>>  0.0
>>  
>>  
>>  0.1
>>   0.3
>>   0.5  0.8
>>  
>>  
>>  
>>  
>> 
>>  Thanks
>> 
>>  BR/ Christoffer
>> 
>>  ___
>>  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 VTK FAQ at:
>>  http://www.vtk.org/Wiki/VTK_FAQ
>> 
>>  Follow this link to subscribe/unsubscribe:
>>  http://www.vtk.org/mailman/listinfo/vtkusers
>> 
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Jothy
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Jothy
>> >>
>> >
>> >
>> > ___
>> > 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 VTK FAQ at:
>> > http://www.vtk.org/Wiki/VTK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.vtk.org/mailman/listinfo/vtkusers
>> >
>
>
>
> ___
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://

Re: [Paraview] [vtkusers] Rotating ImageData from vti file

2012-04-13 Thread Christoffer Green
Thank you for the suggestion.

The reason for needing rotated data is that we have one application that
handles images from magnetic resonance cameras, these images come in the
form of 3d (and time resolved) volumes and 2d planes. We also have another
application (based on paraview) that is used to display these types of
images and do things such things as create streamline visualizations with
them.
The problem then is to get data from one application to the other,
preferably in a format that supports volume rendering in paraview.
Currently it appears that we will need to set a limit on one volume for
export and then reorient every 2d imageplane object to that volumes
orientation. This way we can get everything in the right position and also
get volume rendering of the volume data. But it is a bit less then pretty.

The idea of using state files is interesting, thank you for suggesting it,
I shall give it consideration. I have previously looked at the orientation
attribute and it appears to be locked to a 3d view, add the object to
another 3d view and the orientation is reset, this would be quite bad. But
perhaps I have just misunderstood it.


BR/ Christoffer

On Fri, Apr 13, 2012 at 3:26 PM, Cory Quammen  wrote:

> Christopher,
>
> You didn't say exactly what you want to do with such rotated data, so
> I'll make a leap and assume you just want to display it in ParaView.
>
> If that's the case, then within ParaView, you can set a transform on a
> data object by selecting the object in the pipeline browser, selecting
> the Display tab, and scrolling down to the bottom until you see the
> Transformation section. Here you can apply a rotation by changing the
> orientation.
>
> You can define this rotation in an XML state file that you can then
> import into ParaView. To generate an example, try loading an image in
> ParaView, applying a transformation, selecting File->Save State, and
> then examine the contents of the state file. Look for a Property
> element with a name attribute "Orientation".
>
> Hope that helps,
> Cory
>
> On Fri, Apr 13, 2012 at 5:18 AM, Christoffer Green
>  wrote:
> > Thank you for the reply.
> >
> > Interesting, I had not realized that vtk cannot handle rotated image data
> > (without conversion/interpolation), that explains why there are no such
> > properties in the xml file.
> >
> > Well, that throws quite the wrench in my plans, but thanks for letting me
> > know :)
> >
> > BR/ Christoffer
> >
> >
> > On Thu, Apr 12, 2012 at 3:53 PM, David E DeMarle <
> dave.dema...@kitware.com>
> > wrote:
> >>
> >> No, vtk's image data is defined to be axis aligned.
> >> You have to apply filters to transform them (and change type to
> >> structuredgrid in the process), so the image data file formats are not
> >> the place to specify the transformation you want.
> >>
> >> David E DeMarle
> >> Kitware, Inc.
> >> R&D Engineer
> >> 21 Corporate Drive
> >> Clifton Park, NY 12065-8662
> >> Phone: 518-881-4909
> >>
> >>
> >>
> >> On Wed, Apr 11, 2012 at 12:54 PM, Christoffer Green
> >>  wrote:
> >> > My question was if it is possible to define this within the xml file
> >> > itself.
> >> >
> >> > Thanks.
> >> >
> >> > BR/ Christoffer
> >> >
> >> >
> >> > On Wed, Apr 11, 2012 at 4:20 PM, Jothybasu Selvaraj
> >> > 
> >> > wrote:
> >> >>
> >> >> Using vtkImageReslice you could rotate the vtkImageData.
> >> >>
> >> >>
> >> >> You need to create a vtkMatrix4x4 for the rotation nad pass this
> matrix
> >> >> to
> >> >> vtkImageReslice::
> >> >> SetReSliceAxes
> >> >>
> >> >> Jothy
> >> >>
> >> >>
> >> >> On Wed, Apr 11, 2012 at 3:17 PM, Jothybasu Selvaraj
> >> >> 
> >> >> wrote:
> >> >>>
> >> >>> Using vtkImageReslice you could rotate the vtkImageData?
> >> >>>
> >> >>> You need to create a vtkMatrix4x4 for the rotation nad pass this
> >> >>> matrix
> >> >>> to vtkImageReslice::SetReSliceAxes
> >> >>>
> >> >>> Jothy
> >> >>>
> >> >>> On Wed, Apr 11, 2012 at 3:10 PM, Christoffer Green
> >> >>>  wrote:
> >> 
> >>  Hello!
> >> 
> >>  I have been trying to figure out if it is possible to rotate data
> >>  directly from a imagedata xml file. Can anyone lend me a hand on
> how
> >>  to do
> >>  that?
> >> 
> >>  I am currently exporting data from matlab to a .vti imagedata xml
> >>  file
> >>  and importing it to paraview (that is I am writing the file without
> >>  using
> >>  vtk classes) but I
> >>  do not know how to rotate the data. According to
> >>  the www.vtk.org/VTK/img/file-formats.pdf file there is a
> Coordinate
> >>  tag
> >>  but it does not appear to have an effect when importing, but on the
> >>  other hand its barely documented and I am really just guessing on
> how
> >>  to use
> >>  it.
> >> 
> >>  Currently I am testing with this data (but my actual data is much
> >>  larger):
> >> 
> >>  
> >>  
> >>   >>  Spacing="0.4
> >>  0.4 0.4">
> >>  
> >>  
> >>  0.0
> 0.3
> 

Re: [Paraview] calculator gives incorrect results for multiblock datasets

2012-04-13 Thread Sebastien Jourdain
Hi Paul,

I add a bug entry for that here
http://www.paraview.org/Bug/view.php?id=13088 as I didn't manage to look
into it this week...

Seb

On Mon, Feb 13, 2012 at 9:34 AM, Edwards, Paul <
paul.edwar...@rolls-royce.com> wrote:

> Hi,
>
> ** **
>
> The calculator gives incorrect results for multiblock unless the variables
> have the same index internally.  This can be reproduced with the steps
> below:
>
> ** **
>
> **1.   **Create a python source that outputs vtkUnstructuredGrid with
> the following script:
>
> def add_scalar(ds, val):
>
> arr = vtk.vtkDoubleArray()
>
> arr.SetName("Scalar"+str(val))
>
> arr.SetNumberOfComponents(1)
>
> arr.SetNumberOfTuples(8)
>
> for i in range(8):
>
> arr.SetTuple1(i, float(val))
>
> output.GetPointData().AddArray(arr)
>
> ** **
>
> output = self.GetOutput()
>
> npts = 8
>
> pts = vtk.vtkPoints()
>
> pts.InsertNextPoint(-3.0, -1.0, -1.0)
>
> pts.InsertNextPoint(-1.0, -1.0, -1.0)
>
> pts.InsertNextPoint(-1.0,  1.0, -1.0)
>
> pts.InsertNextPoint(-3.0,  1.0, -1.0)
>
> pts.InsertNextPoint(-3.0, -1.0,  1.0)
>
> pts.InsertNextPoint(-1.0, -1.0,  1.0)
>
> pts.InsertNextPoint(-1.0,  1.0,  1.0)
>
> pts.InsertNextPoint(-3.0,  1.0,  1.0)
>
> output.SetPoints(pts)
>
> output.Allocate(1,1)
>
> ids = vtk.vtkIdList()
>
> for i in range(npts):
>
> ids.InsertId(i,i)
>
> add_scalar(output, 1)
>
> add_scalar(output, 2)
>
> output.InsertNextCell(vtk.VTK_HEXAHEDRON, ids)
>
> **2.   **Create a second python source that outputs
> vtkUnstructuredGrid with the following script (notice the change in order
> when adding the scalars):
>
> def add_scalar(ds, val):
>
> arr = vtk.vtkDoubleArray()
>
> arr.SetName("Scalar"+str(val))
>
> arr.SetNumberOfComponents(1)
>
> arr.SetNumberOfTuples(8)
>
> for i in range(8):
>
> arr.SetTuple1(i, float(val))
>
> output.GetPointData().AddArray(arr)
>
> ** **
>
> output = self.GetOutput()
>
> npts = 8
>
> pts = vtk.vtkPoints()
>
> pts.InsertNextPoint(-3.0, -1.0, -1.0)
>
> pts.InsertNextPoint(-1.0, -1.0, -1.0)
>
> pts.InsertNextPoint(-1.0,  1.0, -1.0)
>
> pts.InsertNextPoint(-3.0,  1.0, -1.0)
>
> pts.InsertNextPoint(-3.0, -1.0,  1.0)
>
> pts.InsertNextPoint(-1.0, -1.0,  1.0)
>
> pts.InsertNextPoint(-1.0,  1.0,  1.0)
>
> pts.InsertNextPoint(-3.0,  1.0,  1.0)
>
> output.SetPoints(pts)
>
> output.Allocate(1,1)
>
> ids = vtk.vtkIdList()
>
> for i in range(npts):
>
> ids.InsertId(i,i) 
>
> add_scalar(output, 2)
>
> add_scalar(output, 1)
>
> output.InsertNextCell(vtk.VTK_HEXAHEDRON, ids)
>
> **3.   **Group the two python sources together
>
> **4.   **Use the Calculator filter to pass through Scalar1
>
> ** **
>
> See output below:
>
> ** **
>
> 
>
> ** **
>
> Regards,
>
> Paul
>
> The data contained in, or attached to, this e-mail, may contain confidential 
> information. If you have received it in error you should notify the sender 
> immediately by reply e-mail, delete the message from your system and contact 
> +44 (0) 1332 242424 (the Rolls-Royce IT Security Director) if you need 
> assistance. Please do not copy it for any purpose, or disclose its contents 
> to any other person.
>
> An e-mail response to this address may be subject to interception or 
> monitoring for operational reasons or for lawful business practices.
>
> (c) 2012 Rolls-Royce plc
>
> Registered office: 65 Buckingham Gate, London SW1E 6AT Company number: 
> 1003142. Registered in England.
>
>
> ___
> 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] xdmf writer in parallel

2012-04-13 Thread David E DeMarle
I vaguely recall that it won't work in parallel because we don't use
the parallel flavor of hdf5, and because we didn't want to
automatically gather before writing in serial.

John Biddiscombe, does this sound right to you?

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Fri, Apr 13, 2012 at 9:05 AM, Utkarsh Ayachit
 wrote:
> Looking at the xmls definition, no, it doesn't look like it supports
> parallel. Dave, is that for real or an oversight?
>
> Utkarsh
>
> On Thu, Apr 12, 2012 at 3:44 PM, Burlen Loring  wrote:
>>
>> XDMF writer disappears as an option from the save dialog when I run with
>> mpi and np is more than 1. However, when run in serial or with np 1 it is
>> available. Can the XDMF writer write in parallel?
>> ___
>> 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] paravire crashed when dumping images during saving animation

2012-04-13 Thread Pei-Ying Hsieh
Dear Paraview experts,

I am wondering whether there is a solution to this problem.

I have completed a transient CFD analysis.  It contains a large dataset.  
When I tried to saved the images of animation, Paraview crashed.  Paraview 
sometimes saved 50 images, sometimes saved 80 images, but, never completed the 
whole time steps.

I never had any problem when the dataset is small.


It will be appreciated if someone can shed some light on this.

Pei-Ying___
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] paravire crashed when dumping images during saving animation

2012-04-13 Thread Utkarsh Ayachit
What version of ParaView are you using? Are you using OSMesa, Offscreen
rendering? Are you saving animations with pvpython or from the GUI? Is this
client-server or builtin configuration?

Utkarsh

On Fri, Apr 13, 2012 at 11:37 AM, Pei-Ying Hsieh wrote:

> Dear Paraview experts,
>
> I am wondering whether there is a solution to this problem.
>
> I have completed a transient CFD analysis.  It contains a large dataset.
> When I tried to saved the images of animation, Paraview crashed.  Paraview
> sometimes saved 50 images, sometimes saved 80 images, but, never completed
> the whole time steps.
>
> I never had any problem when the dataset is small.
>
> It will be appreciated if someone can shed some light on this.
>
> Pei-Ying
>
>
> ___
> 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] ParaView Digest, Vol 96, Issue 41

2012-04-13 Thread Pei-Ying Hsieh
Hi, Utkarsh,

Thanks for the reply!

What version of ParaView are you using? 


3.12.0 64 bit 


Are you using OSMesa, Offscreen
rendering? 


I am not sure.  How can I find out?


Are you saving animations with pvpython or from the GUI?

Form GUI.

Is this client-server ?

NO.

Pei-Ying




 From: "paraview-requ...@paraview.org" 
To: paraview@paraview.org 
Sent: Friday, April 13, 2012 12:00 PM
Subject: ParaView Digest, Vol 96, Issue 41
 
Send ParaView mailing list submissions to
    paraview@paraview.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://www.paraview.org/mailman/listinfo/paraview
or, via email, send a message with subject or body 'help' to
    paraview-requ...@paraview.org

You can reach the person managing the list at
    paraview-ow...@paraview.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ParaView digest..."


Today's Topics:

   1. paravire crashed when dumping images during saving    animation
      (Pei-Ying Hsieh)
   2. Re: paravire crashed when dumping images during saving
      animation (Utkarsh Ayachit)


--

Message: 1
Date: Fri, 13 Apr 2012 08:37:20 -0700 (PDT)
From: Pei-Ying Hsieh 
Subject: [Paraview] paravire crashed when dumping images during saving
    animation
To: "paraview@paraview.org" 
Message-ID:
    <1334331440.36857.yahoomail...@web160103.mail.bf1.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

Dear Paraview experts,

I am wondering whether there is a solution to this problem.

I have completed a transient CFD analysis.? It contains a large dataset.? 
When I tried to saved the images of animation, Paraview crashed.? Paraview 
sometimes saved 50 images, sometimes saved 80 images, but, never completed the 
whole time steps.

I never had any problem when the dataset is small.


It will be appreciated if someone can shed some light on this.

Pei-Ying
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://www.paraview.org/pipermail/paraview/attachments/20120413/a85c3e9d/attachment.html>

--

Message: 2
Date: Fri, 13 Apr 2012 11:39:07 -0400
From: Utkarsh Ayachit 
Subject: Re: [Paraview] paravire crashed when dumping images during
    saving    animation
To: Pei-Ying Hsieh 
Cc: "paraview@paraview.org" 
Message-ID:
    
Content-Type: text/plain; charset="iso-8859-1"

What version of ParaView are you using? Are you using OSMesa, Offscreen
rendering? Are you saving animations with pvpython or from the GUI? Is this
client-server or builtin configuration?

Utkarsh

On Fri, Apr 13, 2012 at 11:37 AM, Pei-Ying Hsieh wrote:

> Dear Paraview experts,
>
> I am wondering whether there is a solution to this problem.
>
> I have completed a transient CFD analysis.  It contains a large dataset.
> When I tried to saved the images of animation, Paraview crashed.  Paraview
> sometimes saved 50 images, sometimes saved 80 images, but, never completed
> the whole time steps.
>
> I never had any problem when the dataset is small.
>
> It will be appreciated if someone can shed some light on this.
>
> Pei-Ying
>
>
> ___
> 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
>
>
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://www.paraview.org/pipermail/paraview/attachments/20120413/8bd44f41/attachment-0001.htm>

--

___
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


End of ParaView Digest, Vol 96, Issue 41
___
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] Recommended Data Format

2012-04-13 Thread Truman Ellis
I am working on an academic Discontinuous Petrov-Galerkin finite element
code and would like to output to a Paraview readable format, but there
are so many options, I'm not sure where to start. So I am looking for
some recommendations.

Our requirements are as follows. Our code makes heavy use of adaptive
mesh refinement resulting in hanging nodes with both triangles and
quads, so our mesh is fairly complex. Further complicating things, in
addition to standard field variables we have trace DOFs that only live
on element edges which we would like to be able to visualize. One of my
co-authors on the code has implemented a Matlab script to plot these
things, but this is obviously not very portable.

Any suggestions?

-- 
Truman Ellis

___
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] paravire crashed when dumping images during saving animation

2012-04-13 Thread Pei-Ying Hsieh
Hi, Utkarsh,

Thanks for the reply!

What version of ParaView are you using? 


3.12.0 64 bit 


Are you using OSMesa, Offscreen
rendering? 


I am not sure.  How can I find out?


Are you saving animations with pvpython or from the GUI?

Form GUI.

Is this client-server ?

NO.
Pei-Ying



 From: Utkarsh Ayachit 
To: Pei-Ying Hsieh  
Cc: "paraview@paraview.org"  
Sent: Friday, April 13, 2012 11:39 AM
Subject: Re: [Paraview] paravire crashed when dumping images during saving 
animation
 

What version of ParaView are you using? Are you using OSMesa, Offscreen 
rendering? Are you saving animations with pvpython or from the GUI? Is this 
client-server or builtin configuration?

Utkarsh


On Fri, Apr 13, 2012 at 11:37 AM, Pei-Ying Hsieh  wrote:

Dear Paraview experts,
>
>
>I am wondering whether there is a solution to this problem.
>
>
>I have completed a transient CFD analysis.  It contains a large dataset.  
>When I tried to saved the images of animation, Paraview crashed.  Paraview 
>sometimes saved 50 images, sometimes saved 80 images, but, never completed the 
>whole time steps.
>
>
>I never had any problem when the dataset is small.
>
>
>
>It will be appreciated if someone can shed some light on this.
>
>Pei-Ying
>
>
>
>___
>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] Recommended Data Format

2012-04-13 Thread Samuel Key

  
  
Truman,

It appears to me that EnSight-formatted result file-sets can do two
things:

1) Provide ParaView with a different mesh at each time (or load)
step

2) Provide partial data to points and finite elements (ie, cells)

Though I have used EnSight-formatted result file-sets with EnSight's
'part'-construct extensively with ParaView, I have not tested these
two features. I am more certain of (1), than I am of (2).

Maybe someone else on this list can comment on ParaView's EnSight
reader at to whether or not features (1) and (2) are supported.

Sam


 

On 4/13/2012 10:53 AM, Truman Ellis wrote:

  
  I am working on an academic Discontinuous
Petrov-Galerkin finite element code and would like to output to
a Paraview readable format, but there are so many options, I'm
not sure where to start. So I am looking for some
recommendations.

Our requirements are as follows. Our code makes heavy use of
adaptive mesh refinement resulting in hanging nodes with both
triangles and quads, so our mesh is fairly complex. Further
complicating things, in addition to standard field variables we
have trace DOFs that only live on element edges which we would
like to be able to visualize. One of my co-authors on the code
has implemented a Matlab script to plot these things, but this
is obviously not very portable.

Any suggestions?
  
  -- 
Truman Ellis
  
  
  
  ___
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] Fw: Paraviewweb

2012-04-13 Thread Utkarsh Ayachit
Attached is a simple python script that shows how to make a selection
for cell visible cells through Python. You can use something similar
to setup a plugin for ParaViewWeb to make your selections and set them
up.

Utkarsh

On Tue, Apr 10, 2012 at 9:27 AM, Utkarsh Ayachit
 wrote:
> This can be a little tricky one: let me try to come up with a Python
> script that makes a selection and that should make things clearer.
>
> Utkarsh
>
> On Tue, Apr 10, 2012 at 3:53 AM, Jane Hickmott  
> wrote:
>> Hi Utkarsh,
>> Seb has indicated that you may be able to help with an issue of trying to
>> create an interactive selection with labels (see below).  I'm totally stuck.
>>  Any help will be much appreciated.
>> Thanks.
>> Jane
>>
>> - Forwarded Message -
>> From: Sebastien Jourdain 
>> To: Jane Hickmott 
>> Cc: "paraview@paraview.org" ; Utkarsh Ayachit
>> 
>> Sent: Sunday, 8 April 2012, 19:15
>> Subject: Re: [Paraview] Paraviewweb
>>
>> Ok, I miss understood your goal.
>>
>> Then, the missing part should be something like that.
>>
>> var view = paraview.GetRenderView(); // this is optional if you
>> already have a reference to the view...
>> view.setInteractionMode(2);
>>
>> Although, I've quickly tried it online with firebug and I did not
>> manage to see the selection. I'm wondering if we are both missing
>> something here... Like the creation of a selection proxy that is
>> created to get the selected screen area and convert it to a set of
>> cellId...
>>
>> Utkarsh might have a better insight on that selection part.
>>
>> Seb
>>
>> PS: Here is the mapping based on the string values
>>
>> file:
>> ParaView-SRC/ParaViewCore/ServerImplementation/Resources/views_and_representations.xml
>>
>> >       command="SetInteractionMode"
>>       number_of_elements="1"
>>       default_values="0">
>>       
>>         
>>         
>>         
>>       
>>     
>>
>> On Sun, Apr 8, 2012 at 12:43 PM, Jane Hickmott 
>> wrote:
>>> Hi Seb,
>>> Thank you for your help.  However, your code appears to only toggle
>>> 'SelectionPointLabelVisibility' on/off.  What I really need is the
>>> equivalent of 'select points on' button as on the GUI that will enable me
>>> to
>>> interactively select an area on the plot to display labels on.  I can do
>>> this easily interactively, but the python trace appears not to record all
>>> of
>>> the clicks.  There is something I'm missing...
>>>
>>> Frustrated... :(
>>>
>>> Jane.
>>>
>>> 
>>> From: Sebastien Jourdain 
>>> To: Jane Hickmott 
>>> Cc: paraview@paraview.org
>>> Sent: Sunday, 8 April 2012, 14:44
>>> Subject: Re: [Paraview] Paraviewweb
>>>
>>> Hi Jane,
>>>
>>> keep the prarview mailing list in the loop so anyone could contribute and
>>> learn.
>>>
>>> In your case that will be pretty simple.
>>> If you use jQuery as JavaScript library that could look like that:
>>>
>>> var sourceProxy = paraview.FindSource({name:"Fluid_f2.vtk"});
>>> var representation = paraview.GetDisplayProperties({proxy: sourceProxy});
>>> $('.my-button-class').click(function() {
>>>   if($(this).toggleClass("showLabel").hasClass("showLabel")) {
>>>     representation.setSelectionPointLabelVisibility(1);
>>>   } else {
>>>     representation.setSelectionPointLabelVisibility(0);
>>>   }
>>> });
>>>
>>> Or you can create a python script on the server side that can be
>>> called from the JavaScript.
>>> For more details on that you can read the plugin documentation of
>>> ParaViewWeb here.
>>>
>>> http://www.paraview.org/Wiki/ParaViewWeb_Plugins
>>>
>>> Seb
>>>
>>> On Sun, Apr 8, 2012 at 4:10 AM, Jane Hickmott 
>>> wrote:
 Thank you, Seb.  Much appreciated.  Sorry I'm a novice in Javascript.
  Here
 is a python trace of what I would like to accomplish - can anyone please
 show me how to convert this to javascript?  Many thanks.
 As an aside is there no way to call an external python module from within
 javascript?  That would solve everything.

 Jane.

 try: paraview.simple
 except: from paraview.simple import *
 paraview.simple._DisableFirstRenderCameraReset()

 Fluid_f2 = FindSource("Fluid_f2.vtk")
 DataRepresentation1 = GetDisplayProperties(Fluid_f2)
 RenderView1 = GetRenderView()
 DataRepresentation1.SelectionPointLabelVisibility = 1

 RenderView1.InteractionMode = 'Selection'

 RenderView1.CameraClippingRange = [19767.705902611211,
 38094.489486240847]
 RenderView1.InteractionMode = '3D'

 Render()

 
 From: Sebastien Jourdain 
 To: Jane Hickmott 
 Cc: "paraview@paraview.org" 
 Sent: Saturday, 7 April 2012, 19:29
 Subject: Re: [Paraview] Paraviewweb

 Hi Jane,

 The best thing to do to figure out what is needed in your use case, is
 to load your state inside ParaView and do the action that you want to
 achieve while the Python trace is recording your changes.

 Once you get the trace of your

Re: [Paraview] Time animation: Paraview, Python, XDMF

2012-04-13 Thread Utkarsh Ayachit
Is your ParaView built with FFMPEG support? Try saving a "png" e.g.
"movie.png" instead of "movie.avi", does that work? In that case, your
ParaView is not built with FFMPEG support and cannot write AVI files.

Utkarsh

On Wed, Apr 11, 2012 at 1:40 PM, Guillaume  wrote:
> Hi,
>
> I try to run this script for test the possibility of animation with Python
> and Paraview:
>
> #!/opt/Paraview/ParaView-3.12.0-RC2_python_MPI/bin/pvpython
> from paraview.simple import *
> import sys
> reader = XDMFReader(FileName='Datas/HrsTest.xdmf')
> Show(reader)
> Render()
> GetActiveCamera()
> AnimateReader(reader,filename="movie.avi")
> sys.exit()
> #
>
> But I get this error:
>
> Traceback (most recent call last):
>  File "./anim_time.py", line 8, in 
>    AnimateReader(reader,filename="movie.avi")
>  File
> "/opt/Paraview/ParaView-3.12.0-RC2_python_MPI/Utilities/VTKPythonWrapping/site-packages/paraview/simple.py",
> line 551, in AnimateReader
>    return servermanager.AnimateReader(reader, view, filename)
>  File
> "/opt/Paraview/ParaView-3.12.0-RC2_python_MPI/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
> line 2163, in AnimateReader
>    raise RuntimeError, "Saving of animation failed!"
> RuntimeError: Saving of animation failed!
>
> Please is somebody have an idea what is wrong ?
>
> Thanks,
> G
> ___
> 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] Paraview bug with openFoam for oilflow with surface LIC

2012-04-13 Thread Utkarsh Ayachit
Sorry, I'm not sure exactly how to reproduce this. With git-master
(which should be same as 3.14. for the most part), I don't seem to
have issues picking the vector field to use on the display tab.

On Thu, Apr 12, 2012 at 3:42 PM, Lorenzo  wrote:
> Sorry, I've should have mentioned that…
> Version 3.12 on linux and 3.14 on mac.
>
> Lorenzo
>
>
> Il giorno 12/apr/2012, alle ore 20:47, Utkarsh Ayachit ha scritto:
>
> Do you know what version of Paraview you are using? I remember there was a
> bug with this in 3.12 (if I remember correctly).
>
> On Thu, Apr 12, 2012 at 2:41 PM, Lorenzo  wrote:
>>
>> Hi all;
>> few times ago I learnt from this mailing list how to do an oilflow
>> visualization with data from openFoam using the surface LIC.
>>
>> Now, I noticed this only works if foamToVTK is run first.
>> If you try and do that using paraFoam you'll get nothing because you won't
>> be able to select anything on the vectors field within the display tab.
>>
>> I also noticed that if you run paraFoam, then load a .vtk surface on the
>> same PV instance and do the surface LIC trick on the latter, then everything
>> works also on the data from paraFoam you loaded at first.
>>
>> Do know if this is actually a bug but I thought it would be worth
>> mentioning…
>>
>> Thank you!
>>
>> Lorenzo
>> ___
>> 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] xdmf writer in parallel

2012-04-13 Thread Biddiscombe, John A.
Dave et al,

The XdmfWriter in paraview won't write in parallel. The main reason being that 
the hyperslab assignment just isn't implemented for a dataset which is split 
into pieces, and for a multiblock dataset there is no provision to write one 
block per dataset into the file.

We implemented our own version which does write in parallel, but the code 
is/has been unused for some time (almost certainly broken now) and relies on 
fudges we made to Xdmf which although they worked very well, haven't been 
maintained because I had hoped to port the lot to the new Xdmf which is a much 
cleaner code and supports 'visitor' style patterns natively which makes it 
easier to hook custom actions to a tree of datasets traversal (such as writing 
out to file)

Our writer used this small utility library to help out
https://hpcforge.org/plugins/mediawiki/wiki/libh5mb/index.php/Main_Page

If it was a matter of life and death, I could probably get the code working 
(the vtkXdmfWriter2 or whatever we called it), but it'd take a couple of days 
and isn't something I was desperately in need of right now.

Off topic: I started work on porting all our xdmf developments to the 'new' 
xdmf library but when I saw how much work was needed for the vtkXdmfReader I 
gave up (I did get the XdmfGenerator project running with the new library 
https://hpcforge.org/plugins/mediawiki/wiki/xdmfgenerator/index.php/Main_Page , 
but not production ready and certain features like JOIN $1,$2,$3 were not yet 
supported in Xdmf2, which we really needed for our stuff). I'd like to revisit 
this whole topic and would welcome encouragement. Since the Xdmf chaps have not 
been very active on the lists, it has been hard to work up much enthusiasm to 
develop/extend the codes

JB

-Original Message-
From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On 
Behalf Of David E DeMarle
Sent: 13 April 2012 16:13
To: Utkarsh Ayachit
Cc: paraview@paraview.org
Subject: Re: [Paraview] xdmf writer in parallel

I vaguely recall that it won't work in parallel because we don't use the 
parallel flavor of hdf5, and because we didn't want to automatically gather 
before writing in serial.

John Biddiscombe, does this sound right to you?

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Fri, Apr 13, 2012 at 9:05 AM, Utkarsh Ayachit  
wrote:
> Looking at the xmls definition, no, it doesn't look like it supports 
> parallel. Dave, is that for real or an oversight?
>
> Utkarsh
>
> On Thu, Apr 12, 2012 at 3:44 PM, Burlen Loring  wrote:
>>
>> XDMF writer disappears as an option from the save dialog when I run 
>> with mpi and np is more than 1. However, when run in serial or with 
>> np 1 it is available. Can the XDMF writer write in parallel?
>> ___
>> 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