Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Zero_Interface-Loader.alpx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<AnyLogicWorkspace splitVersion="1"
WorkspaceVersion="1.9"
AnyLogicVersion="8.9.7.202512010504"
AnyLogicVersion="8.9.7.202512010500"
AlpVersion="8.9.7">
<Model>
<Id>1658477103134</Id>
Expand Down
30 changes: 29 additions & 1 deletion _alp/Agents/AVGC_data/Variables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2644,7 +2644,7 @@ https://warmtepomp-panel.nl/afgiftesysteem.html? -> 35 graden afgifte bij -10 gr
<UnitType>NONE</UnitType>
<SdArray>false</SdArray>
<DefaultValue Class="CodeValue">
<Code><![CDATA[67.0]]></Code>
<Code><![CDATA[54 //deviates a couple of percentage based on neighborhood]]></Code>
</DefaultValue>
<ParameterEditor>
<Id>1768313716399</Id>
Expand Down Expand Up @@ -2988,4 +2988,32 @@ OL_GridConnectionInsulationLabel.G, 2.0
</ParameterEditor>
</Properties>
</Variable>
<Variable Class="Parameter">
<Id>1770224099145</Id>
<Name><![CDATA[p_heatingDaysSetpoin]]></Name>
<X>50</X>
<Y>420</Y>
<Label>
<X>10</X>
<Y>0</Y>
</Label>
<PublicFlag>false</PublicFlag>
<PresentationFlag>true</PresentationFlag>
<ShowLabel>true</ShowLabel>
<Properties SaveInSnapshot="true" ModificatorType="STATIC">
<Type><![CDATA[double]]></Type>
<UnitType>NONE</UnitType>
<SdArray>false</SdArray>
<DefaultValue Class="CodeValue">
<Code><![CDATA[18]]></Code>
</DefaultValue>
<ParameterEditor>
<Id>1770224099143</Id>
<EditorContolType>TEXT_BOX</EditorContolType>
<MinSliderValue>0</MinSliderValue>
<MaxSliderValue>100</MaxSliderValue>
<DelimeterType>NO_DELIMETER</DelimeterType>
</ParameterEditor>
</Properties>
</Variable>
</Variables>
19 changes: 13 additions & 6 deletions _alp/Agents/Zero_Loader/Code/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -3407,7 +3407,7 @@ List<J_ChargingSessionData> f_getChargerProfile()
}

//Determine the solar absortion factor_m2 based on floor surface.
solarAbsorptionFactor_m2 = floorArea_m2 * avgc_data.p_solarAbsorptionFloorSurfaceScalingFactor_fr; //solar irradiance [W/m2]
solarAbsorptionFactor_m2 = floorArea_m2 * 4 * avgc_data.p_solarAbsorptionFloorSurfaceScalingFactor_fr; //solar irradiance [W/m2]

//Determine the heat capacity of the building based on a cooldown period
/*
Expand All @@ -3423,8 +3423,7 @@ List<J_ChargingSessionData> f_getChargerProfile()
*/

//Determine the heat capacity of the building based on the floor surface and some factors
heatCapacity_JpK = (avgc_data.p_heatCapacitySizingSlope_JpKm2 * floorArea_m2 + avgc_data.p_heatCapacitySizingConstant_JpK) * avgc_data.p_heatCapacitySizingFactor_fr;

heatCapacity_JpK = lossFactor_WpK * 3600 * 36; // (avgc_data.p_heatCapacitySizingSlope_JpKm2 * floorArea_m2 + avgc_data.p_heatCapacitySizingConstant_JpK) * avgc_data.p_heatCapacitySizingFactor_fr;
//Create the thermal building asset
parentGC.p_BuildingThermalAsset = new J_EABuilding( parentGC, maxPowerHeat_kW, lossFactor_WpK, energyModel.p_timeParameters, initialTemp_degC, heatCapacity_JpK, solarAbsorptionFactor_m2 );

Expand Down Expand Up @@ -3601,7 +3600,7 @@ else if (houseBuildingData.insulation_label() != null) {
}
}


//traceln("Total space heat demand houses input " + roundToDecimal(totalSpaceHeatDemand_kwhpa/1000000,3) + "GWh");
/*ALCODEEND*/}

double f_addEnergyAssetsToHouses(GCHouse house,Double electricityDemand_kwhpa,Double gasDemand_m3pa)
Expand Down Expand Up @@ -3636,6 +3635,7 @@ J_HeatingPreferences f_getHouseHeatingPreferences()
double dayTimeSetPoint_degC = 20;
double startOfDayTime_h = 8;
double startOfNightTime_h = 23;
double windowOpenSetpoint_degC = 25;

if( randomTrue(0.5) ){ //50% kans op ochtend ritme
nightTimeSetPoint_degC = uniform_discr(12,18);
Expand All @@ -3658,12 +3658,17 @@ else if (randomTrue(0.5) ){ // 25% kans op hele dag aan
startOfNightTime_h = uniform_discr(21,23);
}

nightTimeSetPoint_degC = 18;
dayTimeSetPoint_degC = 20;
startOfDayTime_h = 8;
startOfNightTime_h = 22;
windowOpenSetpoint_degC = 25;

double maxComfortTemperature_degC = dayTimeSetPoint_degC + 2;
double minComfortTemperature_degC = dayTimeSetPoint_degC - 2;

//Create heating preferences class
J_HeatingPreferences heatingPreferences = new J_HeatingPreferences(startOfDayTime_h, startOfNightTime_h, dayTimeSetPoint_degC, nightTimeSetPoint_degC, maxComfortTemperature_degC, minComfortTemperature_degC);

J_HeatingPreferences heatingPreferences = new J_HeatingPreferences(startOfDayTime_h, startOfNightTime_h, dayTimeSetPoint_degC, nightTimeSetPoint_degC, maxComfortTemperature_degC, minComfortTemperature_degC, windowOpenSetpoint_degC);
return heatingPreferences;
/*ALCODEEND*/}

Expand Down Expand Up @@ -5146,6 +5151,8 @@ else if(numberOfResidents > 5){
f_addHotWaterDemand(house, hotWaterDemand_kWhpa);
f_addCookingAsset(house, OL_EnergyAssetType.GAS_PIT, cookingDemand_kWhpa);

//For calibrating AVG data PBL loss factor
totalSpaceHeatDemand_kwhpa += spaceHeatingDemand_kwhpa;
/*ALCODEEND*/}

double f_estimateHouseDHWDemand_kWh(double floorSurface_m2)
Expand Down
3 changes: 3 additions & 0 deletions _alp/Agents/Zero_Loader/EmbeddedObjects.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@
<Parameter>
<Name><![CDATA[map_insulationLabel_cooldownPeriod_hr]]></Name>
</Parameter>
<Parameter>
<Name><![CDATA[p_heatingDaysSetpoin]]></Name>
</Parameter>
</Parameters>
<ReplicationFlag>false</ReplicationFlag>
<Replication Class="CodeValue">
Expand Down
19 changes: 19 additions & 0 deletions _alp/Agents/Zero_Loader/Variables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,25 @@
<Type><![CDATA[double]]></Type>
</Properties>
</Variable>
<Variable Class="PlainVariable">
<Id>1770280954566</Id>
<Name><![CDATA[totalSpaceHeatDemand_kwhpa]]></Name>
<X>-380</X>
<Y>1020</Y>
<Label>
<X>10</X>
<Y>0</Y>
</Label>
<PublicFlag>false</PublicFlag>
<PresentationFlag>true</PresentationFlag>
<ShowLabel>true</ShowLabel>
<Properties SaveInSnapshot="true"
Constant="false"
AccessType="public"
StaticVariable="false">
<Type><![CDATA[double]]></Type>
</Properties>
</Variable>
<Variable Class="Parameter">
<Id>1726584206064</Id>
<Name><![CDATA[zero_Interface]]></Name>
Expand Down