From 51848e43c9ccb3babfb33eede2f242900c0d0ceb Mon Sep 17 00:00:00 2001 From: Raphael Gebhart Date: Thu, 25 Jun 2026 16:52:21 +0200 Subject: [PATCH 01/10] Source --- ThermofluidStream/Boundaries/Source.mo | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ThermofluidStream/Boundaries/Source.mo b/ThermofluidStream/Boundaries/Source.mo index e6e7190c..a1b2d5d3 100644 --- a/ThermofluidStream/Boundaries/Source.mo +++ b/ThermofluidStream/Boundaries/Source.mo @@ -41,8 +41,8 @@ the inlet the source is connected to. annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters and not xiFromInput),Evaluate=true, HideResult=true, choices(checkBox=true)); // parameter Boolean displayTemperatureOrEnthalpy = true "= true, if temperature T0_par or specific enthalpy h0_par is displayed" // annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters and not temperatureFromInput),Evaluate=true, HideResult=true, choices(checkBox=true)); - parameter Boolean displayInertance = false "= true, if inertance L is displayed" - annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); + parameter Boolean displayInertance = false "DEPRECATED: =true will cause a warning, no longer has any other effect and will be removed in the next major release v2.0.0" + annotation(Dialog(tab="Layout",group="Display parameters"),Evaluate=true, HideResult=true); final parameter Boolean displayP = displayPressure and not pressureFromInput annotation(Evaluate=true, HideResult=true); final parameter Boolean displayT = displayTemperature and not temperatureFromInput and not setEnthalpy @@ -103,6 +103,11 @@ protected Modelica.Blocks.Interfaces.RealInput h0(unit = "J/kg") "Internal enthalpy connector"; Modelica.Blocks.Interfaces.RealInput Xi0[Medium.nXi](each unit = "kg/kg") "Internal mass fractions connector"; +initial equation + assert(not displayInertance, + "Parameter displayInertance is deprecated and has no effect. It will be removed in the next major release. Please remove modifier.", + level=AssertionLevel.warning); + equation connect(T0_var, T0); if not temperatureFromInput or setEnthalpy then From fefe102c00032fbc616cce4cf0edf94dad00217d Mon Sep 17 00:00:00 2001 From: Raphael Gebhart Date: Thu, 25 Jun 2026 16:54:29 +0200 Subject: [PATCH 02/10] Updated parameter description --- ThermofluidStream/Boundaries/DynamicPressureInflow.mo | 4 ++-- ThermofluidStream/Boundaries/DynamicPressureOutflow.mo | 4 ++-- ThermofluidStream/Boundaries/Sink.mo | 4 ++-- ThermofluidStream/Processes/Nozzle.mo | 4 ++-- ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo | 4 ++-- ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ThermofluidStream/Boundaries/DynamicPressureInflow.mo b/ThermofluidStream/Boundaries/DynamicPressureInflow.mo index 216307fa..0bf84573 100644 --- a/ThermofluidStream/Boundaries/DynamicPressureInflow.mo +++ b/ThermofluidStream/Boundaries/DynamicPressureInflow.mo @@ -25,8 +25,8 @@ model DynamicPressureInflow "Extension of (p,T) source to (p,T,velocity)" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); parameter Boolean displayOutletArea = true "= true, if outlet cross section area A_par is displayed" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); - parameter Boolean displayInertance = false "= true, if inertance L is displayed" - annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); + parameter Boolean displayInertance = false "DEPRECATED: =true will cause a warning, no longer has any other effect and will be removed in the next major release v2.0.0" + annotation(Dialog(tab="Layout",group="Display parameters"),Evaluate=true, HideResult=true); final parameter Boolean dv_in = displayParameters and not velocityFromInput and displayInletVelocity "Display inlet velocity" annotation(Evaluate=true, HideResult=true); final parameter Boolean displayA = displayParameters and displayOutletArea and not areaFromInput "Display outlet cross section area" diff --git a/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo b/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo index 1e2cfb20..d8f948ce 100644 --- a/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo +++ b/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo @@ -25,8 +25,8 @@ model DynamicPressureOutflow "Extension of (p) sink to (p,velocity)" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); parameter Boolean displayOutletVelocity = true "= true, if outlet velocity v_out_par is displayed" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); - parameter Boolean displayInertance = false "= true, if inertance L is displayed" - annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); + parameter Boolean displayInertance = false "DEPRECATED: =true will cause a warning, no longer has any other effect and will be removed in the next major release v2.0.0" + annotation(Dialog(tab="Layout",group="Display parameters"),Evaluate=true, HideResult=true); final parameter Boolean displayA = displayParameters and displayInletArea and not areaFromInput annotation(Evaluate=true, HideResult=true); final parameter Boolean dv_out = displayParameters and displayOutletVelocity and not velocityFromInput diff --git a/ThermofluidStream/Boundaries/Sink.mo b/ThermofluidStream/Boundaries/Sink.mo index c4428c63..fd0ebde5 100644 --- a/ThermofluidStream/Boundaries/Sink.mo +++ b/ThermofluidStream/Boundaries/Sink.mo @@ -21,8 +21,8 @@ the outlet the sink is connected to. // ------ Parameter Display Configuration ------------------------ parameter Boolean displayPressure = true "= true, if pressure p0_par is displayed" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters and not pressureFromInput),Evaluate=true, HideResult=true, choices(checkBox=true)); - parameter Boolean displayInertance = false "= true, if inertance L is displayed" - annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); + parameter Boolean displayInertance = false "DEPRECATED: =true will cause a warning, no longer has any other effect and will be removed in the next major release v2.0.0" + annotation(Dialog(tab="Layout",group="Display parameters"),Evaluate=true, HideResult=true); final parameter Boolean displayP = displayPressure and not pressureFromInput annotation(Evaluate=true, HideResult=true); final parameter String displayPos1= diff --git a/ThermofluidStream/Processes/Nozzle.mo b/ThermofluidStream/Processes/Nozzle.mo index baf290bb..7d227fd5 100644 --- a/ThermofluidStream/Processes/Nozzle.mo +++ b/ThermofluidStream/Processes/Nozzle.mo @@ -22,8 +22,8 @@ model Nozzle "Model for dynamic pressure difference" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); parameter Boolean displayOutletArea = true "= true, if outlet area A_out is displayed" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); - parameter Boolean displayInertance = false "=true, if inertance L is displayed" - annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); + parameter Boolean displayInertance = false "DEPRECATED: =true will cause a warning, no longer has any other effect and will be removed in the next major release v2.0.0" + annotation(Dialog(tab="Layout",group="Display parameters"),Evaluate=true, HideResult=true); final parameter Boolean dA_in = displayParameters and displayInletArea and not area_in_FromInput "Display inlet area" annotation(Evaluate=true, HideResult=true); final parameter Boolean dA_out = displayParameters and displayOutletArea and not area_out_FromInput "Display outlet area" diff --git a/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo b/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo index 96cf418c..de6514a3 100644 --- a/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo +++ b/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo @@ -35,8 +35,8 @@ model BoundaryFore "Generic Boundary model (may act as source or sink)" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters and not pressureFromInput),Evaluate=true, HideResult=true, choices(checkBox=true)); parameter Boolean displayTemperature = true "= true, if temperature T0_par is displayed" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters and not temperatureFromInput),Evaluate=true, HideResult=true, choices(checkBox=true)); - parameter Boolean displayInertance = false "= true, if inertance L is displayed" - annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); + parameter Boolean displayInertance = false "DEPRECATED: =true will cause a warning, no longer has any other effect and will be removed in the next major release v2.0.0" + annotation(Dialog(tab="Layout",group="Display parameters"),Evaluate=true, HideResult=true); final parameter Boolean displayP = displayPressure and not pressureFromInput annotation(Evaluate=true, HideResult=true); final parameter Boolean displayT = displayTemperature and not temperatureFromInput and not setEnthalpy diff --git a/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo b/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo index 2f2d7c61..7d735407 100644 --- a/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo +++ b/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo @@ -35,8 +35,8 @@ model BoundaryRear "Generic Boundary model (may act as source or sink)" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters and not pressureFromInput),Evaluate=true, HideResult=true, choices(checkBox=true)); parameter Boolean displayTemperature = true "= true, if temperature T0_par is displayed" annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters and not temperatureFromInput),Evaluate=true, HideResult=true, choices(checkBox=true)); - parameter Boolean displayInertance = false "= true, if inertance L is displayed" - annotation(Dialog(tab="Layout",group="Display parameters",enable=displayParameters),Evaluate=true, HideResult=true, choices(checkBox=true)); + parameter Boolean displayInertance = false "DEPRECATED: =true will cause a warning, no longer has any other effect and will be removed in the next major release v2.0.0" + annotation(Dialog(tab="Layout",group="Display parameters"),Evaluate=true, HideResult=true); final parameter Boolean displayP = displayPressure and not pressureFromInput annotation(Evaluate=true, HideResult=true); final parameter Boolean displayT = displayTemperature and not temperatureFromInput and not setEnthalpy From d5ec1afae19c0be3cfea3fe2bbecf37580005945 Mon Sep 17 00:00:00 2001 From: Raphael Gebhart Date: Thu, 25 Jun 2026 16:56:13 +0200 Subject: [PATCH 03/10] Introduced assert --- ThermofluidStream/Boundaries/DynamicPressureInflow.mo | 5 +++++ ThermofluidStream/Boundaries/DynamicPressureOutflow.mo | 5 +++++ ThermofluidStream/Boundaries/Sink.mo | 5 +++++ ThermofluidStream/Processes/Nozzle.mo | 6 ++++++ ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo | 5 +++++ ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo | 5 +++++ 6 files changed, 31 insertions(+) diff --git a/ThermofluidStream/Boundaries/DynamicPressureInflow.mo b/ThermofluidStream/Boundaries/DynamicPressureInflow.mo index 0bf84573..e83f0332 100644 --- a/ThermofluidStream/Boundaries/DynamicPressureInflow.mo +++ b/ThermofluidStream/Boundaries/DynamicPressureInflow.mo @@ -70,6 +70,11 @@ protected SI.Velocity v_mean "Mean velocity"; SI.Velocity delta_v "Velocity difference"; +initial equation + assert(not displayInertance, + "Parameter displayInertance is deprecated and has no effect. It will be removed in the next major release. Please remove modifier.", + level=AssertionLevel.warning); + equation connect(A_var, A); diff --git a/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo b/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo index d8f948ce..619d2333 100644 --- a/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo +++ b/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo @@ -74,6 +74,11 @@ protected Medium.Density rho_out "Outlet density"; Medium.Density rho_mean "Mean density"; +initial equation + assert(not displayInertance, + "Parameter displayInertance is deprecated and has no effect. It will be removed in the next major release. Please remove modifier.", + level=AssertionLevel.warning); + equation connect(A_var, A); if not areaFromInput then diff --git a/ThermofluidStream/Boundaries/Sink.mo b/ThermofluidStream/Boundaries/Sink.mo index fd0ebde5..b3f07101 100644 --- a/ThermofluidStream/Boundaries/Sink.mo +++ b/ThermofluidStream/Boundaries/Sink.mo @@ -47,6 +47,11 @@ protected SI.Pressure r "Inertial pressure"; Medium.AbsolutePressure p = Medium.pressure(inlet.state) "Steady state pressure"; +initial equation + assert(not displayInertance, + "Parameter displayInertance is deprecated and has no effect. It will be removed in the next major release. Please remove modifier.", + level=AssertionLevel.warning); + equation connect(p0_var, p0); if not pressureFromInput then diff --git a/ThermofluidStream/Processes/Nozzle.mo b/ThermofluidStream/Processes/Nozzle.mo index 7d227fd5..58c072a4 100644 --- a/ThermofluidStream/Processes/Nozzle.mo +++ b/ThermofluidStream/Processes/Nozzle.mo @@ -76,6 +76,12 @@ protected SI.Velocity v_in "Inlet velocity"; SI.Velocity v_out "Outlet velocity"; //Medium.Density rho_mean; + +initial equation + assert(not displayInertance, + "Parameter displayInertance is deprecated and has no effect. It will be removed in the next major release. Please remove modifier.", + level=AssertionLevel.warning); + equation connect(A_in_var, A_in_internal); diff --git a/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo b/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo index de6514a3..f1dbcb82 100644 --- a/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo +++ b/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo @@ -83,6 +83,11 @@ protected SI.Pressure r "Inertial pressure"; +initial equation + assert(not displayInertance, + "Parameter displayInertance is deprecated and has no effect. It will be removed in the next major release. Please remove modifier.", + level=AssertionLevel.warning); + equation connect(T0_var, T0); if not temperatureFromInput or setEnthalpy then diff --git a/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo b/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo index 7d735407..db81f124 100644 --- a/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo +++ b/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo @@ -82,6 +82,11 @@ protected SI.Pressure r "Inertial pressure"; +initial equation + assert(not displayInertance, + "Parameter displayInertance is deprecated and has no effect. It will be removed in the next major release. Please remove modifier.", + level=AssertionLevel.warning); + equation connect(T0_var, T0); if not temperatureFromInput or setEnthalpy then From 9fabbf33123855af06fdd6c1ebd9049090a61aa2 Mon Sep 17 00:00:00 2001 From: Raphael Gebhart Date: Thu, 25 Jun 2026 16:58:12 +0200 Subject: [PATCH 04/10] Removed usage in Source --- ThermofluidStream/Boundaries/Source.mo | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ThermofluidStream/Boundaries/Source.mo b/ThermofluidStream/Boundaries/Source.mo index a1b2d5d3..a66970eb 100644 --- a/ThermofluidStream/Boundaries/Source.mo +++ b/ThermofluidStream/Boundaries/Source.mo @@ -61,8 +61,6 @@ the inlet the source is connected to. "h = %h0_par" elseif displayXi then "Xi = %Xi0_par" - elseif displayInertance then - "L = %L" else ""; final parameter String displayPos2= if displayP and displayT then @@ -71,19 +69,11 @@ the inlet the source is connected to. "h = %h0_par" elseif displayXi and (displayP or displayT or displayH) then "Xi = %Xi0_par" - elseif displayInertance and (displayP or displayT or displayH or displayXi) then - "L = %L" else ""; final parameter String displayPos3= if displayXi and displayP and (displayT or displayH) then "Xi = %Xi0_par" - elseif displayInertance and not displayPos2 == "L = %L" and not displayPos1 == "L = %L" then - "L = %L" else ""; - final parameter String displayPos4= - if displayP and (displayT or displayH) and displayXi and displayInertance then - "L = %L" - else "" annotation(Evaluate=true, HideResult=true); //----------------------------------------------------------------- Modelica.Blocks.Interfaces.RealInput p0_var(unit="Pa") if pressureFromInput "Pressure input connector [Pa]" @@ -152,10 +142,6 @@ equation extent={{-150,-170},{150,-200}}, textColor={0,0,0}, textString=displayPos3), - Text(visible=displayParameters, - extent={{-150,-240},{150,-210}}, - textColor={0,0,0}, - textString=displayPos4), Rectangle( extent={{0,76},{64,-84}}, lineColor={28,108,200}, From 06d104470c99529f25e0e89214fd1fa79428a13d Mon Sep 17 00:00:00 2001 From: Raphael Gebhart Date: Thu, 25 Jun 2026 16:59:06 +0200 Subject: [PATCH 05/10] Removed usage in Sink --- ThermofluidStream/Boundaries/Sink.mo | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ThermofluidStream/Boundaries/Sink.mo b/ThermofluidStream/Boundaries/Sink.mo index b3f07101..e76af8dc 100644 --- a/ThermofluidStream/Boundaries/Sink.mo +++ b/ThermofluidStream/Boundaries/Sink.mo @@ -28,12 +28,6 @@ the outlet the sink is connected to. final parameter String displayPos1= if displayP then "p = %p0_par" - elseif displayInertance then - "L = %L" - else ""; - final parameter String displayPos2= - if displayP and displayInertance then - "L = %L" else ""; //----------------------------------------------------------------- @@ -73,10 +67,6 @@ equation extent={{-150,-90},{150,-120}}, textColor={0,0,0}, textString=displayPos1), - Text(visible=displayParameters, - extent={{-150,-130},{150,-160}}, - textColor={0,0,0}, - textString=displayPos2), Rectangle( extent={{-56,76},{4,-84}}, lineColor={28,108,200}, From 5a2ea8d0c1b5d9a19ca6024f7e384ca8cc967c35 Mon Sep 17 00:00:00 2001 From: Raphael Gebhart Date: Thu, 25 Jun 2026 17:00:43 +0200 Subject: [PATCH 06/10] Removed usage in DynamicPressureInflow --- .../Boundaries/DynamicPressureInflow.mo | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ThermofluidStream/Boundaries/DynamicPressureInflow.mo b/ThermofluidStream/Boundaries/DynamicPressureInflow.mo index e83f0332..4e60f983 100644 --- a/ThermofluidStream/Boundaries/DynamicPressureInflow.mo +++ b/ThermofluidStream/Boundaries/DynamicPressureInflow.mo @@ -38,18 +38,10 @@ model DynamicPressureInflow "Extension of (p,T) source to (p,T,velocity)" compressibilityString elseif displayA then "A_out = %A_par" - elseif displayInertance then - "L = %L" else "" annotation(Evaluate=true, HideResult=true); final parameter String displayPos2= if displayCompressibilityApproach and displayA then "A_out = %A_par" - elseif displayInertance and not displayPos1 == "L = %L" then - "L = %L" - else "" annotation(Evaluate=true, HideResult=true); - final parameter String displayPos3= - if displayCompressibilityApproach and displayA and displayInertance then - "L = %L" else "" annotation(Evaluate=true, HideResult=true); //---------------------------------------------------------------- @@ -126,10 +118,6 @@ equation extent={{-150,-140},{150,-170}}, textColor={0,0,0}, textString=displayPos2), - Text(visible=displayParameters, - extent={{-150,-180},{150,-210}}, - textColor={0,0,0}, - textString=displayPos3), Text(visible=dv_in, extent={{-210,-45},{-10,-75}}, textColor={0,0,0}, From c08d5903d6a9fd8f7cb28f9fe5c481bf52816a99 Mon Sep 17 00:00:00 2001 From: Raphael Gebhart Date: Thu, 25 Jun 2026 17:01:33 +0200 Subject: [PATCH 07/10] Removed usage in DynamicPressureOutflow --- .../Boundaries/DynamicPressureOutflow.mo | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo b/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo index 619d2333..0c5943e4 100644 --- a/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo +++ b/ThermofluidStream/Boundaries/DynamicPressureOutflow.mo @@ -38,20 +38,11 @@ model DynamicPressureOutflow "Extension of (p) sink to (p,velocity)" compressibilityString elseif displayA then "A_in = %A_par" - elseif displayInertance then - "L = %L" else "" annotation(Evaluate=true, HideResult=true); final parameter String displayPos2= if displayCompressibilityApproach and displayA then "A_in = %A_par" - elseif displayInertance and not displayPos1 == "L = %L" then - "L = %L" - else "" - annotation(Evaluate=true, HideResult=true); - final parameter String displayPos3= - if displayCompressibilityApproach and displayA and displayInertance then - "L = %L" else "" annotation(Evaluate=true, HideResult=true); //---------------------------------------------------------------- @@ -128,10 +119,6 @@ equation extent={{-150,-140},{150,-170}}, textColor={0,0,0}, textString=displayPos2), - Text(visible=displayParameters, - extent={{-150,-180},{150,-210}}, - textColor={0,0,0}, - textString=displayPos3), Text(visible=dv_out, extent={{210,-45},{15,-75}}, textColor={0,0,0}, From e82cb722ca9b7c11a4cecf2a18a26c880a97a7f0 Mon Sep 17 00:00:00 2001 From: Raphael Gebhart Date: Thu, 25 Jun 2026 17:02:31 +0200 Subject: [PATCH 08/10] Removed usage in Nozzle --- ThermofluidStream/Processes/Nozzle.mo | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ThermofluidStream/Processes/Nozzle.mo b/ThermofluidStream/Processes/Nozzle.mo index 58c072a4..175d01cd 100644 --- a/ThermofluidStream/Processes/Nozzle.mo +++ b/ThermofluidStream/Processes/Nozzle.mo @@ -45,18 +45,10 @@ model Nozzle "Model for dynamic pressure difference" compressibilityString elseif displayA then AreaString - elseif displayInertance then - "L = %L_value" else "" annotation(Evaluate=true, HideResult=true); final parameter String displayPos2= if displayCompressibilityApproach and displayA then AreaString - elseif displayInertance and not displayPos1 == "L = %L" then - "L = %L_value" - else "" annotation(Evaluate=true, HideResult=true); - final parameter String displayPos3= - if displayCompressibilityApproach and displayA and displayInertance then - "L = %L_value" else "" annotation(Evaluate=true, HideResult=true); //----------------------------------------------------------------- @@ -121,10 +113,6 @@ equation extent={{-150,-110},{150,-140}}, textColor={0,0,0}, textString=displayPos2), - Text(visible=displayParameters, - extent={{-150,-150},{150,-180}}, - textColor={0,0,0}, - textString=displayPos3), Ellipse( extent={{-56,54},{64,-66}}, lineColor={28,108,200}, From a7c6c3d4ae76523690f2b835484de51049392607 Mon Sep 17 00:00:00 2001 From: Raphael Gebhart Date: Thu, 25 Jun 2026 17:03:36 +0200 Subject: [PATCH 09/10] Removed usage in BoundaryRear --- .../Undirected/Boundaries/BoundaryRear.mo | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo b/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo index db81f124..ec8bf128 100644 --- a/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo +++ b/ThermofluidStream/Undirected/Boundaries/BoundaryRear.mo @@ -46,19 +46,11 @@ model BoundaryRear "Generic Boundary model (may act as source or sink)" "p = %p0_par" elseif displayT then "T = %T0_par" - elseif displayInertance then - "L = %L" else ""; final parameter String displayPos2= if displayP and displayT then "T = %T0_par" - elseif displayInertance and (displayP or displayT) then - "L = %L" else ""; - final parameter String displayPos3= - if displayP and displayT and displayInertance then - "L = %L" - else "" annotation(Evaluate=true, HideResult=true); //----------------------------------------------------------------- Modelica.Blocks.Interfaces.RealInput p0_var(unit="Pa") if pressureFromInput "Pressure input connector [Pa]" @@ -128,10 +120,6 @@ equation extent={{-150,-130},{150,-160}}, textColor={0,0,0}, textString=displayPos2), - Text(visible=displayParameters, - extent={{-150,-170},{150,-200}}, - textColor={0,0,0}, - textString=displayPos3), Rectangle( extent={{0,76},{64,-84}}, lineColor={28,108,200}, From 3e11ba0881636b3ed7de0ef7cb98c304afdfeffb Mon Sep 17 00:00:00 2001 From: Raphael Gebhart Date: Thu, 25 Jun 2026 17:04:22 +0200 Subject: [PATCH 10/10] Removed usage in BoundaryFore --- .../Undirected/Boundaries/BoundaryFore.mo | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo b/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo index f1dbcb82..c6c170f2 100644 --- a/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo +++ b/ThermofluidStream/Undirected/Boundaries/BoundaryFore.mo @@ -46,19 +46,11 @@ model BoundaryFore "Generic Boundary model (may act as source or sink)" "p = %p0_par" elseif displayT then "T = %T0_par" - elseif displayInertance then - "L = %L" else ""; final parameter String displayPos2= if displayP and displayT then "T = %T0_par" - elseif displayInertance and (displayP or displayT) then - "L = %L" else ""; - final parameter String displayPos3= - if displayP and displayT and displayInertance then - "L = %L" - else "" annotation(Evaluate=true, HideResult=true); //----------------------------------------------------------------- Modelica.Blocks.Interfaces.RealInput p0_var(unit="Pa") if pressureFromInput "Pressure input connector [Pa]" @@ -129,10 +121,6 @@ equation extent={{-150,-130},{150,-160}}, textColor={0,0,0}, textString=displayPos2), - Text(visible=displayParameters, - extent={{-150,-170},{150,-200}}, - textColor={0,0,0}, - textString=displayPos3), Rectangle( extent={{4,76},{-60,-84}}, lineColor={28,108,200},