/[escript]/trunk/finley/test/python/FCT_test1.py
ViewVC logotype

Diff of /trunk/finley/test/python/FCT_test1.py

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

revision 4820 by jfenwick, Thu Feb 6 06:12:20 2014 UTC revision 4821 by sshaw, Tue Apr 1 04:58:33 2014 UTC
# Line 46  __url__="https://launchpad.net/escript-f Line 46  __url__="https://launchpad.net/escript-f
46  #  #
47    
48  from esys.escript import *  from esys.escript import *
49  from esys.escript.linearPDEs import TransportPDE  from esys.escript.linearPDEs import TransportPDE, SolverOptions
50  from esys.finley import Rectangle, Brick  from esys.finley import Rectangle, Brick
51  #from esys.ripley import Rectangle, Brick  #from esys.ripley import Rectangle, Brick
52  from esys.weipa import saveVTK  from esys.weipa import saveVTK
# Line 105  V=OMEGA0*((0.5-x[0])*[0,1]+(0.5-x[1])*[- Line 105  V=OMEGA0*((0.5-x[0])*[0,1]+(0.5-x[1])*[-
105    
106  fc=TransportPDE(dom,numEquations=1)  fc=TransportPDE(dom,numEquations=1)
107  fc.getSolverOptions().setVerbosityOn()  fc.getSolverOptions().setVerbosityOn()
108  #fc.getSolverOptions().setODESolver(fc.getSolverOptions().BACKWARD_EULER)  #fc.getSolverOptions().setODESolver(SolverOptions.BACKWARD_EULER)
109  fc.getSolverOptions().setODESolver(fc.getSolverOptions().LINEAR_CRANK_NICOLSON)  fc.getSolverOptions().setODESolver(SolverOptions.LINEAR_CRANK_NICOLSON)
110  fc.getSolverOptions().setODESolver(fc.getSolverOptions().CRANK_NICOLSON)  fc.getSolverOptions().setODESolver(SolverOptions.CRANK_NICOLSON)
111  x=Function(dom).getX()  x=Function(dom).getX()
112  fc.setValue(M=1,C=V)  fc.setValue(M=1,C=V)
113    

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

  ViewVC Help
Powered by ViewVC 1.1.26