pub struct OperationModeElement {
pub fill_level_range: NumberRange,
pub fill_rate: NumberRange,
pub power_ranges: Vec<PowerRange>,
pub running_costs: Option<NumberRange>,
}Expand description
How an operation mode behaves over one band of the fill level.
Splitting a mode into elements is how a Resource Manager describes behaviour that is
not linear in the fill level — a heat pump whose efficiency falls as the buffer gets
hotter, say. The elements’ fill_level_ranges must be contiguous.
Fields§
§fill_level_range: NumberRangeThe band of fill level this element describes. Start strictly below end.
fill_rate: NumberRangeChange in fill level per second: the start at factor 0, the end at factor 1. Positive fills the store.
power_ranges: Vec<PowerRange>The power exchanged with the grid, at most one range per commodity quantity.
running_costs: Option<NumberRange>Cost per second of running in this mode, excluding the commodity itself. The range expresses uncertainty and is not interpolated by the factor.
Implementations§
Source§impl OperationModeElement
impl OperationModeElement
Sourcepub fn builder() -> OperationModeElementBuilder
pub fn builder() -> OperationModeElementBuilder
Create an instance of OperationModeElement using the builder syntax