Changeset 9008
- Timestamp:
- Oct 18, 2013, 5:37:29 PM (11 years ago)
- Location:
- trunk/anuga_work/development/gareth
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/experimental/bal_and/swb2_domain.py
r9007 r9008 76 76 77 77 self.beta_w=1.0 78 self.beta_w_dry= 1.078 self.beta_w_dry=0.0 79 79 self.beta_uh=1.0 80 80 self.beta_uh_dry=0.0 -
trunk/anuga_work/development/gareth/experimental/bal_and/swb2_domain_ext.c
r9007 r9008 945 945 946 946 // Try some Froude-number limiting in shallow depths 947 //dpth=max(stage_centroid_values[k] - elevation_centroid_values[k], 0.0);948 949 //if(dpth<0.4){950 //// momnorm = momentum^2951 //momnorm=(xmom_centroid_values[k]*xmom_centroid_values[k]+952 //ymom_centroid_values[k]*ymom_centroid_values[k]);953 //954 //// vel^2 < constant*g*dpth [-- then multiply both sides by dpth^2]955 //if(momnorm > 4*9.81*dpth*dpth*dpth){956 //// Down-scale momentum so that Froude number < constant957 //tmp=sqrt((4*9.81*dpth*dpth*dpth)/momnorm);958 //xmom_centroid_values[k] *=tmp;959 //ymom_centroid_values[k] *=tmp;960 //}961 //}947 dpth=max(stage_centroid_values[k] - elevation_centroid_values[k], 0.0); 948 949 if(dpth<0.1){ 950 // momnorm = momentum^2 951 momnorm=(xmom_centroid_values[k]*xmom_centroid_values[k]+ 952 ymom_centroid_values[k]*ymom_centroid_values[k]); 953 954 // vel^2 < constant*g*dpth [-- then multiply both sides by dpth^2] 955 if(momnorm > 4*9.81*dpth*dpth*dpth){ 956 // Down-scale momentum so that Froude number < constant 957 tmp=sqrt((4*9.81*dpth*dpth*dpth)/momnorm); 958 xmom_centroid_values[k] *=tmp; 959 ymom_centroid_values[k] *=tmp; 960 } 961 } 962 962 } 963 963 … … 1201 1201 // Calculate heights of neighbouring cells 1202 1202 hc = stage_centroid_values[k] - elevation_centroid_values[k]; 1203 h0 = stage_centroid_values[k ] - elevation_centroid_values[k0];1204 h1 = stage_centroid_values[k ] - elevation_centroid_values[k1];1205 h2 = stage_centroid_values[k ] - elevation_centroid_values[k2];1203 h0 = stage_centroid_values[k0] - elevation_centroid_values[k0]; 1204 h1 = stage_centroid_values[k1] - elevation_centroid_values[k1]; 1205 h2 = stage_centroid_values[k2] - elevation_centroid_values[k2]; 1206 1206 hmin = min(min(h0, min(h1, h2)), hc); 1207 1207 //// GD FIXME: No longer needed? … … 1290 1290 find_qmin_and_qmax(dq0, dq1, dq2, &qmin, &qmax); 1291 1291 1292 beta_tmp = 1.0;//beta_w_dry + (beta_w - beta_w_dry) * hfactor;1292 beta_tmp = beta_w_dry + (beta_w - beta_w_dry) * hfactor; 1293 1293 1294 1294 -
trunk/anuga_work/development/gareth/tests/dam_break/plotme.py
r9007 r9008 11 11 12 12 13 p_dev = util2.get_output('dam_break_201310 09_221446/dam_break.sww', 0.001)13 p_dev = util2.get_output('dam_break_20131018_165002/dam_break.sww', 0.001) 14 14 p2_dev=util2.get_centroids(p_dev, velocity_extrapolation=True) 15 15 -
trunk/anuga_work/development/gareth/tests/shallow_steep_slope/channel_SU_sparse.py
r9007 r9008 36 36 #------------------------------------------------------------------------------ 37 37 def topography(x, y): 38 return -x/10. #+ 1.*(numpy.sin(x/10.) +abs(y-50.)/10.) -0.*(x>80.) # linear bed slope38 return -x/10. + 1.*(numpy.sin(x/10.) +abs(y-50.)/10.) -0.*(x>80.) # linear bed slope 39 39 40 40 def stagetopo(x,y): -
trunk/anuga_work/development/gareth/tests/urban_flow/ideal_urban.py
r8774 r9008 12 12 #from anuga.structures.inlet_operator import Inlet_operator 13 13 14 from bal anced_devimport *15 from bal anced_devimport create_domain_from_regions as create_domain_from_regions14 from bal_and import * 15 from bal_and import create_domain_from_regions as create_domain_from_regions 16 16 #from anuga_tsunami import * 17 17 #from anuga_tsunami import create_domain_from_regions as create_domain_from_regions -
trunk/anuga_work/development/gareth/tests/urban_flow/plotme.py
r8523 r9008 1 1 ### Python code to do plotting of this experiment. 2 2 3 importutil3 from bal_and import plot_utils as util 4 4 import numpy 5 5 from matplotlib import pyplot as pyplot
Note: See TracChangeset
for help on using the changeset viewer.