modelTestGasFlow1DFV_A

Test case for Gas.Flow1DFV

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

Information

The model is designed to test the component Gas.Flow1DFV (fluid side of a heat exchanger, finite volumes). A uniform prescribed heat flux is applied to the lateral boundary. The working fluid is pure nitrogen.

The model starts at steady state.

  • At t = 10 s, step variation of the temperature of the fluid entering the heat exchanger. The temperature change is propagated at the outlet with a delay approximately equal to the residence time
  • At t = 20 s, a thermal power flow W is applied to the heat exchanger lateral surface. The outlet temperature undergoes a ramp change, whose duration is approximately equal to the residence time, and whose amplitude is equal to W/(whex*cp)
  • At t = 50 s, step reduction of the outlet valve opening

Simulation Interval = [0...80] sec

Integration Algorithm = DASSL

Algorithm Tolerance = 1e-6

Parameters

TypeNameDefaultDescription
IntegerNnodes10number of Nodes
SI.LengthLhex200total 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.MassFlowRatewhex0.05nominal (and initial) mass flow rate
SI.Pressurephex3e5initial pressure
SI.TemperatureTinhex300initial inlet temperature
SI.TemperatureTouthex300initial outlet temperature
SI.EnergyFlowRateW500height of power step

Components

TypeNameDefaultDescription
RealgammaMedium.specificHeatCapacityCp(hex.gas[1].state)/Medium.specificHeatCapacityCv(hex.gas[1].state)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
SI.MassMhexMass in the heat exchanger
SI.MassMbalMass resulting from the mass balance
SI.MassMerrMass balance error
Gas.SourceMassFlowSource
Gas.SinkPressureSink
Gas.SensTSensT1
Gas.SensTSensT2
Gas.Flow1DFVhex
Gas.ValveLinvalve
Thermal.HeatSource1DFVheatSource
Modelica.Blocks.Sources.StepStep1
Modelica.Blocks.Sources.StepStep4
Modelica.Blocks.Sources.StepStep2
Systemsystem

Contents

NameDescription
Medium