-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
within BESMod.Systems.Hydraulical.Control.Components.BuildingSupplyTemperatureSetpoints.BaseClasses.Functions; | ||
function ConstantGradientHeatCurve "Linear heating curve" | ||
extends BESMod.Systems.Hydraulical.Control.Components.BuildingSupplyTemperatureSetpoints.BaseClasses.Functions.PartialHeatingCurve; | ||
protected | ||
Real graTSupAtTOda_nominal = (1/nHeaTra * ((TSup_nominal + TRet_nominal)/2 - TRoom) + ( | ||
TSup_nominal - TRet_nominal)/2) / (THeaThr - TOda_nominal); | ||
algorithm | ||
TSup := TSup_nominal - graTSupAtTOda_nominal * (TOda - TOda_nominal); | ||
end ConstantGradientHeatCurve; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
within BESMod.Systems.Hydraulical.Control.Components.BuildingSupplyTemperatureSetpoints.BaseClasses.Functions; | ||
function IdealHeatingCurve "Ideal heating curve with no linearization" | ||
extends BESMod.Systems.Hydraulical.Control.Components.BuildingSupplyTemperatureSetpoints.BaseClasses.Functions.PartialHeatingCurve; | ||
protected | ||
Real QRel = (THeaThr - TOda)/(THeaThr - TOda_nominal); | ||
|
||
algorithm | ||
TSup := TRoom + ((TSup_nominal + TRet_nominal)/2 - TRoom) * QRel^(1/nHeaTra) + ( | ||
TSup_nominal - TRet_nominal)/2*QRel; | ||
end IdealHeatingCurve; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
within BESMod.Systems.Hydraulical.Control.Components.BuildingSupplyTemperatureSetpoints.BaseClasses.Functions; | ||
partial function PartialHeatingCurve "Partial function to define interfacesHeating curve based on Lämmle et al." | ||
input Modelica.Units.SI.Temperature TOda "Outdoor air temperature"; | ||
input Modelica.Units.SI.Temperature THeaThr "Heating threshold temperature"; | ||
input Modelica.Units.SI.Temperature TRoom "Room temperature"; | ||
input Modelica.Units.SI.Temperature TSup_nominal "Nominal supply temperature"; | ||
input Modelica.Units.SI.Temperature TRet_nominal "Nominal return temperature"; | ||
input Modelica.Units.SI.Temperature TOda_nominal "Nominal outdoor air temperature"; | ||
input Real nHeaTra "Heat transfer exponent"; | ||
output Modelica.Units.SI.Temperature TSup "Supply temperature"; | ||
|
||
annotation (Documentation(info="<html> | ||
<p>The functions in this package are based on the equations provided in https://www.sciencedirect.com/science/article/pii/S0360544221032011?via%3Dihub</p> | ||
</html>")); | ||
end PartialHeatingCurve; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
within BESMod.Systems.Hydraulical.Control.Components.BuildingSupplyTemperatureSetpoints.BaseClasses; | ||
package Functions "Package with functions for heating curves" | ||
end Functions; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ConstantGradientHeatCurve | ||
IdealHeatingCurve | ||
PartialHeatingCurve |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
PartialSetpoint | ||
Functions |