> 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-3-nutrients-pesticides/bacteria/leaching.md).

# Leaching

Bacteria can be transported with percolation into the soil profile. Only bacteria present in the soil solution is susceptible to leaching. Bacteria removed from the surface soil layer by leaching are assumed to die in the deeper soil layers.

&#x20;         The amount of bacteria transported from the top 10 mm into the first soil layer is:

$$bact\_{lp,perc}=\frac{bact\_{lpsol}*w\_{perc,surf}}{10*\rho\_b\*depth\_{surf}\*k\_{bact,perc}}$$                                                                       3:4.3.1

$$bact\_{p,perc}=\frac{bact\_{psol}*w\_{perc,surf}}{10*\rho\_b\*depth\_{surf}\*k\_{bact,perc}}$$                                                                        3:4.3.2

where $$bact\_{lp,perc}$$ is the amount of less persistent bacteria transported from the top 10 mm into the first soil layer (#cfu/m$$^2$$), $$bact\_{lpsol}$$ is the amount of less persistent bacteria present in soil solution (#cfu/m$$^2$$), $$w\_{perc,surf}$$ is the amount of water percolating to the first soil layer from the top 10 mm on a given day (mm H$$*2$$O), $$\rho\_b$$ is the bulk density of the top 10 mm (Mg/m$$^3$$) (assumed to be equivalent to bulk density of first soil layer), $$depth*{surf}$$ is the depth of the “surface” layer (10 mm), $$k\_{bact,perc}$$ is the bacteria percolation coefficient (10 m$$^3$$/Mg), $$bact\_{p,perc}$$ is the amount of persistent bacteria transported from the top 10 mm into the first soil layer (#cfu/m$$^2$$), and $$bact\_{psol}$$ is the amount of persistent bacteria present in soil solution (#cfu/m$$^2$$).

Table 3:4-3: SWAT+ input variables that pertain to bacteria transport in percolate.

| Variable Name | Definition                                                           | Input File |
| ------------- | -------------------------------------------------------------------- | ---------- |
| SOL\_BD       | $$\rho\_b$$: Bulk density of the layer (Mg/m$$^3$$)                  | .sol       |
| BACTMIX       | $$k\_{bact,perc}$$: Bacteria percolation coefficient (10 m$$^3$$/Mg) | .bsn       |


---

# 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-3-nutrients-pesticides/bacteria/leaching.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.
