Changeset 9285
- Timestamp:
- Aug 5, 2014, 12:11:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r9284 r9285 293 293 self.call=1 294 294 295 # List to store the volumes we computed before 296 self.volume_history=[] 297 295 298 # Work arrays [avoid allocate statements in compute_fluxes or extrapolate_second_order] 296 299 self.edge_flux_work=num.zeros(len(self.edge_coordinates[:,0])*3) … … 1384 1387 else: 1385 1388 water_volume = receive(0) 1386 1389 1390 self.volume_history.append(water_volume) 1387 1391 return water_volume 1388 1392 … … 2572 2576 """ 2573 2577 from anuga import myid 2578 2579 if(self.flow_algorithm=='tsunami'): 2580 print ' ' 2581 print 'Warning: Volume computations do not account for changing porosity in tsunami algorithm' 2582 2574 2583 # Compute the volume 2575 2584 Vol=self.get_water_volume() … … 2579 2588 2580 2589 if(verbose and myid==0): 2581 print ' Volume is:', Vol 2582 print ' Boundary Flux integral: ', fluxIntegral 2583 print ' (rate + inlet) Fractional Step volume integral : ', fracIntegral 2584 print ' Volume - (boundary and fractional step inflows):', Vol- fluxIntegral -fracIntegral 2590 print ' ' 2591 print ' Volume V is:', Vol 2592 print ' Boundary Flux integral BF: ', fluxIntegral 2593 print ' (rate + inlet) Fractional Step volume integral FS: ', fracIntegral 2594 print ' V - BF - FS - InitialVolume :', Vol- fluxIntegral -fracIntegral - self.volume_history[0] 2595 print ' ' 2585 2596 2586 2597 if(returnStats):
Note: See TracChangeset
for help on using the changeset viewer.