Changeset 2649 for inundation/pyvolution/shallow_water_ext.c
- Timestamp:
- Apr 2, 2006, 8:07:36 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/shallow_water_ext.c
r2648 r2649 245 245 h = w[k]-z[k]; 246 246 if (h >= eps) { 247 248 249 250 251 252 253 254 255 247 S = -g * eta[k]*eta[k] * sqrt((uh[k]*uh[k] + vh[k]*vh[k])); 248 S /= pow(h, 7.0/3); //Expensive (on Ole's home computer) 249 //S /= exp(7.0/3.0*log(h)); //seems to save about 15% over manning_friction 250 //S /= h*h*(1 + h/3.0 - h*h/9.0); //FIXME: Could use a Taylor expansion 251 252 253 //Update momentum 254 xmom[k] += S*uh[k]; 255 ymom[k] += S*vh[k]; 256 256 } 257 257 }
Note: See TracChangeset
for help on using the changeset viewer.