-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "clean package order and fix paths #1443"
This reverts commit 479ad5a.
- Loading branch information
1 parent
479ad5a
commit 7f119a8
Showing
3 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
AixLib/Systems/ModularEnergySystems/ModularBoiler/Controls/heatingCurve.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
within AixLib.Systems.ModularEnergySystems.ModularBoiler.Controls; | ||
model heatingCurve | ||
"Flow temperature control (power control) with heating curve" | ||
|
||
//Heating Curve | ||
replaceable function HeatingCurveFunction = | ||
AixLib.Controls.SetPoints.Functions.HeatingCurveFunction constrainedby | ||
AixLib.Controls.SetPoints.Functions.PartialBaseFct annotation (Dialog(group="Heating Curve")); | ||
parameter Boolean use_tableData=true "Choose between tables or function to calculate TSet" annotation (Dialog(group="Heating Curve")); | ||
parameter Real declination=1 annotation (Dialog(group="Heating Curve")); | ||
parameter Real day_hour=6 annotation (Dialog(group="Heating Curve")); | ||
parameter Real night_hour=22 annotation (Dialog(group="Heating Curve")); | ||
parameter AixLib.Utilities.Time.Types.ZeroTime zerTim=AixLib.Utilities.Time.Types.ZeroTime.NY2017 | ||
"Enumeration for choosing how reference time (time = 0) should be defined. Used for heating curve" annotation (Dialog(group="Heating Curve")); | ||
parameter Modelica.Units.SI.ThermodynamicTemperature TOffset=0 | ||
"Offset to heating curve temperature" annotation (Dialog(group="Heating Curve")); | ||
|
||
AixLib.Controls.SetPoints.HeatingCurve heatingCurve( | ||
final TOffset=TOffset, | ||
final use_dynTRoom=false, | ||
final zerTim=zerTim, | ||
final day_hour=day_hour, | ||
final night_hour=night_hour, | ||
final heatingCurveRecord= | ||
AixLib.DataBase.Boiler.DayNightMode.HeatingCurves_Vitotronic_Day23_Night10 | ||
(), | ||
final declination=declination, | ||
redeclare function HeatingCurveFunction = HeatingCurveFunction, | ||
final use_tableData=use_tableData, | ||
final TRoom_nominal=293.15) | ||
annotation (Placement(transformation(extent={{-10,-10},{10,10}}))); | ||
|
||
Modelica.Blocks.Interfaces.RealInput TAmb(unit="K") | ||
"Measured ambient temperature for heating curve" | ||
annotation (Placement(transformation(extent={{-120,-20},{-80,20}}))); | ||
|
||
Modelica.Blocks.Interfaces.RealOutput TFlowSet(unit="K") | ||
"Set flow temperature calculated by heating curve" | ||
annotation (Placement(transformation(extent={{100,-10},{120,10}}))); | ||
equation | ||
|
||
connect(TAmb, heatingCurve.T_oda) | ||
annotation (Line(points={{-100,0},{-12,0}}, color={0,0,127})); | ||
connect(heatingCurve.TSet, TFlowSet) | ||
annotation (Line(points={{11,0},{110,0}}, color={0,0,127})); | ||
annotation (Documentation(info="<html> | ||
<p>Ambient temperature guided flow temperature control for heat generators. The temperature control can be switched on and off via the isOn input from the outside. A heating curve model is used to determine the required flow temperature depending on the ambient temperature. The associated data are recorded in a table and the values are determined by means of interpolation. Furthermore, the model has a day and night mode, in which the set temperatures differ at the same ambient temperature. The PI-Controller was set for this application. </p> | ||
</html>"), Icon(graphics={ | ||
Rectangle( | ||
extent={{-100,100},{100,-100}}, | ||
lineColor={28,108,200}, | ||
fillColor={255,255,170}, | ||
fillPattern=FillPattern.Solid), | ||
Text( | ||
extent={{-90,36},{110,-8}}, | ||
lineColor={0,0,127}, | ||
pattern=LinePattern.Dash, | ||
fillColor={255,255,170}, | ||
fillPattern=FillPattern.Solid, | ||
textString="%name")})); | ||
end heatingCurve; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ BoilerControl | |
DeviceStatusDelay | ||
FeedbackControl | ||
FirRatMinCheck | ||
heatingCurve | ||
InternalFirRatControl | ||
SafetyControl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters