MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
gwfsfrcommonmodule Module Reference

Kinematic-wave routing terms for the SFR Package.

Functions/Subroutines

pure real(dp) function, public kinematic_residual (qa, qb, qc, qd, aa, ab, ac, ad, qsrc, length, weight, delt, courant)
 Kinematic routing equation residual.
pure real(dp) function, public kinematic_storage (aa, ab, ac, ad, length, delt, courant)
 Kinematic routing equation storage term.

Function/Subroutine Documentation

◆ kinematic_residual()

pure real(dp) function, public gwfsfrcommonmodule::kinematic_residual ( real(dp), intent(in) qa,
real(dp), intent(in) qb,
real(dp), intent(in) qc,
real(dp), intent(in) qd,
real(dp), intent(in) aa,
real(dp), intent(in) ab,
real(dp), intent(in) ac,
real(dp), intent(in) ad,
real(dp), intent(in) qsrc,
real(dp), intent(in) length,
real(dp), intent(in) weight,
real(dp), intent(in) delt,
real(dp), intent(in) courant )
Returns
kinematic-wave residual
Parameters
[in]qaupstream flow at previous time
[in]qbdownstream flow at previous time
[in]qcupstream flow
[in]qddownstream flow
[in]aaupstream area at previous time
[in]abdownstream area at previous time
[in]acupstream area
[in]addownstream area
[in]qsrclateral flow term (L3T-1L-1)
[in]lengthreach length
[in]weighttemporal weight
[in]delttime step length
[in]courantcourant number

Definition at line 15 of file GwfSfrCommon.f90.

19 ! -- return variable
20 real(DP) :: kinematic_residual !< kinematic-wave residual
21 ! -- dummy variables
22 real(DP), intent(in) :: qa !< upstream flow at previous time
23 real(DP), intent(in) :: qb !< downstream flow at previous time
24 real(DP), intent(in) :: qc !< upstream flow
25 real(DP), intent(in) :: qd !< downstream flow
26 real(DP), intent(in) :: aa !< upstream area at previous time
27 real(DP), intent(in) :: ab !< downstream area at previous time
28 real(DP), intent(in) :: ac !< upstream area
29 real(DP), intent(in) :: ad !< downstream area
30 real(DP), intent(in) :: qsrc !< lateral flow term (L3T-1L-1)
31 real(DP), intent(in) :: length !< reach length
32 real(DP), intent(in) :: weight !< temporal weight
33 real(DP), intent(in) :: delt !< time step length
34 real(DP), intent(in) :: courant !< courant number
35 ! -- local variables
36 real(DP) :: f11
37 real(DP) :: f12
38
39 if (courant > done) then
40 f11 = (qd - qc) / length
41 f12 = (ac - aa) / delt
42 else
43 f11 = (weight * (qd - qc) + (done - weight) * (qb - qa)) / length
44 f12 = dhalf * ((ad - ab) + (ac - aa)) / delt
45 end if
46 kinematic_residual = f11 + f12 - qsrc
47
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kinematic_storage()

pure real(dp) function, public gwfsfrcommonmodule::kinematic_storage ( real(dp), intent(in) aa,
real(dp), intent(in) ab,
real(dp), intent(in) ac,
real(dp), intent(in) ad,
real(dp), intent(in) length,
real(dp), intent(in) delt,
real(dp), intent(in) courant )

Water released from storage is positive, as in the reach budget.

Returns
kinematic-wave storage change
Parameters
[in]aaupstream area at previous time
[in]abdownstream area at previous time
[in]acupstream area
[in]addownstream area
[in]lengthreach length
[in]delttime step length
[in]courantcourant number

Definition at line 54 of file GwfSfrCommon.f90.

55 ! -- return variable
56 real(DP) :: kinematic_storage !< kinematic-wave storage change
57 ! -- dummy variables
58 real(DP), intent(in) :: aa !< upstream area at previous time
59 real(DP), intent(in) :: ab !< downstream area at previous time
60 real(DP), intent(in) :: ac !< upstream area
61 real(DP), intent(in) :: ad !< downstream area
62 real(DP), intent(in) :: length !< reach length
63 real(DP), intent(in) :: delt !< time step length
64 real(DP), intent(in) :: courant !< courant number
65
66 if (courant > done) then
67 kinematic_storage = (aa - ac) * length / delt
68 else
69 kinematic_storage = dhalf * ((aa + ab) - (ac + ad)) * length / delt
70 end if
71
Here is the call graph for this function:
Here is the caller graph for this function: