Changeset 8402
- Timestamp:
- Apr 16, 2012, 7:53:56 AM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/config.py
r8390 r8402 103 103 # Option to use velocity extrapolation instead of momentum extrapolation in the 104 104 # routine domain.extrapolate_second_order_sw 105 extrapolate_velocity_second_order= False105 extrapolate_velocity_second_order=True 106 106 107 107 # Option to setup compute_fluxes_method 108 # Currently "original' and 'w ell_balanced_1'109 compute_fluxes_method = ' original'108 # Currently "original' and 'wb_1' to 'wb_3' 109 compute_fluxes_method = 'wb_2' 110 110 111 111 ################################################################################ -
trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r8401 r8402 679 679 680 680 elif self.compute_fluxes_method == 'wb_1': 681 # Calc pressure terms using Simpson rule in flux 682 # computations. Then they match up exactly with 683 # standard gravity term 681 684 from shallow_water_ext import compute_fluxes_ext_wb 682 685 from shallow_water_ext import gravity as gravity_c … … 686 689 687 690 elif self.compute_fluxes_method == 'wb_2': 691 # Use standard flux calculation, but calc gravity 692 # as -g h grad(w) - sum midpoint edge pressure terms 688 693 from shallow_water_ext import compute_fluxes_ext_central_structure 689 694 from shallow_water_ext import gravity_wb as gravity_wb_c … … 693 698 694 699 elif self.compute_fluxes_method == 'wb_3': 700 # Calculate pure flux terms with simpsons rule, and 701 # gravity flux and gravity forcing via 702 # as -g h grad(w) - sum midpoint edge pressure terms 695 703 from shallow_water_ext import compute_fluxes_ext_wb_3 696 704 from shallow_water_ext import gravity_wb as gravity_wb_c … … 701 709 else: 702 710 raise Exception('unknown compute_fluxes_method') 711 712 # TODO (SR) 713 # Should implement wb_4 as simpsons rule on both pure 714 # flux and pressure flux terms, ie a combination of wb_1 715 # and wb_3 716 # Also Gareth's wb scheme should be included. 717 # Mabe should come up with better names! 703 718 704 719
Note: See TracChangeset
for help on using the changeset viewer.