qman.f
来自「水文模型的原始代码」· F 代码 · 共 36 行
F
36 行
function qman(x1,x2,x3,x4)
!! ~ ~ ~ PURPOSE ~ ~ ~
!! this subroutine calculates flow rate or flow velocity using Manning's
!! equation. If x1 is set to 1, the velocity is calculated. If x1 is set to
!! cross-sectional area of flow, the flow rate is calculated.
!! ~ ~ ~ INCOMING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! x1 |m^2 or none |cross-sectional flow area or 1.
!! x2 |m |hydraulic radius
!! x3 |none |Manning's "n" value for channel
!! x4 |m/m |average slope of channel
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ OUTGOING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! qman |m^3/s or m/s |flow rate or flow velocity
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ SUBROUTINES/FUNCTIONS CALLED ~ ~ ~
!! Intrinsic: Sqrt
!! ~ ~ ~ ~ ~ ~ END SPECIFICATIONS ~ ~ ~ ~ ~ ~
real, intent (in) :: x1, x2, x3, x4
real :: qman
qman = 0.
qman = x1 * x2 ** .6666 * Sqrt(x4) / x3
return
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?