/[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 155 - (show annotations)
Wed Nov 9 02:02:19 2005 UTC (14 years, 10 months ago) by jgs
File MIME type: text/x-python
File size: 479 byte(s)
move all directories from trunk/esys2 into trunk and remove esys2

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._LinearPDE__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