> 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-6-management-practices/septic-systems/biozone-algorithm/soil-moisture-and-percolation.md).

# Soil Moisture and Percolation

Soil porosity (or saturated moisture content) is generally constant in natural soil; however, the porosity of biozone changes with time. The actual porosity of biozone decreases as the suspended solids from STE accumulate in the pore space and the mineralized biomass (dead body) increases in the biozone.

&#x20;                                                   $$\theta\_s=\theta\_{si}-\frac{plaque}{\rho\_{bm}}$$                                                                   (8)

where $$\theta\_{si}$$ is initial soil porosity with zero plaque (mm). The moisture content at each time step is estimated using the mass balance of water within the biozone.

&#x20;                                                $$\theta^t=\theta^{t-1}+\frac{Q\_{STE}}{10\*A\_d}-I\_p-ET-Q\_{lat}$$                                    (9)

where $$ET$$ is evaportranspiration from biozone (mm/day) and $$Q\_{lat}$$ is lateral flow (mm/day). Percolation to a subsoil layer is triggered if moisture content exceeds the field capacity in the biozone layer. Potential percolation is the maximum amount of water that can percolate during the time interval.   &#x20;

&#x20;                                                 $$I\_{p,pot}=K\_{bz}\*\Delta t$$                                                                   (10)

where $$I\_{p,pot}$$ is the potential amount of percolation (mm/day). The amount of water percolating to the sub-soil layer is calculated using storage routing methodology (Neitsch et al., 2005).

&#x20;          $$I\_{p,excess}=(\theta -\theta\_f)(1-exp\[\frac{-\Delta t}{TT\_{perc}}])$$         if      $$\theta > \theta\_f$$

&#x20;           $$I\_{p,excess}=0$$                                                  if      $$\theta \le \theta\_f$$                                            (11)

where  $$I\_{p,excess}$$ is the minimum amount of percolation (mm/day) and $$TT\_{perc}$$ is travel time for percolation $$(TT\_{perc}=(\theta\_s-\theta\_f)/K\_{bz})$$ in hour. The actual percolation is the smaller of the potential and minimum percolation.

&#x20;                                                   $$I\_p=min(I\_{p,pot},I\_{p,excess})$$                                                    (12)


---

# 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, and the optional `goal` query parameter:

```
GET https://swatplus.gitbook.io/io-docs/theoretical-documentation/section-6-management-practices/septic-systems/biozone-algorithm/soil-moisture-and-percolation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
