-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fabian.wuellhorst
committed
May 11, 2022
1 parent
3e96e3e
commit 73e125a
Showing
6 changed files
with
81 additions
and
85 deletions.
There are no files selected for viewing
Empty file.
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
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,48 @@ | ||
within IBPSA.Fluid.BaseClasses; | ||
package VapourCompressionInertias | ||
"Package with approaches to model inertia of vapour compression cycles" | ||
model NoInertia "No inertia" | ||
extends BaseClasses.PartialInertia; | ||
equation | ||
connect(u, y) annotation (Line(points={{-120,0},{110,0}}, color={0,0,127})); | ||
annotation (Icon(graphics={Line(points={{-100,0},{102,0}}, color={0,0,127})})); | ||
end NoInertia; | ||
|
||
model VariableOrderInertia | ||
"Inertia using a critical damper with variable order" | ||
extends BaseClasses.PartialInertia; | ||
|
||
parameter Modelica.Units.SI.Frequency refIneFre_constant | ||
"Cut off frequency for inertia of refrigerant cycle" annotation (Dialog( | ||
enable=use_refIne, group="Refrigerant inertia"), Evaluate=true); | ||
parameter Integer nthOrder=3 "Order of refrigerant cycle interia" annotation (Dialog(enable= | ||
use_refIne, group="Refrigerant inertia")); | ||
parameter Real x_start[nthOrder]=zeros(nthOrder) | ||
"Initial or guess values of states" | ||
annotation (Dialog(tab="Initialization", group="Refrigerant inertia", enable=use_refIne)); | ||
parameter Real yRefIne_start=0 "Initial or guess value of output (= state)" | ||
annotation (Dialog(tab="Initialization", group="Refrigerant inertia",enable=initType == | ||
Init.InitialOutput and use_refIne)); | ||
Modelica.Blocks.Continuous.CriticalDamping criticalDamping( | ||
final n=nthOrder, | ||
final f=refIneFre_constant, | ||
final x_start=x_start) | ||
annotation (Placement(transformation(extent={{-16,-16},{16,16}}))); | ||
equation | ||
connect(u, criticalDamping.u) | ||
annotation (Line(points={{-120,0},{-19.2,0}}, color={0,0,127})); | ||
connect(criticalDamping.y, y) | ||
annotation (Line(points={{17.6,0},{110,0}}, color={0,0,127})); | ||
end VariableOrderInertia; | ||
|
||
package BaseClasses | ||
extends Modelica.Icons.BasesPackage; | ||
partial model PartialInertia "Partial inertia model" | ||
extends Modelica.Blocks.Interfaces.SISO; | ||
|
||
|
||
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram( | ||
coordinateSystem(preserveAspectRatio=false))); | ||
end PartialInertia; | ||
end BaseClasses; | ||
end VapourCompressionInertias; |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ FlowModels | |
Validation | ||
PartialReversibleVapourCompressionMachine | ||
PartialInnerCycle | ||
VapourCompressionInertias |
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
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