Changeset 8402


Ignore:
Timestamp:
Apr 16, 2012, 7:53:56 AM (13 years ago)
Author:
steve
Message:

Changed over default to use velocity_extrapolation and wb_2 flux calculation.
This leads to 18 unit test failures. Need to fix them, but they are not significant.

Location:
trunk/anuga_core/source/anuga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/config.py

    r8390 r8402  
    103103# Option to use velocity extrapolation instead of momentum extrapolation in the
    104104# routine domain.extrapolate_second_order_sw
    105 extrapolate_velocity_second_order=False
     105extrapolate_velocity_second_order=True
    106106
    107107# Option to setup compute_fluxes_method
    108 # Currently "original' and 'well_balanced_1'
    109 compute_fluxes_method = 'original'
     108# Currently "original' and 'wb_1' to 'wb_3'
     109compute_fluxes_method = 'wb_2'
    110110
    111111################################################################################
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r8401 r8402  
    679679
    680680        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
    681684            from shallow_water_ext import compute_fluxes_ext_wb
    682685            from shallow_water_ext import gravity as gravity_c
     
    686689
    687690        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
    688693            from shallow_water_ext import compute_fluxes_ext_central_structure
    689694            from shallow_water_ext import gravity_wb as gravity_wb_c
     
    693698
    694699        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
    695703            from shallow_water_ext import compute_fluxes_ext_wb_3
    696704            from shallow_water_ext import gravity_wb as gravity_wb_c
     
    701709        else:
    702710            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!
    703718
    704719
Note: See TracChangeset for help on using the changeset viewer.