/[escript]/trunk/doc/user/examples/helmholtz,py
ViewVC logotype

Annotation of /trunk/doc/user/examples/helmholtz,py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (hide annotations)
Wed Dec 15 07:08:39 2004 UTC (18 years, 3 months ago) by jgs
Original Path: trunk/esys2/doc/user/examples/helmholtztest.py
File MIME type: text/x-python
File size: 463 byte(s)
*** empty log message ***

1 jgs 102 # $Id$
2     from mytools import *
3     from esys.escript import *
4     import esys.finley
5     #... set some parameters ...
6     omega=0.1
7     eta=10.
8     #... generate domain ...
9     mydomain = esys.finley.Rectangle(l0=5.,l1=1.,n0=50, n1=10)
10     #... open PDE and set coefficients ...
11     mypde=Helmholtz(mydomain)
12     n=mydomain.getNormal()
13     x=mydomain.getX()
14     mypde.setValue(1,omega,omega*x[0],eta,n[0]+eta*x[0])
15     #... calculate error of the PDE solution ...
16     u=mypde.getSolution()
17     print "error is ",Lsup(u-x[0])

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26