/[escript]/trunk/doc/user/examples/mytools.py
ViewVC logotype

Contents of /trunk/doc/user/examples/mytools.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 327 - (show annotations)
Wed Dec 7 04:32:28 2005 UTC (13 years, 11 months ago) by gross
File MIME type: text/x-python
File size: 409 byte(s)
make them run again
1 # $Id$
2 from esys.escript.linearPDEs import LinearPDE
3 from esys.escript import kronecker
4 import numarray
5 class Helmholtz(LinearPDE):
6 def setValue(self,kappa=0,omega=1,f=0,eta=0,g=0):
7 # get spatial dimension
8 ndim=self.getDim()
9 # map kappa, omega, f, eta, g to the coefficients of the general PDE
10 super(Helmholtz, self).setValue(A=kappa*kronecker(ndim),D=omega,Y=f,d=eta,y=g)

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26