diff --git a/Zero_engine.alpx b/Zero_engine.alpx index e4bb2252..90810d25 100644 --- a/Zero_engine.alpx +++ b/Zero_engine.alpx @@ -275,7 +275,7 @@ + + 1779959996975 + + + + + @@ -1517,12 +1533,6 @@ LARGE_CONNECTION (grootverbruik, > 3x80) 1752677832758 - - 1659117174457 - - true - 1752677832758 - 1659117174458 @@ -1609,7 +1619,7 @@ LARGE_CONNECTION (grootverbruik, > 3x80) 1673445448881 - + 1752677832758 diff --git a/_alp/Agents/EnergyModel/Code/Functions.java b/_alp/Agents/EnergyModel/Code/Functions.java index 14126e5f..2776b497 100644 --- a/_alp/Agents/EnergyModel/Code/Functions.java +++ b/_alp/Agents/EnergyModel/Code/Functions.java @@ -835,7 +835,7 @@ EnergyCoop f_addProductionEnergyCarrier(OL_EnergyCarriers EC) ((J_EAStorageHeat)e).updateAmbientTemperature( pp_ambientTemperature_degC.getCurrentValue() ); break; case BUILDING: - new RuntimeException("AmbientTempType 'BUILDING' is not supported yet for J_EAStorageHeat!"); + throw new RuntimeException("AmbientTempType 'BUILDING' is not supported yet for J_EAStorageHeat!"); /* GridConnection parentGC = (GridConnection)e.getParentAgent(); if(parentGC.p_BuildingThermalAsset == null){ @@ -845,17 +845,15 @@ EnergyCoop f_addProductionEnergyCarrier(OL_EnergyCarriers EC) ((J_EAStorageHeat)e).updateAmbientTemperature(parentGC.p_BuildingThermalAsset.getCurrentTemperature()); } */ - break; case HEAT_GRID: // Do Nothing, keep fixed temp for now - //new RuntimeException("AmbientTempType 'HEAT_GRID' is not supported yet for J_EAStorageHeat!"); + //throw new RuntimeException("AmbientTempType 'HEAT_GRID' is not supported yet for J_EAStorageHeat!"); break; case HEAT_STORAGE: - new RuntimeException("AmbientTempType 'HEAT_STORAGE' is not supported yet for J_EAStorageHeat!"); - break; + throw new RuntimeException("AmbientTempType 'HEAT_STORAGE' is not supported yet for J_EAStorageHeat!"); } } - if (e instanceof J_EAConversionHeatPump) { + if (e instanceof J_EAConversionHeatPump hp) { switch(((J_EAConversionHeatPump) e).getAmbientTempType()){ case FIXED: //Do nothing, use preset ambient temp @@ -864,7 +862,7 @@ EnergyCoop f_addProductionEnergyCarrier(OL_EnergyCarriers EC) ((J_EAConversionHeatPump)e).updateAmbientTemperature( pp_ambientTemperature_degC.getCurrentValue() ); break; case BUILDING: - new RuntimeException("AmbientTempType 'BUILDING' is not supported yet for J_EAConversionHeatPump!"); + throw new RuntimeException("AmbientTempType 'BUILDING' is not supported yet for J_EAConversionHeatPump!"); /* GridConnection parentGC = (GridConnection)e.getParentAgent(); if(parentGC.p_BuildingThermalAsset == null){ @@ -874,13 +872,12 @@ EnergyCoop f_addProductionEnergyCarrier(OL_EnergyCarriers EC) ((J_EAConversionHeatPump)e).updateAmbientTemperature(parentGC.p_BuildingThermalAsset.getCurrentTemperature()); } */ - break; case HEAT_GRID: - new RuntimeException("AmbientTempType 'HEAT_GRID' is not supported yet for J_EAConversionHeatPump!"); + // Do Nothing, keep fixed temp for now + //throw new RuntimeException("AmbientTempType 'HEAT_GRID' is not supported yet for J_EAConversionHeatPump!"); break; case HEAT_STORAGE: - new RuntimeException("AmbientTempType 'HEAT_STORAGE' is not supported yet for J_EAConversionHeatPump!"); - break; + throw new RuntimeException("AmbientTempType 'HEAT_STORAGE' is not supported yet for J_EAConversionHeatPump!"); } } if( e instanceof J_EABuilding ) { diff --git a/_alp/Agents/GCHouse/Code/Functions.java b/_alp/Agents/GCHouse/Code/Functions.java index 374a9803..75072626 100644 --- a/_alp/Agents/GCHouse/Code/Functions.java +++ b/_alp/Agents/GCHouse/Code/Functions.java @@ -11,7 +11,7 @@ if (p_cookingTracker != null) { // check for presence of cooking asset p_cookingTracker.manageActivities(timeVariables); // also calls f_updateAllFlows in HOB asset - double residualHeatGasPit_kW = -p_cookingTracker.HOB.getLastFlows().get(OL_EnergyCarriers.HEAT); + double residualHeatGasPit_kW = -p_cookingTracker.getHob().getLastFlows().get(OL_EnergyCarriers.HEAT); throw new RuntimeException("Cooking trackers and HOBs are not properly integrated with current heating management!"); /*if (p_BuildingThermalAsset != null) { p_BuildingThermalAsset.v_powerFraction_fr += residualHeatGasPit_kW / p_BuildingThermalAsset.getCapacityHeat_kW(); // Does this work out correctly with new heatingManagement structure?? diff --git a/_alp/Agents/GCPublicCharger/Variables.xml b/_alp/Agents/GCPublicCharger/Variables.xml index 6be4b972..3f867328 100644 --- a/_alp/Agents/GCPublicCharger/Variables.xml +++ b/_alp/Agents/GCPublicCharger/Variables.xml @@ -29,6 +29,7 @@ 1750335661857 + true 1630 150