7 |
omega=0.1 |
omega=0.1 |
8 |
eta=10. |
eta=10. |
9 |
#... generate domain ... |
#... generate domain ... |
10 |
mydomain = esys.finley.Rectangle(l0=5.,l1=1.,n0=50, n1=10) |
mydomain = Rectangle(l0=5.,l1=1.,n0=50, n1=10) |
11 |
#... open PDE and set coefficients ... |
#... open PDE and set coefficients ... |
12 |
mypde=Helmholtz(mydomain) |
mypde=Helmholtz(mydomain) |
13 |
n=mydomain.getNormal() |
n=mydomain.getNormal() |
16 |
#... calculate error of the PDE solution ... |
#... calculate error of the PDE solution ... |
17 |
u=mypde.getSolution() |
u=mypde.getSolution() |
18 |
print "error is ",Lsup(u-x[0]) |
print "error is ",Lsup(u-x[0]) |
|
# output should be similar to "error is 1.e-7" |
|
19 |
|
# output should be similar to "error is 1.e-7" |