MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
gwf-sfr-constant.f90
Go to the documentation of this file.
1submodule(sfrmodule) sfrmoduleconstant
2contains
3
4 !> @brief Method for solving for simple reaches
5 !!
6 !! Method to solve the continuity equation for a SFR package
7 !! reach using the simple approach.
8 !!
9 !<
10 module procedure sfr_calc_constant
11 real(DP) :: qsrc
12
13 this%stage(n) = this%sstage(n)
14 d1 = max(dzero, this%stage(n) - this%strtop(n))
15
16 call this%sfr_calc_qsource(n, d1, qsrc)
17
18 if (this%sfr_gwf_conn(n) == 1) then
19 call this%sfr_calc_qgwf(n, d1, hgwf, qgwf)
20 qgwf = -qgwf
21 else
22 qgwf = dzero
23 end if
24
25 ! leakage exceeds inflow
26 if (qgwf > qsrc) then
27 d1 = dzero
28 call this%sfr_calc_qsource(n, d1, qsrc)
29 qgwf = qsrc
30 end if
31
32 ! set qd
33 qd = qsrc - qgwf
34
35 end procedure sfr_calc_constant
36
37end submodule
This module contains the SFR package methods.
Definition gwf-sfr.f90:7