gtopt::RightBoundSegment struct

One segment of a piecewise-linear bound function.

Each segment defines a linear function bound = constant + slope * V that is active when the reservoir volume is in range [volume, next_segment.volume). constant is the y-intercept at V = 0 (same convention as ReservoirSeepageSegment).

For a continuous piecewise function the constants are chosen so that adjacent segments agree at the breakpoint: constant_i = constant_{i-1} + slope_{i-1} * volume_i - slope_i * volume_i

Public variables

Real constant
Y-intercept: bound at V=0 for this segment's linear equation.
Real slope
d(bound)/d(V)
Real volume
Volume breakpoint [hm3] – segment active when V >= volume.