modelTestWaterFlow1DFV2ph_D

Test case for Flow1D2ph

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

Information

The model is designed to test the component Flow1D2ph when used as a condenser.
This model represent the fluid side of a condenser with an applied external heat flow. The operating fluid is water.
During the simulation, the inlet specific enthalpy and heat flux are changed, while maintaining the inlet flowrate constant:

  • t=0 s. The initial state of the water is superheated vapour.
  • t=10 s. Ramp increase of the heat flow extracted from the component. The steam condenses, causing a reduction of pressure and a flow rate transient decrease. At the end of the transient the outlet fluid is in subcooled liquid state.
  • t=300 s. Step increase of the inlet enthalpy
  • t=400 s. The heat flow is brought back to zero. The fluids evaporates, causing an increase of pressure and a surge of flow rate at the outlet..

Simulation Interval = [0...600] sec
Integration Algorithm = DASSL
Algorithm Tolerance = 1e-9

Parameters

TypeNameDefaultDescription
RealpiModelica.Constants.pi
IntegerNnodes10
SI.LengthLhex10
SI.DiameterDhex0.06
SI.Thicknessthhex0
SI.RadiusrhexDhex/2
SI.LengthomegahexDhex
SI.AreaAhexpi*rhex^2
SI.PerUnitCfhex0.005

Components

TypeNameDefaultDescription
SI.MassMhexMass in the heat exchanger
SI.MassMbalMass resulting from the mass balance
SI.MassMerrMass balance error
Water.Flow1DFV2phhex
ThermoPower.Water.ValveLinvalve
Thermal.HeatSource1DFVheatSource
ThermoPower.Water.SinkPressureSink
Modelica.Blocks.Sources.RamphIn
Modelica.Blocks.Sources.RampextPower
ThermoPower.Water.SourceMassFlowSource
Modelica.Blocks.Sources.RampextPower2
Modelica.Blocks.Math.AddAdd1
Modelica.Blocks.Sources.RampxValve
Systemsystem

Contents

NameDescription
Medium

Revisions