diff --git a/Zero_engine.alpx b/Zero_engine.alpx index f2227ea0..7e6a20b9 100644 --- a/Zero_engine.alpx +++ b/Zero_engine.alpx @@ -698,13 +698,17 @@ + 1668693527446 @@ -1117,6 +1121,7 @@ 1752681631114 + 1752677832758 1752681639768 @@ -1164,6 +1169,11 @@ 1762850958928 + + 1764938574089 + + 1752680962144 + EULER @@ -1537,17 +1547,6 @@ 1752677832758 - - 1749649002419 - - 1752680962144 - - - 1749651263461 - - true - 1752677832758 - 1752677257516 @@ -1714,11 +1713,6 @@ 1762850659543 - - 1755171209007 - - 1752677832758 - 1755518393955 @@ -1802,6 +1796,46 @@ 1763570262548 + 1764938574089 + + + 1764337491572 + + 1762850586274 + + + 1764936717326 + + 1752680962144 + + + 1764936749914 + + 1752680962144 + + + 1765192207409 + + 1752677832758 + + + 1765383541339 + + 1762850586274 + + + 1765537283263 + + 1762850586274 + + + 1765878809347 + + 1762850586274 + + + 1765901157331 + 1752680962144 diff --git a/_alp/Agents/EnergyModel/Code/Functions.java b/_alp/Agents/EnergyModel/Code/Functions.java index 2008244e..24b325f3 100644 --- a/_alp/Agents/EnergyModel/Code/Functions.java +++ b/_alp/Agents/EnergyModel/Code/Functions.java @@ -129,20 +129,23 @@ v_totalBatteryEnergyUsed_MWh = 0; for(J_EA ea : c_energyAssets) { // Single loop of all assets without using c_EVs and c_storageAssets - if( ea instanceof J_EAStorageElectric ) { - J_EAStorageElectric e = (J_EAStorageElectric)ea; - v_totalBatteryDischargeAmount_MWh += e.getTotalDischargeAmount_kWh() / 1000; - v_totalBatteryChargeAmount_MWh += e.getTotalChargeAmount_kWh() / 1000; - v_totalBatteryEnergyUsed_MWh += e.getEnergyUsed_kWh() / 1000; + if( ea instanceof J_EAStorageElectric storageElectric) { + v_totalBatteryDischargeAmount_MWh += storageElectric.getTotalDischargeAmount_kWh() / 1000; + v_totalBatteryChargeAmount_MWh += storageElectric.getTotalChargeAmount_kWh() / 1000; + v_totalBatteryEnergyUsed_MWh += storageElectric.getEnergyUsed_kWh() / 1000; } - if( ea instanceof J_EAEV ) { - J_EAEV e = (J_EAEV)ea; - v_totalBatteryDischargeAmount_MWh += e.getTotalDischargeAmount_kWh() / 1000; - v_totalBatteryChargeAmount_MWh += e.getTotalChargeAmount_kWh() / 1000; - v_totalBatteryEnergyUsed_MWh += e.getEnergyUsed_kWh() / 1000; + if( ea instanceof J_EAEV ev) { + v_totalBatteryDischargeAmount_MWh += ev.getTotalDischargeAmount_kWh() / 1000; + v_totalBatteryChargeAmount_MWh += ev.getTotalChargeAmount_kWh() / 1000; + v_totalBatteryEnergyUsed_MWh += ev.getEnergyUsed_kWh() / 1000; } + if( ea instanceof J_EAChargingSession cs) { + v_totalBatteryDischargeAmount_MWh += cs.getTotalDischargeAmount_kWh() / 1000; + v_totalBatteryChargeAmount_MWh += cs.getTotalChargeAmount_kWh() / 1000; + v_totalBatteryEnergyUsed_MWh += cs.getEnergyUsed_kWh() / 1000; + } } //Calculate delta stored energy in battery for energy balance check @@ -267,8 +270,8 @@ GC.c_tripTrackers.forEach(tt->{ tt.storeAndResetState(); - tt.setStartIndex(p_runStartTime_h); - tt.prepareNextActivity(p_runStartTime_h*60); + tt.setStartIndex(p_runStartTime_h, GC.f_getChargePoint()); + //tt.prepareNextActivity(p_runStartTime_h*60, GC.f_getChargePoint()); }); if (GC instanceof GCHouse) { if (((GCHouse)GC).p_cookingTracker != null) { @@ -407,7 +410,7 @@ GC.f_resetStatesAfterRapidRun(); GC.c_tripTrackers.forEach(tt->{ tt.restoreState(); - tt.prepareNextActivity((t_h-p_runStartTime_h)*60); + //tt.prepareNextActivity((t_h-p_runStartTime_h)*60, GC.f_getChargePoint()); }); //GC.c_tripTrackers.forEach(tt->tt.prepareNextActivity((t_h-p_runStartTime_h)*60)); if (GC instanceof GCHouse) { @@ -484,6 +487,9 @@ //Update t_h t_h = p_runStartTime_h + v_timeStepsElapsed * p_timeStep_h; +//Update time variables +J_TimeVariables.updateTimeVariables(v_timeStepsElapsed); + // Update tijdreeksen in leesbare variabelen f_updateTimeseries(t_h); diff --git a/_alp/Agents/EnergyModel/Variables.xml b/_alp/Agents/EnergyModel/Variables.xml index db6773c0..ca82027e 100644 --- a/_alp/Agents/EnergyModel/Variables.xml +++ b/_alp/Agents/EnergyModel/Variables.xml @@ -1998,6 +1998,62 @@ + + 1765189970308 + + -610 + 330 + + false + true + true + + + NONE + false + + + + + 1765189970306 + TEXT_BOX + 0 + 100 + NO_DELIMETER + + + + + 1765189991043 + + -610 + 310 + + false + true + true + + + NONE + false + + + + + 1765189991041 + TEXT_BOX + 0 + 100 + NO_DELIMETER + + + 1663238323139 @@ -2322,7 +2378,7 @@ true ArrayList - List<J_ChargingSession> + List<J_ChargingSessionData> String diff --git a/_alp/Agents/GCPublicCharger/Code/Functions.java b/_alp/Agents/GCPublicCharger/Code/Functions.java index 6a184da9..dc279fab 100644 --- a/_alp/Agents/GCPublicCharger/Code/Functions.java +++ b/_alp/Agents/GCPublicCharger/Code/Functions.java @@ -20,9 +20,6 @@ else if( e.profileType == OL_ProfileAssetType.ELECTRICITYBASELOAD){ {/*ALCODESTART::1726749088568*/ //Manage charging f_manageEVCharging(); - -f_manageChargePoints(); - /*ALCODEEND*/} double f_operateChargerNew() diff --git a/_alp/Agents/GCPublicCharger/Code/Functions.xml b/_alp/Agents/GCPublicCharger/Code/Functions.xml index cf6c7e88..4bd60725 100644 --- a/_alp/Agents/GCPublicCharger/Code/Functions.xml +++ b/_alp/Agents/GCPublicCharger/Code/Functions.xml @@ -6,8 +6,8 @@ 1717956478582 true - 910 - 200 + 1250 + 270