diff --git a/Zero_engine.alpx b/Zero_engine.alpx index 90810d25..9223e561 100644 --- a/Zero_engine.alpx +++ b/Zero_engine.alpx @@ -2229,6 +2229,10 @@ LARGE_CONNECTION (grootverbruik, > 3x80) 1776078970513 + + 1781710977201 + + com.anylogic.libraries.modules.markup_descriptors diff --git a/_alp/Agents/EnergyModel/Code/Functions.java b/_alp/Agents/EnergyModel/Code/Functions.java index 26946658..03088ce3 100644 --- a/_alp/Agents/EnergyModel/Code/Functions.java +++ b/_alp/Agents/EnergyModel/Code/Functions.java @@ -159,14 +159,22 @@ v_batteryStoredEnergy_kWh = 0; if (b_parallelizeGridConnections) { - c_gridConnections.parallelStream().forEach(gc -> gc.f_calculateEnergyBalance(p_timeVariables, v_isRapidRun)); + c_gridConnections.parallelStream().forEach(gc -> {if(!(gc instanceof GCDistrictHeating)){ gc.f_calculateEnergyBalance(p_timeVariables, v_isRapidRun);}}); } else { for(GridConnection gc : c_gridConnections) { - gc.f_calculateEnergyBalance(p_timeVariables, v_isRapidRun); + if(!(gc instanceof GCDistrictHeating)){ + gc.f_calculateEnergyBalance(p_timeVariables, v_isRapidRun); + } } } +for(GCDistrictHeating GCDH : DistrictHeatingSystems){ + if(GCDH.f_isActive()){ + GCDH.f_calculateEnergyBalance(p_timeVariables, v_isRapidRun); + } +} + //OLD LOCATION OF AGGREGATOR CALL, NECESSARY IF MANAGEMENT IS WITHOUT TIME STEP DELAY for(GridConnection gc : c_gridConnections) { // Can't do this in parallel due to different threads writing to the same values! @@ -502,7 +510,7 @@ double f_gridNodeRecursiveAdd(GridNode GN) {/*ALCODESTART::1716886716306*/ c_gridNodeExecutionList.add(GN); -for (GridNode GNchild : GN.c_connectedGridNodes) { +for (GridNode GNchild : GN.f_getConnectedGridNodes()) { f_gridNodeRecursiveAdd(GNchild); } diff --git a/_alp/Agents/EnergyModel/EmbeddedObjects.xml b/_alp/Agents/EnergyModel/EmbeddedObjects.xml index 64b1ef39..ff9cddd6 100644 --- a/_alp/Agents/EnergyModel/EmbeddedObjects.xml +++ b/_alp/Agents/EnergyModel/EmbeddedObjects.xml @@ -90,6 +90,12 @@ + + + + + + true diff --git a/_alp/Agents/GridNode/AOC.GridNode.xml b/_alp/Agents/GridNode/AOC.GridNode.xml index 3ab0b8eb..fb7c606e 100644 --- a/_alp/Agents/GridNode/AOC.GridNode.xml +++ b/_alp/Agents/GridNode/AOC.GridNode.xml @@ -115,7 +115,7 @@ if (p_energyType.equals(OL_EnergyCarriers.HEAT)) { 1705919330576 50 - 850 + 880