modelMultiStageTurbine_Superheat_Test

Unit test: an explicit per-stage T_nominal holds the ladder on a HIGH-SUPERHEAT expansion

Extends from TRANSFORM.Icons.Example (Icon for runnable examples).

Information

Companion to MultiStageTurbine_Test: the same 3-stage machine and the same design ladder, but a high-superheat inlet (773.15 K at 6 MPa, ~224 K above saturation) and an explicit per-stage T_nominal.

What it demonstrates

MultiStageTurbine's default Stodola sizing evaluates stages 2..n at Tsat(p) + dT_superheat_nominal, which assumes the expansion stays near saturation. On this inlet it does not: stage 2 actually settles around 640 K against a 490.5 K default nominal, its density is ~18 % low, and since Kt goes as 1/√ρ the stage passes only ~90 % of design flow, backs up, and puts tap 1 +15.2 % off the ladder. Setting T_nominal to the temperatures the stages actually see recovers it.

Together the two tests pin the envelope from both sides: the default sizing is correct for near-saturated (nuclear) expansions and must be overridden for superheated (fossil) ones. Neither passing alone would establish that.

How T_nominal was obtained

By iterating to a fixed point, because the stage inlet temperatures are an output of the expansion and cannot be known in advance: run, read the settled tap temperatures (vols[i].medium.T is stage i+1's inlet), feed them back, repeat. It converges quickly — pass 1 under the default sizing gave {641.9, 458.5} K, then 637.0/451.0 → 623.7/478.3 → 624.7/474.8, with the RMS falling 0.016 → 0.00186 → 0.00022. At the fixed point T_nominal and the temperatures the stages actually see agree to under 0.1 % (624.6 / 475.2 K), and every asserted quantity is within 0.05 %.

The two tests carry different thresholds on purpose. This one is 0.005 because a correctly-sized machine reproduces its own ladder almost exactly — there is no modelling approximation left once T_nominal is right. MultiStageTurbine_Test is 0.06 because it deliberately keeps the default Tsat+5 sizing, whose residual (−3.6 / −6.9 %) is that approximation. Tightening this one to match that would hide the very difference the pair exists to show.

If this test fails after a change to the default sizing, that is expected and not a bug — it pins the override path, not the default. Check MultiStageTurbine_Test first to tell the two apart.

Parameters

TypeNameDefaultDescription
IntegernStages3Expansion stages
Modelica.Units.SI.Pressure[nStages + 1]p_ladder{6.0e6, 2.0e6, 5.0e5, 1.0e4}Boundary pressures {inlet, tap_1, tap_2, outlet}
Modelica.Units.SI.MassFlowRate[nStages]m_ladder{100, 90, 75}Per-stage through-flow; the differences are the extractions
Modelica.Units.SI.TemperatureT_in773.15Inlet temperature — ~224 K superheat at 6 MPa
Realeta0.85Isentropic efficiency, all stages
Modelica.Units.SI.Temperature[nStages]T_stage{773.15, 624.7, 474.8}Measured stage inlet temperatures — NOT Tsat+5
Modelica.Units.SI.MassFlowRate[nStages - 1]m_extract{m_ladder[i] - m_ladder[i + 1] for i in 1:nStages - 1}= {10, 15} kg/s

Components

TypeNameDefaultDescription
Modelica.Fluid.Systemsystem
TRANSFORM.Fluid.SystemTFsystemTF
TRANSFORM.Fluid.Machines.MultiStageTurbineturbine
TRANSFORM.Fluid.BoundaryConditions.Boundary_pTsource
TRANSFORM.Fluid.BoundaryConditions.Boundary_pTsink
TRANSFORM.Fluid.BoundaryConditions.MassFlowSource_h[nStages - 1]extraction
Modelica.Mechanics.Rotational.Sources.ConstantSpeedconstantSpeed
TRANSFORM.Utilities.ErrorAnalysis.UnitTestsunitTests

Contents

NameDescription
MediumWorking fluid