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

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

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

revision 628 by elspeth, Thu Mar 23 02:27:57 2006 UTC revision 918 by gross, Wed Jan 3 06:30:00 2007 UTC
# Line 23  class SteadyIncompressibleFlow(Model): Line 23  class SteadyIncompressibleFlow(Model):
23    
24         """         """
25    
26         def __init__(self,debug=False):         def __init__(self,**kwargs):
27             """             """
28             set up model             set up model
29             """             """
30             Model.__init__(self,debug=debug)             Model.__init__(self,**kwargs)
31             self.declareParameter(domain=None, \             self.declareParameter(domain=None, \
32                                   velocity=0., \                                   velocity=0., \
33                                   pressure=0., \                                   pressure=0., \
34                                   viscosity=1., \                                   viscosity=1., \
35                                   internal_force=0., \                                   internal_force=0., \
36                                   location_prescribed_velocity=Data(), \                                   location_prescribed_velocity=None, \
37                                   prescribed_velocity=Data(), \                                   prescribed_velocity=None, \
38                                   rel_tol=1.e-3,abs_tol=0.,max_iter=10,relaxation=0.001)                                   rel_tol=1.e-3,abs_tol=0.,max_iter=10,relaxation=0.0001)
39             self.__iter=0             self.__iter=0
40    
41         def doInitialization(self):         def doInitialization(self):
# Line 46  class SteadyIncompressibleFlow(Model): Line 46  class SteadyIncompressibleFlow(Model):
46             self.__p_very_old=None             self.__p_very_old=None
47             self.__dt_old=None             self.__dt_old=None
48             self.__pde=LameEquation(self.domain)             self.__pde=LameEquation(self.domain)
49               self.__pde.setSolverMethod(LameEquation.DIRECT)
50               if self.location_prescribed_velocity == None: self.location_prescribed_velocit=Data()
51               if self.prescribed_velocity == None: self.prescribed_velocity=Data()
52    
53         def stress(self):         def stress(self):
54             """             """

Legend:
Removed from v.628  
changed lines
  Added in v.918

  ViewVC Help
Powered by ViewVC 1.1.26