/[escript]/trunk/doc/examples/cookbook/example11c.py
ViewVC logotype

Diff of /trunk/doc/examples/cookbook/example11c.py

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

revision 4828 by jfenwick, Thu Feb 6 06:12:20 2014 UTC revision 4829 by caltinay, Thu Apr 3 04:02:53 2014 UTC
# Line 43  from esys.escript.linearPDEs import Line Line 43  from esys.escript.linearPDEs import Line
43  from esys.escript.pdetools import Projector  from esys.escript.pdetools import Projector
44  from esys.escript.unitsSI import *  from esys.escript.unitsSI import *
45  from esys.finley import ReadMesh,Rectangle  from esys.finley import ReadMesh,Rectangle
46    from esys.weipa import saveVTK
47    
48  from cblib import toRegGrid  from cblib import toRegGrid
49    
# Line 101  mypde.setValue(A=con*kro,Y=sourceg,q=q,r Line 102  mypde.setValue(A=con*kro,Y=sourceg,q=q,r
102  #mypde.setSymmetryOn()  #mypde.setSymmetryOn()
103  sol=mypde.getSolution()  sol=mypde.getSolution()
104    
105    res.expand()
106    
107  # Save the output to file.  # Save the output to file.
108  saveVTK(os.path.join(save_path,"ex11c.vtu"),\  saveVTK(os.path.join(save_path,"ex11c.vtu"),\
109          source=sourceg,\          source=sourceg,\
# Line 109  saveVTK(os.path.join(save_path,"ex11c.vt Line 112  saveVTK(os.path.join(save_path,"ex11c.vt
112          curden=-con*grad(sol),\          curden=-con*grad(sol),\
113          abscd=length(-con*grad(sol)),\          abscd=length(-con*grad(sol)),\
114          efield=-grad(sol))          efield=-grad(sol))
115    

Legend:
Removed from v.4828  
changed lines
  Added in v.4829

  ViewVC Help
Powered by ViewVC 1.1.26