Commit 1284a0e6 authored by Topi Rasku's avatar Topi Rasku
Browse files

Implementing more results arrays again. Reserves, unit online time and...

Implementing more results arrays again. Reserves, unit online time and approximate utilization rates.
parent 69f51939
......@@ -56,6 +56,11 @@ r_gTotalConsumption
r_gnTotalRealizedCost
r_gTotalRealizedCost
r_totalRealizedCost
r_nuTotalReserve
r_nTotalReserve
r_uTotalOnline
r_uTotalOnlinePerUnit
r_gnuUtilizationRate
// Diagnostics
d_cop
......
......@@ -37,11 +37,12 @@ Parameters
// Total variable value arrays
r_totalObj "Total operating cost over the simulation (€)" / 0 /
r_uTotalOnline(unit) "Total online sub-unit-hours of units over the simulation"
r_gnuTotalGen(grid, node, unit) "Total energy generation/consumption in gnu over the simulation (MWh)"
r_gnTotalGen(grid, node) "Total energy generation/consumption in gn over the simulation (MWh)"
r_gTotalGen(grid) "Total energy generation/consumption in g over the simulation (MWh)"
* r_nuTotalReserve(restype, up_down, node, unit) "Total nu reserve provision over the simulation (MW*h)"
* r_nTotalReserve(restype, up_down, node) "Total reserve provisions in nodes over the simulation (MW*h)"
r_nuTotalReserve(restype, up_down, node, unit) "Total nu reserve provision over the simulation (MW*h)"
r_nTotalReserve(restype, up_down, node) "Total reserve provisions in nodes over the simulation (MW*h)"
r_gnTotalGenFuel(grid, node, fuel) "Total energy generation/consumption in gn per fuel over the simulation (MWh)"
r_gTotalGenFuel(grid, fuel) "Total energy generation/consumption in g per fuel over the simulation (MWh)"
r_totalGenFuel(fuel) "Total overall energy generation/consumption per fuel over the simulation (MWh)"
......@@ -57,6 +58,8 @@ Parameters
r_gnTotalRealizedCost(grid, node) "Total realized system costs in gn over the simulation (MEUR)"
r_gTotalRealizedCost(grid) "Total realized system costs in g over the simulation (MEUR)"
r_totalRealizedCost "Total realized system costs over the simulation (MEUR)" / 0 /
r_uTotalOnlinePerUnit(unit) "Total unit online hours per sub-unit over the simulation"
r_gnuUtilizationRate(grid, node, unit) "Approximate utilization rates of gnus over the simulation"
// Old results arrays
* r_genNodeType(grid, node, unitType, t) "Energy generation/consumption based on unittypes (MW)"
......
......@@ -44,18 +44,44 @@ loop(m,
+ r_genFuel(grid, node, fuel, f, t)
* p_stepLengthNoReset(m, f, t)
); // END sum(ft_realizedNoReset)
// Total transfer of energy between nodes
r_gnnTotalTransfer(gn2n(grid, from_node, to_node))
= sum(ft_realizedNoReset(f, t),
+ r_transfer(grid, from_node, to_node, f, t)
* p_stepLengthNoReset(m, f, t)
); // END sum(ft_realizedNoReset)
// Total energy spill from nodes
r_gnTotalSpill(grid, node_spill(node))
= sum(ft_realizedNoReset(f, t),
+ r_spill(grid, node, f, t)
* p_stepLengthNoReset(m, f, t)
); // END sum(ft_realizedNoReset)
// Total reserve provisions over the simulation
r_nuTotalReserve(nuRescapable(restype, up_down, node, unit))
= sum(ft_realizedNoReset(f, t),
+ r_reserve(restype, up_down, node, unit, f, t)
* p_stepLengthNoReset(m, f, t)
); // END sum(ft_realizedNoReset)
// Total sub-unit-hours for units over the simulation
r_uTotalOnline(unit)
= sum(ft_realizedNoReset(f, t),
+ r_online(unit, f, t)
* p_stepLengthNoReset(m, f, t)
); // END sum(ft_realizedNoReset)
// Approximate utilization rates for gnus over the simulation
r_gnuUtilizationRate(gnu_output(grid, node, unit))
= r_gnuTotalGen(grid, node, unit)
/ [
+ p_gnu(grid, node, unit, 'maxGen')
* (mSettings(m, 't_end') - mSettings(m, 't_start') + 1)
* mSettings(m, 'intervalInHours')
]; // END division
); // END loop(m)
// Total generation in gn
......@@ -93,3 +119,13 @@ r_gTotalRealizedCost(grid)
r_totalRealizedCost
= sum(gn(grid, node), r_gnTotalRealizedCost(grid, node));
// Total reserve provision in nodes over the simulation
r_nTotalReserve(restypeDirectionNode(restype, up_down, node))
= sum(nuRescapable(restype, up_down, node, unit), r_nuTotalReserve(restype, up_down, node, unit));
// Total unit online hours per sub-unit over the simulation
r_uTotalOnlinePerUnit(unit)
= r_uTotalOnline(unit)
/ p_unit(unit, 'unitCount');
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment