Can't get 3d plots in Paraview

Asked by Jeff Knisley

Been using Viper for a long time, and can get 3d plot in Viper.

Now want to do animation, so downloaded and installed Paraview.

But I can only get 2d plots in Paraview -- it won't use the z range info. It will do animation, though.

(May be a paraview question ... but hope you can help).

I have tracked the problem this far: In the .vtu XML output, Paraview is only using <Points>, which b/c of my mesh all have a z-coordinate of 0. I need the <PointData Scalars = "u"> data to replace the z-coordinates of the <Points> data; or do the equivalent in Paraview.

I've tried working with project(w,V), which works fine but doesn't seem to fix the problem in Paraview.

Maybe I am using it wrong?? Any help greatly appreciated...

At least, before I write a script to fix this problem, maybe someone has already written such a script???

mesh = Rectangle

file = File("PNLSoutput.pvd")

     file << ( w,t) # inside my time loop

plot( w)

interactive() # last frame is shown correctly in viper

Question information

Language:
English Edit question
Status:
Solved
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Blechta
Solved:
Last query:
Last reply:
Revision history for this message
Jan Blechta (blechta) said :
#1

Could you explain the problem in a very simple way - i.e. how we can
reproduce it?

Revision history for this message
Jeff Knisley (knisleyj) said :
#2

I replied to your email. Did you get it?

Revision history for this message
Jan Blechta (blechta) said :
#3

On Thu, 04 Apr 2013 00:11:19 -0000
Jeff Knisley <email address hidden> wrote:
> Question #225365 on FEniCS Project changed:
> https://answers.launchpad.net/fenics/+question/225365
>
> Status: Answered => Open
>
> Jeff Knisley is still having a problem:
> I replied to your email. Did you get it?
>

I did not obtain any other email than you can see in a thread
https://answers.launchpad.net/fenics/+question/225365

I still don't see a problem and you did not provide a way how to
reproduce it. Try looking at demo. There are many of them with 3D VTK
output, for exmaple undocumented/elasticity. Running paraview
elsaticity.pvd works.

Jan

Revision history for this message
Best Jan Blechta (blechta) said :
#4

On Fri, 29 Mar 2013 20:16:02 -0000
Jeff Knisley <email address hidden> wrote:
> I need the <PointData Scalars = "u"> data to replace the
> z-coordinates of the <Points> data; or do the equivalent in Paraview.

I read it again and now it seems clear. You need to apply 'warp by
scalar' filter in paraview.

Revision history for this message
Jeff Knisley (knisleyj) said :
#5

Thanks Jan Blechta, that solved my question.