from fipy import *

L = 1.
N = 100

m = Grid2D(nx=N, ny=N, dx=L / N, dy=L / N)

x, y = m.getCellCenters()

v = CellVariable(mesh=m, value=numerix.exp(-(x**2+y**2)))

vi = viewers.make(v)

vi.plot()

raw_input("wait")

Hope that helps. Cheers.

On Mon, Aug 25, 2008 at 8:25 PM, franck kalala
<[EMAIL PROTECTED]> wrote:
> Hi all
>
> How do I plot  this surface z=exp(-(x**2+y**2)) using viewers within fipy,
> for a given 2D mesh.
>
> Regards
>
>
>
> --
> ***********************************************
> ***********************************************
> Franck Kalala Mutombo
> [EMAIL PROTECTED]
> African Institut for Mathematical Sciences, Muizenberg Cape Town, South
> Africa
> [EMAIL PROTECTED]
> ************************************************
> ************************************************
>



-- 
Daniel Wheeler

Reply via email to