Skip to content

Interpolated Volume

Video using the Interpolated Volume Parameter

Generic interpolation parameter that returns a value based on a Reservoir or Storage nodes current (time step) volume. The

parameter uses an array (table) of Reservoir Volumes and corresponding values. In this case the associated values are the corresponding Reservoir Area for a given Volume.

Interpolation is used to calculate values betwen points given in the interpolation array. API Reference

NameDescriptionRequired
typeinterpolatedvolumeYes
nodeStorage node to provide input volume values to interpolation calculationYes
volumesx coordinates of the data points for interpolationYes
valuesy coordinates of the data points for interpolationYes
interp_kwargsDictionary of keyword arguments to pass to scipy.interpolate.interp1d class and used for interpolationOptional

The following Json shows an example Area vs Volume rating cure for a reservoir. This could be used to define the Area attribute of a Storage or Reservoir node.

{
"type": "InterpolatedVolumeParameter",
"node": "Reservoir or Storage node name",
"volumes": [
0,
7,
10,
15,
25
],
"values": [
1,
2,
4,
6,
14
],
"interp_kwargs": {
"kind": "linear"
},
"comment": "volumes: Mm3, values: Km2"
}

The Json represents the table below:

Volume (Mm3)Area (Km2)
01
72
104
156
2514

When plotted it looks like this:

Below is an example Area rating table

Volume (Mm3)Area (Km2)
01
72
104
156
2514

When plotted it looks like this