/[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 155 by jgs, Wed Nov 9 02:02:19 2005 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
1    #
2  # $Id$  # $Id$
3    #
4    #######################################################
5    #
6    #           Copyright 2003-2007 by ACceSS MNRF
7    #       Copyright 2007 by University of Queensland
8    #
9    #                http://esscc.uq.edu.au
10    #        Primary Business: Queensland, Australia
11    #  Licensed under the Open Software License version 3.0
12    #     http://www.opensource.org/licenses/osl-3.0.php
13    #
14    #######################################################
15    #
16    
17    
18    __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
19                        http://www.access.edu.au
20                    Primary Business: Queensland, Australia"""
21    __license__="""Licensed under the Open Software License version 3.0
22                 http://www.opensource.org/licenses/osl-3.0.php"""
23    
24  from esys.escript import *  from esys.escript import *
25  from esys.escript.modelframe import Model,IterationDivergenceError  from esys.escript.modelframe import Model,IterationDivergenceError
# Line 17  class SteadyIncompressibleFlow(Model): Line 38  class SteadyIncompressibleFlow(Model):
38    
39         """         """
40    
41         def __init__(self,debug=False):         def __init__(self,**kwargs):
42             """             """
43             set up model             set up model
44             """             """
45             Model.__init__(self,debug=debug)             Model.__init__(self,**kwargs)
46             self.declareParameter(domain=None, \             self.declareParameter(domain=None, \
47                                   velocity=0., \                                   velocity=0., \
48                                   pressure=0., \                                   pressure=0., \
49                                   viscosity=1., \                                   viscosity=1., \
50                                   internal_force=0., \                                   internal_force=0., \
51                                   location_prescribed_velocity=Data(), \                                   location_prescribed_velocity=None, \
52                                   prescribed_velocity=Data(), \                                   prescribed_velocity=None, \
53                                   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)
54             self.__iter=0             self.__iter=0
55    
56         def doInitialization(self):         def doInitialization(self):
# Line 40  class SteadyIncompressibleFlow(Model): Line 61  class SteadyIncompressibleFlow(Model):
61             self.__p_very_old=None             self.__p_very_old=None
62             self.__dt_old=None             self.__dt_old=None
63             self.__pde=LameEquation(self.domain)             self.__pde=LameEquation(self.domain)
64               self.__pde.setSolverMethod(LameEquation.DIRECT)
65               if self.location_prescribed_velocity == None: self.location_prescribed_velocit=Data()
66               if self.prescribed_velocity == None: self.prescribed_velocity=Data()
67    
68         def stress(self):         def stress(self):
69             """             """

Legend:
Removed from v.155  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26