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

Diff of /trunk/modellib/py_src/flow.py

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

revision 5023 by sshaw, Tue Apr 1 04:58:33 2014 UTC revision 5024 by jfenwick, Tue Jun 10 08:46:07 2014 UTC
# Line 62  class SteadyIncompressibleFlow(Model): Line 62  class SteadyIncompressibleFlow(Model):
62             self.__dt_old=None             self.__dt_old=None
63             self.__pde=LameEquation(self.domain)             self.__pde=LameEquation(self.domain)
64             self.__pde.getSolverOptions().setSolverMethod(SolverOptions.DIRECT)             self.__pde.getSolverOptions().setSolverMethod(SolverOptions.DIRECT)
65             if self.location_prescribed_velocity == None: self.location_prescribed_velocit=Data()             if self.location_prescribed_velocity is None: self.location_prescribed_velocit=Data()
66             if self.prescribed_velocity == None: self.prescribed_velocity=Data()             if self.prescribed_velocity is None: self.prescribed_velocity=Data()
67    
68         def stress(self):         def stress(self):
69             """             """
# Line 86  class SteadyIncompressibleFlow(Model): Line 86  class SteadyIncompressibleFlow(Model):
86              """              """
87              self.__iter=0              self.__iter=0
88              self.__diff=1.e40              self.__diff=1.e40
89              if not self.__p_old==None:              if not self.__p_old is None:
90                 if self.__p_very_old==None:                 if self.__p_very_old is None:
91                    self.pressure=self.__p_old                    self.pressure=self.__p_old
92                 else:                 else:
93                    self.pressure=(1.+dt/self.__dt_old)*self.__p_old-dt/self.__dt_old*self.__p_very_old                    self.pressure=(1.+dt/self.__dt_old)*self.__p_old-dt/self.__dt_old*self.__p_very_old

Legend:
Removed from v.5023  
changed lines
  Added in v.5024

  ViewVC Help
Powered by ViewVC 1.1.26