/[escript]/trunk/doc/user/wave.tex
ViewVC logotype

Diff of /trunk/doc/user/wave.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4820 by sshaw, Wed Mar 19 23:52:36 2014 UTC revision 4821 by sshaw, Tue Apr 1 04:58:33 2014 UTC
# Line 130  of the problem. Line 130  of the problem.
130       x=domain.getX()       x=domain.getX()
131       # ... open new PDE ...       # ... open new PDE ...
132       mypde=LinearPDE(domain)       mypde=LinearPDE(domain)
133       mypde.getSolverOptions().setSolverMethod(mypde.getSolverOptions().HRZ_LUMPING)       mypde.getSolverOptions().setSolverMethod(SolverOptions.HRZ_LUMPING)
134       kronecker=identity(mypde.getDim())       kronecker=identity(mypde.getDim())
135       dunit=numpy.array([1., 0., 0.]) # defines direction of point source       dunit=numpy.array([1., 0., 0.]) # defines direction of point source
136       mypde.setValue(D=kronecker*rho, q=whereNegative(length(x-xc)-src_radius)*dunit)       mypde.setValue(D=kronecker*rho, q=whereNegative(length(x-xc)-src_radius)*dunit)
# Line 191  information as much as possible when ite Line 191  information as much as possible when ite
191    
192  The statement  The statement
193  \begin{python}  \begin{python}
194    mypde.getSolverOptions().setSolverMethod(mypde.getSolverOptions().HRZ_LUMPING)    mypde.getSolverOptions().setSolverMethod(SolverOptions.HRZ_LUMPING)
195  \end{python}  \end{python}
196  switches on the use of an aggressive approximation of the PDE operator as a  switches on the use of an aggressive approximation of the PDE operator as a
197  diagonal matrix formed from the coefficient \var{D}.  diagonal matrix formed from the coefficient \var{D}.

Legend:
Removed from v.4820  
changed lines
  Added in v.4821

  ViewVC Help
Powered by ViewVC 1.1.26