/[escript]/trunk/escript/py_src/heat.py
ViewVC logotype

Diff of /trunk/escript/py_src/heat.py

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

revision 1417 by gross, Mon Feb 25 04:45:48 2008 UTC revision 1841 by gross, Fri Oct 3 03:57:52 2008 UTC
# Line 1  Line 1 
1  # $Id:$  
2  #  ########################################################
 #######################################################  
 #  
 #       Copyright 2008 by University of Queensland  
3  #  #
4  #                http://esscc.uq.edu.au  # Copyright (c) 2003-2008 by University of Queensland
5  #        Primary Business: Queensland, Australia  # Earth Systems Science Computational Center (ESSCC)
6  #  Licensed under the Open Software License version 3.0  # http://www.uq.edu.au/esscc
 #     http://www.opensource.org/licenses/osl-3.0.php  
7  #  #
8  #######################################################  # Primary Business: Queensland, Australia
9    # Licensed under the Open Software License version 3.0
10    # http://www.opensource.org/licenses/osl-3.0.php
11  #  #
12    ########################################################
13    
14    __copyright__="""Copyright (c) 2003-2008 by University of Queensland
15    Earth Systems Science Computational Center (ESSCC)
16    http://www.uq.edu.au/esscc
17    Primary Business: Queensland, Australia"""
18    __license__="""Licensed under the Open Software License version 3.0
19    http://www.opensource.org/licenses/osl-3.0.php"""
20    __url__="http://www.uq.edu.au/esscc/escript-finley"
21    
22  """  """
23  Some models for heat advection-diffusion  Some models for heat advection-diffusion
# Line 24  Some models for heat advection-diffusion Line 31  Some models for heat advection-diffusion
31  """  """
32    
33  __author__="Lutz Gross, l.gross@uq.edu.au"  __author__="Lutz Gross, l.gross@uq.edu.au"
 __copyright__="""  Copyright (c) 2008 by ACcESS MNRF  
                     http://www.access.edu.au  
                 Primary Business: Queensland, Australia"""  
 __license__="""Licensed under the Open Software License version 3.0  
              http://www.opensource.org/licenses/osl-3.0.php"""  
 __url__="http://www.iservo.edu.au/esys"  
 __version__="$Revision:$"  
 __date__="$Date:$"  
34    
35  # from escript import *  # from escript import *
36  import util  import util
# Line 72  class TemperatureCartesian(TransportPDE) Line 71  class TemperatureCartesian(TransportPDE)
71                                        thete=0.: forward Euler (not recommendable)                                        thete=0.: forward Euler (not recommendable)
72          """          """
73          TransportPDE.__init__(self,domain,num_equations=1,theta=theta,**kwargs)          TransportPDE.__init__(self,domain,num_equations=1,theta=theta,**kwargs)
74          self.setReducedOn()          self.setReducedOrderOn()
75          self.__rhocp=None          self.__rhocp=None
76          self.__v=None          self.__v=None
77        def setInitialTemperature(self,T):        def setInitialTemperature(self,T):
# Line 96  class TemperatureCartesian(TransportPDE) Line 95  class TemperatureCartesian(TransportPDE)
95                 super(TemperatureCartesian,self).setValue(q=given_T_mask)                 super(TemperatureCartesian,self).setValue(q=given_T_mask)
96                        
97        def getTemperature(self,dt,**kwargs):        def getTemperature(self,dt,**kwargs):
98            return self.solve(dt,**kwargs)            return self.getSolution(dt,**kwargs)

Legend:
Removed from v.1417  
changed lines
  Added in v.1841

  ViewVC Help
Powered by ViewVC 1.1.26