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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | pi | Modelica.Constants.pi | |
| Integer | Nnodes | 10 | |
| SI.Length | Lhex | 10 | |
| SI.Diameter | Dhex | 0.06 | |
| SI.Thickness | thhex | 0 | |
| SI.Radius | rhex | Dhex/2 | |
| SI.Length | omegahex | Dhex | |
| SI.Area | Ahex | pi*rhex^2 | |
| SI.PerUnit | Cfhex | 0.005 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Mass | Mhex | Mass in the heat exchanger | |
| SI.Mass | Mbal | Mass resulting from the mass balance | |
| SI.Mass | Merr | Mass balance error | |
| Water.Flow1DFV2ph | hex | ||
| ThermoPower.Water.ValveLin | valve | ||
| Thermal.HeatSource1DFV | heatSource | ||
| ThermoPower.Water.SinkPressure | Sink | ||
| Modelica.Blocks.Sources.Ramp | hIn | ||
| Modelica.Blocks.Sources.Ramp | extPower | ||
| ThermoPower.Water.SourceMassFlow | Source | ||
| Modelica.Blocks.Sources.Ramp | extPower2 | ||
| Modelica.Blocks.Math.Add | Add1 | ||
| Modelica.Blocks.Sources.Ramp | xValve | ||
| System | system |
Contents
| Name | Description |
|---|---|
Revisions
- 7 Jan 2015 by Francesco Casella:
Updated to new FEM model. - 26 Jul 2007 by Francesco Casella:
Parameters updated. - 10 Dec 2005 by Francesco Casella:
Parameters updated. - 1 Oct 2003 by Francesco Schiavo:
First release.