Changeset 4721


Ignore:
Timestamp:
Sep 10, 2007, 7:11:46 PM (17 years ago)
Author:
steve
Message:
 
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/domain.py

    r4713 r4721  
    11651165
    11661166    def evolve_one_euler_step(self, yieldstep, finaltime):
    1167         """One Euler Time Step"""
     1167        """
     1168        One Euler Time Step
     1169        Q^{n+1} = E(h) Q^n
     1170        """
    11681171
    11691172        #Compute fluxes across each element edge
     
    11921195
    11931196    def evolve_one_rk2_step(self, yieldstep, finaltime):
    1194         """One 2nd order RK timestep"""
     1197        """
     1198        One 2nd order RK timestep
     1199        Q^{n+1} = 0.5 Q^n + 0.5 E(h)^2 Q^n
     1200        """
    11951201
    11961202        #Save initial initial conserved quantities values
     
    12511257
    12521258    def evolve_one_rk3_step(self, yieldstep, finaltime):
    1253         """One 2nd order RK timestep"""
    1254 
    1255 
     1259        """
     1260        One 3rd order RK timestep
     1261        Q^(1) = 3/4 Q^n + 1/4 E(h)^2 Q^n  (at time t^n + h/2)
     1262        Q^{n+1} = 1/3 Q^n + 2/3 E(h) Q^(1) (at time t^{n+1})
     1263        """
    12561264
    12571265        #Save initial initial conserved quantities values
     
    12961304
    12971305        #------------------------------------
    1298         #Combine final and initial values
    1299         #of conserved quantities and cleanup
     1306        #Combine steps to obtain intermediate
     1307        #solution at time t^n + 0.5 h
    13001308        #------------------------------------
     1309
    13011310        #combine steps
    13021311        self.saxpy_conserved_quantities(0.25, 0.75)
     
    13261335        #------------------------------------
    13271336        #Combine final and initial values
    1328         #of conserved quantities and cleanup
     1337        #and cleanup
    13291338        #------------------------------------
    13301339        #combine steps
     
    13401349        self.update_boundary()
    13411350
    1342         #set substep time
     1351        #set new time
    13431352        self.time = initial_time + self.timestep       
    13441353       
    1345 
    1346 
    13471354
    13481355    def evolve_to_end(self, finaltime = 1.0):
Note: See TracChangeset for help on using the changeset viewer.