Changeset 9011
- Timestamp:
- Oct 30, 2013, 7:35:11 PM (12 years ago)
- Location:
- trunk/anuga_work/development/gareth
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/experimental/bal_and/swb2_domain_ext.c
r9010 r9011 158 158 uh_left=q_left_rotated[1]; 159 159 vh_left=q_left_rotated[2]; 160 //if(h_left>1.0e-03){161 // u_left = uh_left/(h_left+0.0e-03) ; //max(h_left, 1.0e-06);162 //uh_left=h_left*u_left;163 // vh_left=h_left/(h_left+0.0e-03)*vh_left;164 //}else{165 //u_left=0.;166 //uh_left=0.;167 //vh_left=0.;168 //}160 if(h_left>1.0e-03){ 161 u_left = uh_left/(hle+0.0e-03) ; //max(h_left, 1.0e-06); 162 uh_left=h_left*u_left; 163 vh_left=h_left/(hle+0.0e-03)*vh_left; 164 }else{ 165 u_left=0.; 166 uh_left=0.; 167 vh_left=0.; 168 } 169 169 // NOTE: using hle instead of h_left here seems to help prevent velocity spikes 170 u_left = _compute_speed(&uh_left, &hle,171 epsilon, h0, limiting_threshold);170 //u_left = _compute_speed(&uh_left, &hle, 171 // epsilon, h0, limiting_threshold); 172 172 173 173 w_right = q_right_rotated[0]; 174 174 uh_right = q_right_rotated[1]; 175 175 vh_right = q_right_rotated[2]; 176 //if(h_right>1.0e-03){177 // u_right = uh_right/(h_right+0.0e-03);//max(h_right, 1.0e-06);178 //uh_right=h_right*u_right;179 // vh_right=h_right/(h_right+0.0e-03)*vh_right;180 //}else{181 //u_right=0.;182 //uh_right=0.;//h_right*u_right;183 //vh_right=0.;184 //}176 if(h_right>1.0e-03){ 177 u_right = uh_right/(hre+0.0e-03);//max(h_right, 1.0e-06); 178 uh_right=h_right*u_right; 179 vh_right=h_right/(hre+0.0e-03)*vh_right; 180 }else{ 181 u_right=0.; 182 uh_right=0.;//h_right*u_right; 183 vh_right=0.; 184 } 185 185 // NOTE: using hre instead of h_right here seems to help prevent velocity spikes 186 u_right = _compute_speed(&uh_right, &hre,187 epsilon, h0, limiting_threshold);186 //u_right = _compute_speed(&uh_right, &hre, 187 // epsilon, h0, limiting_threshold); 188 188 189 189 -
trunk/anuga_work/development/gareth/tests/channel_floodplain/plotme.py
r9007 r9011 5 5 6 6 # Time-index to plot outputs from 7 index=408 #index=9007 #index=40 8 index=900 9 9 10 10 #p2 = util.get_output('channel_floodplain1_bal_dev.sww', minimum_allowed_height=0.01) -
trunk/anuga_work/development/gareth/tests/dam_break/plotme.py
r9008 r9011 11 11 12 12 13 p_dev = util2.get_output('dam_break_201310 18_165002/dam_break.sww', 0.001)13 p_dev = util2.get_output('dam_break_20131030_174145/dam_break.sww', 0.001) 14 14 p2_dev=util2.get_centroids(p_dev, velocity_extrapolation=True) 15 15
Note: See TracChangeset
for help on using the changeset viewer.