Ignore:
Timestamp:
Jul 14, 2006, 2:11:20 PM (18 years ago)
Author:
jakeman
Message:

New file dam.py tests numerical solution against analytical solution of
Stoker 57. Numerical results match Stoker's roughly but oscillations
present. Most likely limiting is not working correctly. Q.limit does
have an effect but unsure whether this effect is the right one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • development/pyvolution-1d/quantity.py

    r3322 r3335  
    134134                  Default is "vertices"
    135135        """
    136 
    137         print "In set_function value"
    138         print self.domain.vertices
    139136       
    140137        if location == 'centroids':
    141 
    142             print "In set at centroid"           
     138           
    143139            P = self.domain.centroids
    144140            self.set_values(f(P), location)
     
    146142            #Vertices
    147143            P = self.domain.get_vertices()
    148 
    149             print "P"
    150             print P
    151             print P[:,0]
    152             print f(P[:,0])
    153 
    154             print P[:,1]
    155             print f(P[:,1])
     144           
    156145            for i in range(2):
    157                 self.vertex_values[:,i] = f(P[:,i])
    158 
    159 
    160            
    161 
    162             print "In set at vertices"
    163             print self.vertex_values
    164 
    165         print "Out set_function value"
    166         print self.domain.vertices       
    167 
     146                self.vertex_values[:,i] = f(P[:,i])       
    168147
    169148    def set_array_values(self, values, location='vertices'):
     
    564543        vertex values are updated
    565544        """
    566 
     545        print "in Q.limit"
    567546        from Numeric import zeros, Float
    568547
     
    706685    print Q2.centroid_values
    707686    print Qc
    708 
     687    raw_input('press_return')
     688   
    709689    g3 = newLinePlot('plot 3')
    710690    linePlot(g3,Xc,Qc)
     
    720700    raw_input('press return')
    721701
    722 
    723 
    724 
    725 
    726 
    727 
Note: See TracChangeset for help on using the changeset viewer.