← Back to team overview

fenics team mailing list archive

回复: how to visualize 2d function as a 3d surface?

 

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

Best regards,
Chong 
----- 原始邮件 ----
发件人: Anders Logg <logg@xxxxxxxxx>
收件人: Chong Luo <luo.chong@xxxxxxxxx>
抄送: fenics-dev@xxxxxxxxxx
已发送: 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
> FEniCS-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/fenics-dev


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