# 2:4.2.6 Groundwater Height

Although SWAT+ does not currently print groundwater height in the output files, the water table height is updated daily by the model. Groundwater height is related to groundwater flow by equation 2:4.2.6.

&#x20;$$Q\_{gw}=\frac{8000*K\_{sat}}{L^2\_{gw}}*h\_{wtbl}=\frac{8000*\mu}{10}*\frac{10*K\_{sat}}{\mu \* L^2\_{gw}}*h\_{wtbl}=800*\mu*\alpha\_{gw}\*h\_{wtbl}$$                                  2:4.2.19

where $$Q\_{gw}$$ is the groundwater flow into the main channel on day $$i$$ (mm H$$*2$$O), $$K*{sat}$$ is the hydraulic conductivity of the aquifer (mm/day), $$L\_{gw}$$ is the distance from the ridge or subbasin divide for the groundwater system to the main channel (m), $$h\_{wtbl}$$ is the water table height (m), $$\mu$$ is the specific yield of the shallow aquifer (m/m), and $$\alpha\_{gw}$$ is the baseflow recession constant. Substituting this definition for $$Q\_{gw}$$ into equation 2:4.2.9 gives

$$h\_{wtbl,i}=h\_{wtbl,i-1}*exp\[-\alpha\_{gw}*\Delta t]+\frac{w\_{rchrg}*(1-exp\lfloor-\alpha\_{gw} *\Delta t\rfloor)}{800*\mu*\alpha\_{gw}}$$                                                           2:4.2.20

where $$h\_{wtbl,i}$$ is the water table height on day $$i$$ (m), $$h\_{wtbl,i-1}$$ is the water table height on day $$i-1$$ (m), $$\alpha\_{gw}$$ is the baseflow recession constant, $$\Delta t$$ is the time step (1 day), $$w\_{rchrg}$$ is the amount of recharge entering the aquifer on day $$i$$ (mm H$$\_2$$O), and $$\mu$$ is the specific yield of the shallow aquifer (m/m).

Table 2:4-1: SWAT+ input variables used in shallow aquifer calculations.

| Definition                                                                               | Source Name | Input Name | Input File |
| ---------------------------------------------------------------------------------------- | ----------- | ---------- | ---------- |
| $$\delta\_{gw}$$: Delay time for aquifer recharge (days)                                 | GW\_DELAY   |            | .gw        |
| $$aq\_{shthr,q}$$: Threshold water level in shallow aquifer for base flow (mm H$$\_2$$O) | GWQMN       |            | .gw        |
| $$\alpha\_{gw}$$: Baseflow recession constant                                            | ALPHA\_BF   |            | .gw        |
| $$aq\_{shthr,rvp}$$: Threshold water level in shallow aquifer for revap (mm H$$\_2$$O)   | REVAPMN     |            | .gw        |
| $$\beta\_{rev}$$: Revap coefficient                                                      | GW\_REVAP   |            | .gw        |
| $$\beta\_{deep}$$: Aquifer percolation coefficient                                       | RCHRG\_DP   |            | .gw        |
| $$\mu$$: Specific yield of the shallow aquifer (m/m)                                     | GW\_SPYLD   |            | .gw        |
