From f92cae67fc90bf91e98e42bbf547eefbb6bfc643 Mon Sep 17 00:00:00 2001 From: HOS Date: Mon, 8 Apr 2024 16:22:33 +0200 Subject: [PATCH] Have final modifier for these rescalings. Otherwsise these parameters could (as default; depending on tool) be possible to edit after translation. Modifying the rescaling between Pascal and bar (or MW and W) clearly does not make sense. --- Modelica/Fluid/Examples/DrumBoiler.mo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modelica/Fluid/Examples/DrumBoiler.mo b/Modelica/Fluid/Examples/DrumBoiler.mo index e10f16cb0a..6531e06d0b 100644 --- a/Modelica/Fluid/Examples/DrumBoiler.mo +++ b/Modelica/Fluid/Examples/DrumBoiler.mo @@ -70,9 +70,9 @@ package DrumBoiler Modelica.Blocks.Interfaces.RealOutput V_l(unit="m3") "Liquid volume inside drum" annotation (Placement(transformation(extent={{100,74},{112,86}}))); public - Modelica.Blocks.Math.Gain MW2W(k=1e6) + Modelica.Blocks.Math.Gain MW2W(final k=1e6) annotation (Placement(transformation(extent={{-54,-75.5},{-44,-64.5}}))); - Modelica.Blocks.Math.Gain Pa2bar(k=1e-5) annotation (Placement( + Modelica.Blocks.Math.Gain Pa2bar(final k=1e-5) annotation (Placement( transformation(extent={{37,23},{47,33}}))); Modelica.Thermal.HeatTransfer.Celsius.FromKelvin K2degC annotation (Placement(transformation(extent={{38,49},{48,59}})));