diff --git a/README.md b/README.md
index d82c500c..fc2fffdd 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ The DLR ThermoFluid Stream Library uses a [innovative computational scheme](http
Watch the introductory video from the 2021 Modelica Conference and read the corresponding paper in MDPI electronics (short version):
-
## License, Terms of Use, Literature
diff --git a/ThermofluidStream/DropOfCommons.mo b/ThermofluidStream/DropOfCommons.mo
index 1fb66d70..41e2a712 100644
--- a/ThermofluidStream/DropOfCommons.mo
+++ b/ThermofluidStream/DropOfCommons.mo
@@ -20,9 +20,9 @@ model DropOfCommons "Model for global parameters"
parameter AssertionLevel assertionLevel = AssertionLevel.error "Global assertion level";
- parameter Boolean displayInstanceNames = true "= true, if ThermofluidStream instance names are displayed" annotation(Dialog(group="Layout"),Evaluate=true, HideResult=true, choices(checkBox=true));
- parameter Boolean displayParameters = true "= true, if displaying parameters is enabled" annotation(Dialog(group="Layout"),Evaluate=true, HideResult=true, choices(checkBox=true));
- final parameter Integer instanceNameColor[3] = {28,108,200}; // Default Color: {28,108,200}
+ parameter Boolean displayInstanceNames = false "= true, if ThermofluidStream instance names are displayed" annotation(Dialog(group="Layout"),Evaluate=true, HideResult=true, choices(checkBox=true));
+ parameter Boolean displayParameters = false "= true, if displaying parameters is enabled" annotation(Dialog(group="Layout"),Evaluate=true, HideResult=true, choices(checkBox=true));
+ final parameter Integer instanceNameColor[3] = {28,108,200}; // {28,108,200}
annotation (defaultComponentName="dropOfCommons",
defaultComponentPrefixes="inner",
@@ -57,17 +57,5 @@ to specify system properties.",Icon(coordinateSystem(preserveAspectRatio=false),
coordinateSystem(preserveAspectRatio=false)),
Documentation(revisions="
(c) 2020-2021, DLR, Institute of System Dynamics and Control
The DropOfCommons defines global parameters and settings for simulation models. This model serves several purposes:
-Since the global parameters defined in DropOfCommons are used by multiple ThermofluidStream components, exactly one instance of this model needs to be present at the top level of a simulation model. The basic declaration is:
-inner ThermofluidStream.DropOfCommons dropOfCommons
-Note, it must be an inner declaration with instance name dropOfCommons so that all components of a ThermofluidStream model can reference it. When dragging the "DropOfCommons" object from the package browser into the diagram layer, this declaration is automatically generated (defined via annotations in the model).
-All flow, density, pressure, and visualization parameters in a simulation model are resolved relative to the settings in this dropOfCommons instance. Adjusting these parameters allows controlling global simulation behavior, visualization preferences, and regularization methods consistently across all components.
")); end DropOfCommons; diff --git a/ThermofluidStream/Examples/HeatPump.mo b/ThermofluidStream/Examples/HeatPump.mo index b601b3df..b7da5641 100644 --- a/ThermofluidStream/Examples/HeatPump.mo +++ b/ThermofluidStream/Examples/HeatPump.mo @@ -81,7 +81,7 @@ model HeatPump Boundaries.Source source(redeclare package Medium = Air, T0_par=293.15, p0_par=100000) - annotation (Placement(transformation(extent={{-160,86},{-140,106}}))); + annotation (Placement(transformation(extent={{-160,78},{-140,98}}))); Processes.FlowResistance flowResistance1( redeclare package Medium = Air, r=1, @@ -93,7 +93,7 @@ model HeatPump annotation (Placement(transformation( extent={{-10,-10},{10,10}}, rotation=0, - origin={-110,96}))); + origin={-110,88}))); Processes.FlowResistance flowResistance2( redeclare package Medium = Air, r=1, @@ -218,8 +218,7 @@ model HeatPump Sensors.SingleSensorSelect singleSensorSelect3( redeclare package Medium = Air, digits=1, - quantity=ThermofluidStream.Sensors.Internal.Types.Quantities.T_C) annotation (Placement(transformation(extent={{-120, - 108},{-100,128}}))); + quantity=ThermofluidStream.Sensors.Internal.Types.Quantities.T_C) annotation (Placement(transformation(extent={{-120,100},{-100,120}}))); Sensors.SingleSensorSelect singleSensorSelect4( redeclare package Medium = Air, digits=1, @@ -304,11 +303,11 @@ equation color={28,108,200}, thickness=0.5)); connect(source.outlet, flowResistance1.inlet) annotation (Line( - points={{-140,96},{-120,96}}, + points={{-140,88},{-120,88}}, color={28,108,200}, thickness=0.5)); connect(flowResistance1.outlet, condenser.inletA) annotation (Line( - points={{-100,96},{-94,96},{-94,88},{-90,88}}, + points={{-100,88},{-90,88}}, color={28,108,200}, thickness=0.5)); connect(condenser.outletA, fan.inlet) annotation (Line( @@ -389,7 +388,7 @@ equation thickness=0.5)); connect(singleSensorSelect3.inlet, flowResistance1.inlet) annotation (Line( - points={{-120,118},{-126,118},{-126,96},{-120,96}}, + points={{-120,110},{-126,110},{-126,88},{-120,88}}, color={28,108,200}, thickness=0.5)); connect(singleSensorSelect4.inlet, flowResistance2.inlet) diff --git a/ThermofluidStream/Examples/ReverseHeatPump.mo b/ThermofluidStream/Examples/ReverseHeatPump.mo index 25ce4a3a..c9c6e89d 100644 --- a/ThermofluidStream/Examples/ReverseHeatPump.mo +++ b/ThermofluidStream/Examples/ReverseHeatPump.mo @@ -558,7 +558,7 @@ equation thickness=0.5)); connect(multiSensor_Tpm6.rear, TEVcooling.fore) annotation (Line( - points={{70,130},{60,130},{60,180},{50,180}}, + points={{70,130},{70,180},{50,180}}, color={28,108,200}, thickness=0.5)); connect(junctionT1_1.inletB, multiSensor_Tpm.outlet) diff --git a/ThermofluidStream/Examples/SimpleGasTurbine.mo b/ThermofluidStream/Examples/SimpleGasTurbine.mo index c067345b..c8d27fb2 100644 --- a/ThermofluidStream/Examples/SimpleGasTurbine.mo +++ b/ThermofluidStream/Examples/SimpleGasTurbine.mo @@ -72,8 +72,7 @@ model SimpleGasTurbine "Simple version of a Gas Turbine" Sensors.MultiSensor_Tp multiSensor_Tp2( redeclare package Medium = Medium, digits=3, - pressureUnit="bar") annotation (Placement(transformation(extent={{-104,0},{ - -84,20}}))); + pressureUnit="bar") annotation (Placement(transformation(extent={{-104,-4},{-84,16}}))); Modelica.Blocks.Continuous.LimPID PI( controllerType=Modelica.Blocks.Types.SimpleController.PI, k=2000, @@ -110,7 +109,7 @@ equation annotation (Line(points={{-110,-60},{-80,-60},{-80,-20}}, color={0,0,0})); connect(multiSensor_Tp2.inlet, source.outlet) annotation (Line( - points={{-104,10},{-110,10},{-110,-10},{-120,-10}}, + points={{-104,6},{-110,6},{-110,-10},{-120,-10}}, color={28,108,200}, thickness=0.5)); connect(speedSensor.flange, turbine.flange) diff --git a/ThermofluidStream/Examples/Utilities/Tests/Piston.mo b/ThermofluidStream/Examples/Utilities/Tests/Piston.mo index eeee89dc..85b00c00 100644 --- a/ThermofluidStream/Examples/Utilities/Tests/Piston.mo +++ b/ThermofluidStream/Examples/Utilities/Tests/Piston.mo @@ -56,8 +56,7 @@ model Piston "Test for Piston model" extent={{-10,-10},{10,10}}, rotation=0, origin={10,10}))); - FlowControl.Switch switch(redeclare package Medium = Medium, - initializeOneMassflowSplit=false) + FlowControl.Switch switch(redeclare package Medium = Medium, initializeOneMassflowSplit=true) annotation (Placement(transformation(extent={{-10,10},{10,-10}}, rotation=0, origin={-66,10}))); @@ -84,7 +83,6 @@ model Piston "Test for Piston model" Processes.FlowResistance flowResistance2( redeclare package Medium = Medium, m_flowStateSelect=StateSelect.prefer, - initM_flow=ThermofluidStream.Utilities.Types.InitializationMethods.state, computeL=false, L_value=1e-3, r=0.1, @@ -127,19 +125,17 @@ initial equation equation - connect(linearSpeedDependentForce.flange, piston2_1.flange) annotation (Line(points={{40,-50}, - {40,-50},{14,-50}}, color={0,127,0})); + connect(linearSpeedDependentForce.flange, piston2_1.flange) annotation (Line(points={{40,-50},{40,-50.2},{14,-50.2}}, color={0,127,0})); - connect(piston2_1.x_out, showRealValue.numberPort) annotation (Line(points={{10, - -54.8},{10,-72},{30,-72}}, color={0,0,127})); + connect(piston2_1.x_out, showRealValue.numberPort) annotation (Line(points={{10,-55},{10,-72},{30.5,-72}}, color={0,0,127})); connect(switchConnector.fore, piston2_1.port_left) annotation (Line( - points={{-10,-30},{-10,-45.8},{-6,-45.8}}, + points={{-10,-30},{-10,-46},{-6,-46}}, color={28,108,200}, thickness=0.5)); connect(switchConnector1.fore, piston2_1.port_right) annotation (Line( - points={{10,0},{10,-10},{20,-10},{20,-45.8},{14,-45.8}}, + points={{10,0},{10,-10},{20,-10},{20,-46},{14,-46}}, color={28,108,200}, thickness=0.5)); connect(pulse.y, firstOrder.u) annotation (Line(points={{-43,56},{-32,56}}, color={0,0,127})); diff --git a/ThermofluidStream/Examples/VenturiPump.mo b/ThermofluidStream/Examples/VenturiPump.mo index 2ac87bd1..627b5c28 100644 --- a/ThermofluidStream/Examples/VenturiPump.mo +++ b/ThermofluidStream/Examples/VenturiPump.mo @@ -88,8 +88,7 @@ model VenturiPump "Pumping of liquid water using the venturi effect" extent={{-10,-10},{10,10}}, rotation=270, origin={0,50}))); - inner DropOfCommons dropOfCommons(p_min(displayUnit="Pa") = 612, - displayInstanceNames=true) + inner DropOfCommons dropOfCommons(p_min(displayUnit="Pa") = 612, displayInstanceNames=false) annotation (Placement(transformation(extent={{-90,12},{-70,32}}))); ThermofluidStream.Utilities.Icons.DLRLogo dLRLogo annotation (Placement(transformation(extent={{82,62},{118,98}}))); equation diff --git a/ThermofluidStream/Examples/WaterHammer.mo b/ThermofluidStream/Examples/WaterHammer.mo index 99aa7fd6..9a9fc997 100644 --- a/ThermofluidStream/Examples/WaterHammer.mo +++ b/ThermofluidStream/Examples/WaterHammer.mo @@ -8,8 +8,7 @@ model WaterHammer "Pump water by using dynamic pressures" "Medium model" annotation(choicesAllMatching=true); - inner ThermofluidStream.DropOfCommons dropOfCommons(assertionLevel = AssertionLevel.warning, - displayInstanceNames=true) + inner ThermofluidStream.DropOfCommons dropOfCommons(assertionLevel = AssertionLevel.warning, displayInstanceNames=false) annotation (Placement(transformation(extent={{-100,60},{-80,80}}))); ThermofluidStream.Boundaries.Source source( redeclare package Medium = Medium, diff --git a/ThermofluidStream/FlowControl/MCV.mo b/ThermofluidStream/FlowControl/MCV.mo index 8602944e..afdc1f1c 100644 --- a/ThermofluidStream/FlowControl/MCV.mo +++ b/ThermofluidStream/FlowControl/MCV.mo @@ -154,6 +154,6 @@ equationThis component can be used to emulate a mass- or volume-flow regulated valve, depending on its mode.
The mass- or volume-flow-setpoint can be set or given by a real input signal, and the valve tries to enforce a PT1- dynamic on this setpoint, within its pressure limits. The valve will not create pressure, or let the outlet pressure drop below p_min. To avoid this, the internally integrated pressure-drop is clipped. If it is clipped and hence the setpoint cannot be reached, an optional output leaves its "zero" value and a visual wanring is shown (circle becomes red).
Documentation of the used equations:
-