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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 113 - (show annotations)
Mon Feb 28 07:06:33 2005 UTC (14 years, 1 month ago) by jgs
File MIME type: text/x-python
File size: 468 byte(s)
*** empty log message ***

1 # $Id$
2 from esys.linearPDEs import LinearPDE
3 import numarray
4 class Helmholtz(LinearPDE):
5 def setValue(self,kappa=0,omega=1,f=0,eta=0,g=0):
6 # get spatial dimension
7 ndim=self.getDim()
8 # get kronecker symbol from numarray: kronecker[i,j]=1 for i=j and =0 else
9 kronecker=numarray.identity(ndim)
10 # map kappa, omega, f, eta, g to the coefficients of the general PDE
11 self._setValue(A=kappa*kronecker,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