Changeset 8406
- Timestamp:
- Apr 19, 2012, 11:14:06 PM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/config.py
r8404 r8406 102 102 ################################################################################ 103 103 104 sloped_mannings_function = True104 sloped_mannings_function = False 105 105 106 106 ################################################################################ … … 117 117 # beta values. In this case the settings for timestepping_method will be overriden 118 118 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 120 flow_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 123 124 124 125 -
trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r8404 r8406 360 360 flag = str(flag) 361 361 362 flow_algorithms = ['1', '1.5', ' 2', '2.5']362 flow_algorithms = ['1', '1.5', '1.75', '2', '2.5'] 363 363 364 364 if flag in flow_algorithms: … … 366 366 else: 367 367 msg = 'Unknown flow_algorithm. \nPossible choices are:\n'+ \ 368 ', '.join(flow_algorithm )+'.'368 ', '.join(flow_algorithms)+'.' 369 369 raise Exception(msg) 370 370 … … 386 386 387 387 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) 390 390 self.set_default_order(2) 391 391 beta_w = 1.5 … … 397 397 self.set_betas(beta_w, beta_w_dry, beta_uh, beta_uh_dry, beta_vh, beta_vh_dry) 398 398 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 399 411 if self.flow_algorithm == '2.5': 400 412 self.set_timestepping_method(3) 401 413 self.set_default_order(2) 402 beta_w = 1. 5414 beta_w = 1.7 403 415 beta_w_dry = 0.2 404 beta_uh = 1. 5416 beta_uh = 1.7 405 417 beta_uh_dry = 0.2 406 beta_vh = 1. 5418 beta_vh = 1.7 407 419 beta_vh_dry = 0.2 408 420 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.