Skip to content

[GL#120] Move the "href shift" within the function itself #189

Open

Description

@modelibot

Imported automatically from GitLab.

Original GitLab issue: https://gitlab.pam-retd.fr/thermosysproandco/ThermoSysPro/-/work_items/120
Original GitLab IID: 120
Original author: SIMONINI Giorgio (@giorgio.simonini) (GitHub: @Sonyoyo)

Original creation date: 2025-04-04T15:27:35.997Z
Original update date: 2025-05-26T13:27:46.748Z


Change Request

Description

In v4.Fluid href*Xh20 is subtracted from the enthalpy. This is done to have the same reference for the enthalpy of water, both in WaterSteam and in FlueGases (e.g. when sending some vapor from a WaterSteam.Tank to a FlueGases.Volume.

Proposed Solution

It should be possible to improve how we deal with this in a couple of ways:

  • Moving the href correction directly into the property functions.
  • Changing the ref in the call to used tables (used Media).

Activity

  1. added
    enhancement
    on Oct 12, 2026
  2. modelibot commented on Oct 12, 2026

    @modelibot
    Author

    Comment by HOCINE-RASTIC Sarah (@sarah.hocine-rastic) (GitHub: @hocine-rastic) on 2025-05-21T17:47:32.176Z:

    That sounds the good solution : when the fluegase is water then it works. I think it's ok also when fluegases is not water. @Sonyoyo would it be a solution to the "when sending some vapor from a WaterSteam.Tank to a `FlueGases.Volume" situation you were talking about ? Then we can close the issue and resolve it in the v5 "fluid" TSP with media

  3. modelibot commented on Oct 12, 2026

    @modelibot
    Author

    Comment by SIMONINI Giorgio (@giorgio.simonini) (GitHub: @Sonyoyo) on 2025-05-21T19:00:45.082Z:

    Well done, this is clearly the good solution for this issue.

    A couple of remarks:

    • I am pretty sure I have seen some MSL media (in TANDEM) with water in gases becoming liquid when needed. Not really an issue here, but I would maybe do some tests on that.
    • Are we going to create a library of such tests/validations to be put somewhere? It would help justifying choices but can also be included in the test suite (I have such cases in mind also for [GL#75] Develop Documentation/validation for NuclearCore components #151 (formerly GL#75)).
    • For this specific issue, I could try to find the historical case (tank+volume) that led us to this issue.
  4. modelibot commented on Oct 12, 2026

    @modelibot
    Author

    Comment by MAZURIE Baptiste (@mazurie.baptiste) (GitHub: @bmazurie) on 2025-05-22T09:10:13.715Z:

    • If it is a Modelica Media, it is interesting to test!
    • I agree that having a lib of such tests/validations is useful. Technically, if the book is considered as the reference, those examples are in Examples.Book? Thus putting validation in this subpackage could make sense to me. Having example for the media directly in the library is done for ExternalMedia I think and even MSL (Modelica.Media.Examples), thus having validation cases could be too!
    • Would be great if you have it in hand!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions