# Variable Storage Routing Method

The variable storage routing method was developed by Williams (1969) and used in the HYMO (Williams and Hann, 1973) and ROTO (Arnold et al., 1995) models.&#x20;

&#x20;       For a given reach segment, storage routing is based on the continuity equation:

&#x20;                             $$V\_{in}-V\_{out}=\Delta V\_{stored}$$                                                                      7:1.3.1

where $$V\_{in}$$ is the volume of inflow during the time step (m$$^3$$ H$$*2$$O), $$V*{out}$$ is the volume of outflow during the time step (m$$^3$$ H$$*2$$O), and $$\Delta V*{stored}$$ is the change in volume of storage during the time step (m$$^3$$ H$$\_2$$O). This equation can be written as

&#x20;              $$\Delta t\*(\frac{q\_{in,1}+q\_{in,2}}{2})-\Delta t\*(\frac{q\_{out,1}+q\_{out,2}}{2})=V\_{stored,2}-V\_{stored,1}$$                        7:1.3.2

where $$\Delta t$$ is the length of the time step (s), $$q\_{in,1}$$ is the inflow rate at the beginning of the time step (m$$^3$$/s), $$q\_{in,2}$$ is the inflow rate at the end of the time step (m$$^3$$/s),  $$q\_{out,1}$$ is the outflow rate at the beginning of the time step (m$$^3$$/s), $$q\_{out,2}$$ is the outflow rate at the end of the time step (m$$^3$$/s), $$V\_{stored,1}$$ is the storage volume at the beginning of the time step (m$$^3$$ H$$*2$$O), and $$V*{stored,2}$$ is the storage volume at the end of the time step (m$$^3$$ H$$\_2$$O). Rearranging equation 7:1.3.2 so that all known variables are on the left side of the equation,

&#x20;                                 $$q\_{in,ave}+\frac{V\_{stored,1}}{\Delta t}-\frac{q\_{out,1}}{2}=\frac{V\_{stored,2}}{\Delta t}+\frac{q\_{out,2}}{2}$$                                              7:1.3.3

where $$q\_{in,ave}$$ is the average inflow rate during the time step: $$q\_{in,ave}=\frac{q\_{in,1}+q\_{in,2}}{2}$$**.**

&#x20;               Travel time is computed by dividing the volume of water in the channel by the flow rate.

&#x20;                               $$TT=\frac{V\_{stored}}{q\_{out}}=\frac{V\_{stored,1}}{q\_{out,1}}=\frac{V\_{stored,2}}{q\_{out,2}}$$                                                           7:1.3.4

where $$TT$$ is the travel time (s), $$V\_{stored}$$ is the storage volume (m$$^3$$ H$$*2$$O), and $$q*{out}$$ is the discharge rate (m$$^3$$/s).

&#x20;          To obtain a relationship between travel time and the storage coefficient, equation 7:1.3.4 is substituted into equation 7:1.3.3:

&#x20;                     $$q\_{in,ave}+\frac{V\_{stored,1}}{(\frac{\Delta t}{TT})*(\frac{V\_{stored,1}}{q\_{out,1}})}-\frac{q\_{out,1}}{2}=\frac{V\_{stored,2}}{(\frac{\Delta t}{TT})*(\frac{V\_{stored,2}}{q\_{out,2}})}+\frac{q\_{out,2}}{2}$$                                  7:1.3.5

which simplifies to

&#x20;                     $$q\_{out,2}=(\frac{2\*\Delta t}{2*TT+\Delta t})*q\_{in,ave}+(1-\frac{2*\Delta t}{2*TT+ \Delta t})\*q\_{out,1}$$                                  7:1.3.6

This equation is similar to the coefficient method equation

&#x20;                      $$q\_{out,2}=SC\*q\_{in,ave}+(1-SC)\*q\_{out,1}$$                                                    7:1.3.7

where $$SC$$ is the storage coefficient. Equation 7:1.3.7 is the basis for the SCS convex routing method (SCS, 1964) and the Muskingum method (Brakensiek, 1967; Overton, 1966). From equation 7:1.3.6, the storage coefficient in equation 7:1.3.7 is defined as&#x20;

&#x20;                      $$SC=\frac{2\*\Delta t}{2\*TT+ \Delta t}$$                                                                                                7:1.3.8

It can be shown that

&#x20;                       $$(1-SC)*q\_{out}=SC*\frac{V\_{stored}}{\Delta t}$$                                                                    7:1.3.9

Substituting this into equation 7:1.3.7 gives

&#x20;                        $$q\_{out,2}=SC\*(q\_{in,ave}+\frac{V\_{stored,1}}{\Delta t })$$                                                                7:1.3.10

To express all values in units of volume, both sides of the equation are multiplied by the time step

&#x20;                          $$V\_{out,2}=SC\*(V\_{in}+V\_{stored,1})$$                                                              7:1.3.11


---

# Agent Instructions: 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-7-main-channel-processes/water-routing/variable-storage-routing-method.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.
