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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 327 - (hide annotations)
Wed Dec 7 04:32:28 2005 UTC (14 years, 9 months ago) by gross
File MIME type: text/x-python
File size: 409 byte(s)
make them run again
1 jgs 102 # $Id$
2 gross 327 from esys.escript.linearPDEs import LinearPDE
3     from esys.escript import kronecker
4 jgs 102 import numarray
5     class Helmholtz(LinearPDE):
6 jgs 113 def setValue(self,kappa=0,omega=1,f=0,eta=0,g=0):
7 jgs 108 # get spatial dimension
8     ndim=self.getDim()
9     # map kappa, omega, f, eta, g to the coefficients of the general PDE
10 gross 327 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