BBL
madsen
madsen(ub_r, omega_r, uc_r, phi_c, phi_wr, z_r, kN, max_iter=10, tol=0.0001)
Grant and Madsen (1979) combined wave-current bottom boundary layer model as implemented in Madsen (1994).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ub_r
|
float
|
Wave orbital velocity measured at height z_r (m/s) |
required |
omega_r
|
float
|
Radian wave frequency measured at height z_r (rad/s) |
required |
uc_r
|
float
|
Mean current velocity measured at height z_r (m/s) |
required |
phi_c
|
float
|
Angle of propagation of the mean current (degrees) |
required |
phi_wr
|
float
|
Angle of propagation of the surface waves (degrees) |
required |
z_r
|
float
|
reference height for wave and current measurements (m) |
required |
kN
|
float
|
Sand grain (Nikuradse) roughness height (m) |
required |
max_iter
|
int
|
Maximum number of iterations, by default 10 |
10
|
tol
|
float
|
Convergence tolerance, by default 1e-4 relative |
0.0001
|
Returns:
| Type | Description |
|---|---|
dict
|
Dictionary containing current friction velocity |
References
Grant, W. D., & Madsen, O. S. (1979). Combined wave and current interaction with a rough bottom. Journal of Geophysical Research: Oceans, 84(C4), 1797-1808
Madsen, O. S. (1994). Spectral wave-current bottom boundary layer flows. In Coastal engineering 1994 (pp. 384-398).
Source code in src/pytoast/boundaries/bbl.py
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | |
styles
styles(ub, ab, ur, zr, deg, d_median, s=_S, nu=_NU, g=_G, beta=_BETA, Alpha=_ALPHA, Con=_CON, kbr_def=_KBR_DEF, max_iter=50, tol=0.0001)
Styles et al. (2017) combined wave-current bottom boundary layer model. This is a python port of the Matlab source code (https://cirp.usace.army.mil/products/bblm.php). It has been edited to remove unnecessary input parameters and some variable names have been changed for clarity. The custom bisection and secant solvers have also been replaced with scipy.optimize.brentq and scipy.optimize.newton, respectively. The output on the provided test data is within an acceptable tolerance despite these changes (see py-tests/). Finally, all inputs and outputs use SI units (m) rather than CGS units (centimeters, grams, seconds) like the source.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ub
|
float
|
Bottom wave orbital velocity amplitude (m/s) |
required |
ab
|
float
|
Bottom wave excursion amplitude (m) |
required |
ur
|
float
|
Mean current speed at height zr (m/s) |
required |
zr
|
float
|
Height above bed where ur is measured (m) |
required |
deg
|
float
|
Angle between wave propagation and current direction (degrees) |
required |
d_median
|
float
|
Median grain diameter (m) |
required |
s
|
float
|
Relative sediment density (default 2.65) |
_S
|
nu
|
float
|
Kinematic viscosity (m^2/s; default 1.19e-6 for seawater at 15 C) |
_NU
|
g
|
float
|
Gravitational acceleration (m/s^2; default 9.81) |
_G
|
beta
|
float
|
Closure constant (default 0.7) |
_BETA
|
Alpha
|
float
|
Closure constant (default 0.3) |
_ALPHA
|
Con
|
float
|
Closure constant (default 6.4) |
_CON
|
kbr_def
|
float
|
Default ripple roughness used when Psi < psicr (m; default 0.03) |
_KBR_DEF
|
max_iter
|
int
|
Maximum bisection iterations (default 50) |
50
|
tol
|
float
|
Bisection convergence tolerance (default 1e-4) |
0.0001
|
Returns:
| Type | Description |
|---|---|
dict with keys:
|
|
References
Styles, R., Glenn, S. M., & Brown, M. E. (2017). An optimized combined wave and current bottom boundary layer model for arbitrary bed roughness (No. ERDCCHLTR1711).
Source code in src/pytoast/boundaries/bbl.py
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 | |