/[escript]/trunk/modellib/py_src/temperature.py
ViewVC logotype

Diff of /trunk/modellib/py_src/temperature.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 23  __url__="https://launchpad.net/escript-f Line 23  __url__="https://launchpad.net/escript-f
23    
24  from esys.escript import Data, inf, sup, length, grad, inner  from esys.escript import Data, inf, sup, length, grad, inner
25  from esys.escript.modelframe import Model,IterationDivergenceError  from esys.escript.modelframe import Model,IterationDivergenceError
26  from esys.escript.linearPDEs import LinearPDE  from esys.escript.linearPDEs import LinearPDE, SolverOptions
27  import numpy  import numpy
28    
29    
# Line 60  class TemperatureAdvection(Model): Line 60  class TemperatureAdvection(Model):
60             self.__pde=LinearPDE(self.domain)             self.__pde=LinearPDE(self.domain)
61             self.__pde.setSymmetryOn()             self.__pde.setSymmetryOn()
62             self.__pde.setReducedOrderOn()             self.__pde.setReducedOrderOn()
63             self.__pde.getSolverOptions().setSolverMethod(self.__pde.getSolverOptions().LUMPING)             self.__pde.getSolverOptions().setSolverMethod(SolverOptions.LUMPING)
64             self.__pde.setValue(D=self.heat_capacity*self.density)             self.__pde.setValue(D=self.heat_capacity*self.density)
65    
66         def getSafeTimeStepSize(self,dt):         def getSafeTimeStepSize(self,dt):

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

  ViewVC Help
Powered by ViewVC 1.1.26