Skip to content

Comments

Tfs display pressure drop#286

Open
tobiasreischl wants to merge 2 commits intoDLR-SR:mainfrom
tobiasreischl:TFS_PressureDrop_and_Coloring
Open

Tfs display pressure drop#286
tobiasreischl wants to merge 2 commits intoDLR-SR:mainfrom
tobiasreischl:TFS_PressureDrop_and_Coloring

Conversation

@tobiasreischl
Copy link
Contributor

Introduces displaying pressure drop and Coloring for Resistance in TFS

Closes Issues #257 and #264

>>
Color the flow resistance model dynamically based on the pressure drop.
Make the coloring optional
Introduce a reference value
Introduce a reasonable start value.
>>
- Now there is a switch in layout of the flow resistance to toggle displaying the dp or not
- it can be displayed in which units dp should be displayed (bar, kPa, Pa)
- Introduced Types/PressureUnit.mo

>> MINOR FIX for DropOfCommons.mo show coloring
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Should p_reference be transferred to the layout tab since it is only a parameter impacting the visual aspect and not the model itself?
  • The name could also be improved to highlight that it is not a reference pressure used in the calculation. Maybe p_ref_color or something similar.
  • Revert all formatting changes which were not intended
  • The variable phi can be set as protected I think since it is only used as an internal variable and declared with the other protected variables
  • Indentations and line breaks in the annotations to be checked.
  • Documentation update to mention the coloring. Maybe add an explanation on how to choose the proper value (should it be the design value, 2 times the design one, ...)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Documentation for the coloring option should be added.
  • Rename the boolean to displayColor to make it consistent with the other display parameters.
  • Mention Color in the short description of the parameter or even rephrase it to highlight that it displays the pressure drop with color.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add documentation, like a short sentence to describe the goal of the enumeration and make sure the Documentation tab is displayed properly.

@tobiasreischl tobiasreischl changed the title Tfs display pressure drop and coloring Tfs display pressure drop Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants