modelTestWaterFlow1DFV_D

Test case for FluidPh.Flow1DFV

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

Information

The model is designed to test the component FluidPh.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

TypeNameDefaultDescription
IntegerNnodes5number of Nodes
IntegerNt10number of tubes in parallel
SI.LengthLhex10total length
SI.DiameterDihex0.02internal diameter
SI.RadiusrhexDihex/2internal radius
SI.LengthomegahexModelica.Constants.pi*Dihexinternal perimeter
SI.AreaAhexModelica.Constants.pi*rhex^2internal cross section
RealCfhex0.005friction coefficient
SI.MassFlowRatewhex1e-2nominal mass flow rate
SI.Pressurephex0.2e5initial pressure
SI.SpecificEnthalpyhs2.971e6initial specific enthalpy

Components

TypeNameDefaultDescription
RealgammaMedium.specificHeatCapacityCp(hex.fluidState[1])/Medium.specificHeatCapacityCv(hex.fluidState[1])cp/cv
RealdMtot_dphex.Mtot/(hex.p*gamma)compressibility
Realdw_dpvalve.Kvsensitivity of valve flow to pressure
SI.TimetaudMtot_dp/dw_dptime constant of pressure transient
FluidPh.Flow1DFVhex
ThermoPower.FluidPh.SourceMassFlowMassFlowRateSource
ThermoPower.FluidPh.SinkPressureFluidSink
ThermoPower.FluidPh.ValveLinvalve
Modelica.Blocks.Sources.StepMassFlowRateStep
Modelica.Blocks.Sources.ConstantConstant1
Thermal.HeatSource1DFVheatSource
Modelica.Blocks.Sources.ConstantExtPower
FluidPh.SensPsensP
Systemsystem

Contents

NameDescription
Medium

Revisions