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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 108 - (hide annotations)
Thu Jan 27 06:21:59 2005 UTC (18 years, 1 month ago) by jgs
File MIME type: text/x-python
File size: 466 byte(s)
*** empty log message ***

1 jgs 102 # $Id$
2     from esys.linearPDEs import LinearPDE
3     import numarray
4     class Helmholtz(LinearPDE):
5 jgs 108 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