Subject: [FEniCS-dev] 回复： how to visualize 2d function as a 3d surface?

From: Chong Luo <[email-masked]>
Date: Sat, 10 Nov 2007 12:28:12 -0800 (PST)

It works (also in Paraview)! Thank you very much! 

Best regards,
Chong 
----- 原始邮件 ----
发件人： Anders Logg <[email-masked]>
收件人： Chong Luo <[email-masked]>
抄送： [email-masked]
已发送： 2007/11/10(周六), 上午5:29:09
主题： Re: [FEniCS-dev] how to visualize 2d function as a 3d surface?

In Mayavi, use "warp scalar".

If you have Viper installed, you can also plot the solution directly
as a 3D surface from DOLFIN by the following command:

  plot(u)

/Anders

On Fri, Nov 09, 2007 at 07:54:07PM -0800, Chong Luo wrote:
> Hi,
>  
> In the dolfin user manual, there's this very nice picture of the solution of a
> 2d Poisson's equation. It shows the colored 3d surface (x, y, u(x,y)) with u
> (x,y) as the color. The manual says that the picture was produced using Mayavi.
> However, I couldnpt get such graph using either Mayavi or Paraview (Paraview
> seems easier to use than Mayavi). What I got was just the surface (x, y, 0)
> with u(x,y) as the color (therefore just a 2d surface). Could anyone tell me
> how to use Paraview or Mayavi to produce similar graph as the one in the dolfin
> user manual? Thank you very much!
>  
> Best,
> Chong
> 
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> @yahoo.cn 新域名、无限量，快来抢注！

> _______________________________________________
> FEniCS-dev mailing list
> [email-masked]
> http://www.fenics.org/mailman/listinfo/fenics-dev

      ___________________________________________________________ 
@yahoo.cn 新域名、无限量，快来抢注！ 
http://mail.yahoo.cn/