modelTestWaterFlow1DFV_D
Test case for Water.Flow1DFV
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
The model is designed to test the component Water.Flow1DFV (fluid side of a heat exchanger, finite volumes).
This model is designed to the test compressibility effects. The operating fluid is superheated vapour; the heat flow entering the heat exchanger is set to zero.
At time t = 1 the inlet flow rate undergoes a step increase; the pressure follows a first order transient with time constant tau.
Simulation Interval = [0...6] sec
Integration Algorithm = DASSL
Algorithm Tolerance = 1e-6
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | Nnodes | 5 | number of Nodes |
| Integer | Nt | 10 | number of tubes in parallel |
| Modelica.SIunits.Length | Lhex | 10 | total length |
| Modelica.SIunits.Diameter | Dihex | 0.02 | internal diameter |
| Modelica.SIunits.Radius | rhex | Dihex/2 | internal radius |
| Modelica.SIunits.Length | omegahex | Modelica.Constants.pi*Dihex | internal perimeter |
| Modelica.SIunits.Area | Ahex | Modelica.Constants.pi*rhex^2 | internal cross section |
| Real | Cfhex | 0.005 | friction coefficient |
| Modelica.SIunits.MassFlowRate | whex | 1e-2 | nominal mass flow rate |
| Modelica.SIunits.Pressure | phex | 0.2e5 | initial pressure |
| Modelica.SIunits.SpecificEnthalpy | hs | 2.971e6 | initial specific enthalpy |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | gamma | Medium.specificHeatCapacityCp(hex.fluidState[1])/Medium.specificHeatCapacityCv(hex.fluidState[1]) | cp/cv |
| Real | dMtot_dp | hex.Mtot/(hex.p*gamma) | compressibility |
| Real | dw_dp | valve.Kv | sensitivity of valve flow to pressure |
| SI.Time | tau | dMtot_dp/dw_dp | time constant of pressure transient |
| Water.Flow1DFV | hex | ||
| ThermoPower.Water.SourceMassFlow | MassFlowRateSource | ||
| ThermoPower.Water.SinkPressure | FluidSink | ||
| ThermoPower.Water.ValveLin | valve | ||
| Modelica.Blocks.Sources.Step | MassFlowRateStep | ||
| Modelica.Blocks.Sources.Constant | Constant1 | ||
| Thermal.HeatSource1DFV | heatSource | ||
| Modelica.Blocks.Sources.Constant | ExtPower | ||
| Water.SensP | sensP | ||
| System | system |
Contents
| Name | Description |
|---|---|
Revisions
- 18 Sep 2013 by Francesco Casella:
Updated to new FV structure. Updated parameters. - 1 Oct 2003 by Francesco Schiavo:
First release.