# How to enter storage curve as depth vs volume in XPSWMM

source: Innovyze Support Portal

When modeling storage, entering a depth storage curve seems to be the only option in XPSWMM. What if you need to enter a depth-volume curve instead?

Designed for advanced users, we can overwrite default behavior of the XPSWMM using configuration keywords.

With the VE keyword, XPSWMM will take the storage curve as depth-volume. However, setting up a model in this manner can be quite confusing because the user interface still says it is depth vs area, you can only tell this by checking this VE parameter or looking into the detailed 1D log.

Another challenge is that this applies to the whole model, if you have a mix of depth-area and depth-volume curves, then they need to be converted to the same format.

Here is the recommended approach,

- setup the VE configuration keyword
- enter the depth-vs-volume curve
- run the model
- check the 1D log table 4E and get the converted depth-vs-area curve
- remove the VE configuration keyword
- update the cure to the depth-vs-area curve
- run the model

# Converting depth-volume to depth-area

When the VE parameter is used, XPSWMM starts with the user defined stage information provided, then breaks this into a smaller interval, and uses an algorithm to approximate the equivalent areas for the volume you have provided.

After the running the model, go to the 1D log.

The section titled: “Storage Junction Data” right after Table E3b has the storage information.

Below is a sample of storage without using the VE keyword,

With the keyword VE turned on,

As shown above, when the junction type is Elev/Vol, XPSWMM interpolates the curve into smaller intervals to approximate the depth-volume curve as depth-area curve. Pay attention to the units when copying the curve. In this case, we would copy the “depth ft” column and “Area acres” columns as the depth-area curve.

Note that storage volume when using the stepwise linear method is represented as a Frustum, and the volume is calculated using the following formula for volume of a Frustum:

V = h/3 (B1 + SQRT(B1*B2) + B2)

where V is the volume of storage

h is the height

B1 and B2 the surface areas