Skip to content

Commit

Permalink
DifferentialSensor update
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelGebhart committed Oct 15, 2024
1 parent c7b8f26 commit 68aa2e6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
20 changes: 8 additions & 12 deletions ThermofluidStream/Sensors/DifferenceSensorSelect.mo
Original file line number Diff line number Diff line change
Expand Up @@ -103,30 +103,26 @@ equation
textString="%name",
textColor=dropOfCommons.instanceNameColor),
Rectangle(
extent={{-54,24},{66,-36}},
extent={{-74,24},{86,-36}},
lineColor={0,0,0},
fillColor={215,215,215},
fillPattern=FillPattern.Solid,
pattern=LinePattern.None),
Line(
points={{-100,0},{100,0}},
color={28,108,200},
thickness=0.5),
Rectangle(
extent={{-60,30},{60,-30}},
extent={{-80,30},{80,-30}},
lineColor={0,0,0},
fillColor={255,255,255},
fillPattern=FillPattern.Solid),
Text(
extent={{-60,26},{60,-26}},
extent={{-80,26},{80,-26}},
textColor={0,0,0},
textString=DynamicSelect(" 0.0 ", " "+String(value,significantDigits=digits)+" ")),
Text(
extent={{-150,-40},{150,-70}},
textColor={0,0,0},
textString=quantityString),
Ellipse(
extent={{70,30},{90,10}},
extent={{90,40},{110,20}},
lineColor={28,108,200},
lineThickness=0.5),
Line(visible=outputValue,
Expand All @@ -136,22 +132,22 @@ equation
points={{0,-30},{0,-40}},
color={0,0,127}),
Line(
points={{72,20},{88,20}},
points={{92,30},{108,30}},
color={28,108,200},
thickness=0.5),
Ellipse(
extent={{-90,30},{-70,10}},
extent={{-110,40},{-90,20}},
lineColor={28,108,200},
lineThickness=0.5),
Line(
points={{-88,20},{-72,20}},
points={{-108,30},{-92,30}},
color={28,108,200},
thickness=0.5),
Line(
points={{-8,0},{8,0}},
color={28,108,200},
thickness=0.5,
origin={-80,20},
origin={-100,30},
rotation=90)}),
Diagram(coordinateSystem(preserveAspectRatio=true)),
Documentation(info="<html>
Expand Down
20 changes: 8 additions & 12 deletions ThermofluidStream/Sensors/DifferenceTwoPhaseSensorSensorSelect.mo
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,18 @@ equation
textString="%name",
textColor=dropOfCommons.instanceNameColor),
Rectangle(
extent={{-54,24},{66,-36}},
extent={{-74,24},{86,-36}},
lineColor={0,0,0},
fillColor={215,215,215},
fillPattern=FillPattern.Solid,
pattern=LinePattern.None),
Line(
points={{-100,0},{100,0}},
color={28,108,200},
thickness=0.5),
Rectangle(
extent={{-60,30},{60,-30}},
extent={{-80,30},{80,-30}},
lineColor={0,0,0},
fillColor={255,255,255},
fillPattern=FillPattern.Solid),
Text(
extent={{-60,26},{60,-26}},
extent={{-80,26},{80,-26}},
textColor={0,0,0},
textString=DynamicSelect(" 0.0 ", " "+String(value,significantDigits=digits)+" ")),
Text(
Expand All @@ -124,25 +120,25 @@ equation
points={{0,-70},{0,-80}},
color={0,0,127}),
Ellipse(
extent={{-90,30},{-70,10}},
extent={{-110,40},{-90,20}},
lineColor={28,108,200},
lineThickness=0.5),
Line(
points={{-88,20},{-72,20}},
points={{-108,30},{-92,30}},
color={28,108,200},
thickness=0.5),
Line(
points={{-8,0},{8,0}},
color={28,108,200},
thickness=0.5,
origin={-80,20},
origin={-100,30},
rotation=90),
Line(
points={{72,20},{88,20}},
points={{92,30},{108,30}},
color={28,108,200},
thickness=0.5),
Ellipse(
extent={{70,30},{90,10}},
extent={{90,40},{110,20}},
lineColor={28,108,200},
lineThickness=0.5)}),
Diagram(coordinateSystem(preserveAspectRatio=true)),
Expand Down

0 comments on commit 68aa2e6

Please sign in to comment.