Changeset 8406


Ignore:
Timestamp:
Apr 19, 2012, 11:14:06 PM (13 years ago)
Author:
steve
Message:

Added another flow_algorithm 1.75

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

Legend:

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

    r8404 r8406  
    102102################################################################################
    103103
    104 sloped_mannings_function = True
     104sloped_mannings_function = False
    105105
    106106################################################################################
     
    117117# beta values. In this case the settings for timestepping_method will be overriden
    118118
    119 #flow_algorithm = 1   # 1st order euler and conservative piecewise constant spatial reconstruction
    120 flow_algorithm = 1.5 # 1st order euler and conservative piecewise linear spatial reconstruction
    121 #flow_algorithm = 2   # 2nd order TVD scheme and more aggressive piecewise linear spatial reconstruction
    122 #flow_algorithm = 2.5 # 3rd order TVD scheme and more aggressive piecewise linear spatial reconstruction
     119#flow_algorithm = 1    # 1st order euler and conservative piecewise constant spatial reconstruction
     120flow_algorithm = 1.5  # 1st order euler and conservative piecewise linear spatial reconstruction
     121#flow_algorithm = 1.75 # 1st order euler and more aggressive piecewise linear spatial reconstruction
     122#flow_algorithm = 2    # 2nd order TVD scheme and more aggressive piecewise linear spatial reconstruction
     123#flow_algorithm = 2.5  # 3rd order TVD scheme and more aggressive piecewise linear spatial reconstruction
    123124
    124125
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r8404 r8406  
    360360        flag = str(flag)
    361361
    362         flow_algorithms = ['1', '1.5', '2', '2.5']
     362        flow_algorithms = ['1', '1.5', '1.75', '2', '2.5']
    363363
    364364        if flag in flow_algorithms:
     
    366366        else:
    367367            msg = 'Unknown flow_algorithm. \nPossible choices are:\n'+ \
    368             ', '.join(flow_algorithm)+'.'
     368            ', '.join(flow_algorithms)+'.'
    369369            raise Exception(msg)
    370370
     
    386386
    387387
    388         if self.flow_algorithm == '2':
    389             self.set_timestepping_method(2)
     388        if self.flow_algorithm == '1.75':
     389            self.set_timestepping_method(1)
    390390            self.set_default_order(2)
    391391            beta_w      = 1.5
     
    397397            self.set_betas(beta_w, beta_w_dry, beta_uh, beta_uh_dry, beta_vh, beta_vh_dry)
    398398
     399
     400        if self.flow_algorithm == '2':
     401            self.set_timestepping_method(2)
     402            self.set_default_order(2)
     403            beta_w      = 1.7
     404            beta_w_dry  = 0.2
     405            beta_uh     = 1.7
     406            beta_uh_dry = 0.2
     407            beta_vh     = 1.7
     408            beta_vh_dry = 0.2
     409            self.set_betas(beta_w, beta_w_dry, beta_uh, beta_uh_dry, beta_vh, beta_vh_dry)
     410
    399411        if self.flow_algorithm == '2.5':
    400412            self.set_timestepping_method(3)
    401413            self.set_default_order(2)
    402             beta_w      = 1.5
     414            beta_w      = 1.7
    403415            beta_w_dry  = 0.2
    404             beta_uh     = 1.5
     416            beta_uh     = 1.7
    405417            beta_uh_dry = 0.2
    406             beta_vh     = 1.5
     418            beta_vh     = 1.7
    407419            beta_vh_dry = 0.2
    408420            self.set_betas(beta_w, beta_w_dry, beta_uh, beta_uh_dry, beta_vh, beta_vh_dry)
Note: See TracChangeset for help on using the changeset viewer.