Skip to content

Draft: Feature/125 mediumsimplementation in fluidtsp on develop - #76

Draft
matchaniat wants to merge 286 commits into
developfrom
feature/125-mediumsImplementation-in-FluidTSP-on-develop
Draft

matchaniat wants to merge 286 commits into
developfrom
feature/125-mediumsImplementation-in-FluidTSP-on-develop

Conversation

@matchaniat

Copy link
Copy Markdown

Note

This pull request was migrated from GitLab

Original Author MAZURIE Baptiste
GitLab Project thermosysproandco/ThermoSysPro
GitLab Merge Request Draft: Feature/125 mediumsimplementation...
GitLab MR Number 89
Date Originally Opened Mon, 27 Jul 2026
Approved on GitLab by No approvers

Original Description

New feature to Fluid subpackage, with traces and Medium implementation

Related to #125

bmazurie and others added 30 commits June 16, 2025 10:08
#125 Source

See merge request thermosysproandco/ThermoSysPro!34
#125 SinkPQ

See merge request thermosysproandco/ThermoSysPro!33
#125 SourceP

See merge request thermosysproandco/ThermoSysPro!29
Resolve "Implementation of Modelica Medium in the `Fluid` subpackage of ThermoSysPro"

See merge request thermosysproandco/ThermoSysPro!39
#125 VolumeA

See merge request thermosysproandco/ThermoSysPro!28
…uidTSP'

#125 ControlValve

See merge request thermosysproandco/ThermoSysPro!35
#125 RefP

See merge request thermosysproandco/ThermoSysPro!41
# Conflicts:
#   ThermoSysPro/Fluid/Examples/SimpleExamples/BoundaryConditions/package.order
#125 RefQ

See merge request thermosysproandco/ThermoSysPro!38
bmazurie and others added 8 commits November 18, 2026 15:20
…hasesSeparationFunction

relativeVolatility and equilibriumPartition instead of PhasesSeparationFunction
…ermal

conductivity (mul1, muv1, kl1, kv1, mul2, muv2, kl2, kv2) at bubble/dew
states unconditionally. WaterSteam and Fluid 4.2 evaluate them at the actual
node state, which differs strongly in superheated steam and subcooled water
(hi about 25 % too high in the CombinedCycle HP superheaters).

Use the node state in single phase and saturation states only in two-phase
flow, as already done for cpl1/cpv1.
…transport-properties

Fixed DynamicTwoPhaseFlowPipe properties evaluation as done previously
enthalpies Hrair = 2501.569e3*XeaH2O and Hrfg (Hrfum) = 2501.569e3*XsfH2O.
These values are the zero of ThermoSysPro.Properties.FlueGases.FlueGases_h
(mixture enthalpy at 0.01 degC plus Xh2o*Hlat), which Fluid 4.2 used for Hea
and Hsf. The #125 port computes Hea and Hsf with
Medium_FlueGases.specificEnthalpy_pTX, whose offset with respect to
FlueGases_h depends on the composition (about +2.46 MJ/kg for humid air,
+2.34 MJ/kg for flue gases). The balance therefore created energy: +50 K at
the GTCombustionChamber outlet, +100 K flame temperature in FossilFuelBoiler.

Take the reference as the Medium_FlueGases enthalpy of the same mixture at
273.16 K, which is equivalent to the FlueGases_h convention.

Components: GTCombustionChamber, GenericCombustion, GenericCombustion1D,
FossilFuelBoiler. InternalCombustionEngine still computes Hea/Hsf with
FlueGases_h and is left for a separate port.
…cCombustion

- InternalCombustionEngine: compute air/flue gases enthalpy, cp and density
  with Medium_FlueGases instead of FlueGases_h/_cp/_rho, and take the
  reference enthalpies at 273.16 K as in the other combustion components.
- Book TestGenericCombustion1D: restore the 4.2 formulation (water sink with
  imposed flow rate and computed pressure, dynamic pipe).
…halpies

Fix/125 combustion reference enthalpies
bmazurie and others added 15 commits November 19, 2026 11:02
Complex fluid examples - PTSC and CombinedCycle_Load_100_50
…parameters

Fix/125 remove component region parameters
- PartialSubCMedium: add the partialPartition interface (SubC, x, T -> C_BiPhase);
  equilibriumPartition extends it (signature and result unchanged).
- DynamicDrum, Pressurizer, TwoPhaseCavity, TwoPhaseCavityOnePipe, TwoPhaseVolume,
  SimpleDynamicCondenser, SteamDryer, SteamExtractionSplitter: replaceable function
  tracePartition = Medium.equilibriumPartition constrainedby Medium.partialPartition,
  used for all their trace partitions (18 calls).
- Example partition law approachToEquilibriumPartition(eta) in
  SimpleExamples.Media.WaterSteam_NonVolatileTrace, used by the new example
  Junctions.TestDryer_Traces_ApproachToEquilibrium (extends TestDryer_Traces).
- PartialSubCMedium: short descriptions and Markdown documentation for all elements
  (partialRelativeVolatility, partialSaS, noSaS, C_BiPhase, ...).
- Properties.Media: new package icon (ThermoSysProPackageIcon) and description.
…nger-cold-side

Fixed Fluid DynamicPlateHeatExchanger as in WaterSteam
…p' into feature/125-component-trace-partition
…ition

Replaceable trace partition law in the two-phase Fluid components

This branch has not been deployed

No deployments
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.

2 participants