> For the complete documentation index, see [llms.txt](https://swatplus.gitbook.io/io-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://swatplus.gitbook.io/io-docs/theoretical-documentation/section-2-hydrology.md).

# Section 2: Hydrology

<figure><img src="/files/DPXCvfjdzetetJgxNgPv" alt=""><figcaption></figcaption></figure>

The land phase of the hydrologic cycle is based on the water balance equation:

$$
SW\_t = SW\_0 +\sum\_{i=1}^t (R\_{day} - Q\_{surf} - E\_a - w\_{seep} - Q\_{gw})
$$

where $$SW\_t$$ is the final soil water content (mm H2O), $$SW\_0$$ is the initial soil water content (mm H2O), *t* is the time (days), $$R\_{day}$$ is the amount of precipitation on day *i* (mm H2O), $$Q\_{surf}$$ is the amount of surface runoff on day *i* (mm H2O), $$E\_a$$ is the amount of evapotranspiration on day *i* (mm H2O), $$w\_{seep}$$ is the amount of percolation and bypass flow exiting the soil profile bottom on day *i* (mm H2O), and $$Q\_{gw}$$ is the amount of return flow on day *i* (mm H2O).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://swatplus.gitbook.io/io-docs/theoretical-documentation/section-2-hydrology.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
