Buildings.Fluid.Delays

Package with delay models

Information

Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).

Package Content

NameDescription
Buildings.Fluid.Delays.DelayFirstOrder DelayFirstOrder Delay element, approximated by a first order differential equation
Buildings.Fluid.Delays.Examples Examples Collection of models that illustrate model use and test models


Buildings.Fluid.Delays.DelayFirstOrder Buildings.Fluid.Delays.DelayFirstOrder

Delay element, approximated by a first order differential equation

Buildings.Fluid.Delays.DelayFirstOrder

Information


This model approximates a transport delay using a first order differential equations.

The model consists of a mixing volume with two ports. The size of the mixing volume is such that at the nominal mass flow rate m_flow_nominal, the time constant of the volume is equal to the parameter tau.

The heat flux connector is optional, it need not be connnected.

Extends from Buildings.Fluid.MixingVolumes.MixingVolume (Mixing volume with inlet and outlet ports (flow reversal is allowed)).

Parameters

TypeNameDefaultDescription
replaceable package MediumPartialMediumMedium in the component
VolumeVV0Volume [m3]
Nominal condition
Timetau60Time constant at nominal flow [s]
MassFlowRatem_flow_nominal Mass flow rate [kg/s]
Assumptions
Dynamics
DynamicsenergyDynamicssystem.energyDynamicsFormulation of energy balance
DynamicsmassDynamicssystem.massDynamicsFormulation of mass balance
DynamicssubstanceDynamicsmassDynamicsFormulation of substance balance
DynamicstraceDynamicsmassDynamicsFormulation of trace substance balance
Heat transfer
Booleanuse_HeatTransferfalse= true to use the HeatTransfer model
replaceable model HeatTransferIdealHeatTransferWall heat transfer
Initialization
AbsolutePressurep_startMedium.p_defaultStart value of pressure [Pa]
Booleanuse_T_starttrue= true, use T_start, otherwise h_start
TemperatureT_startif use_T_start then system.T...Start value of temperature [K]
SpecificEnthalpyh_startif use_T_start then Medium.s...Start value of specific enthalpy [J/kg]
MassFractionX_start[Medium.nX]Medium.X_defaultStart value of mass fractions m_i/m [kg/kg]
ExtraPropertyC_start[Medium.nC]fill(0, Medium.nC)Start value of trace substances
ExtraPropertyC_nominal[Medium.nC]fill(1E-2, Medium.nC)Nominal value of trace substances. (Set to typical order of magnitude.)

Connectors

TypeNameDescription
VesselFluidPorts_bports[nPorts]Fluid inlets and outlets
HeatPort_aheatPort 

Modelica definition

model DelayFirstOrder 
  "Delay element, approximated by a first order differential equation"
  extends Buildings.Fluid.MixingVolumes.MixingVolume(final V=V0);

  parameter Modelica.SIunits.Time tau = 60 "Time constant at nominal flow";
  parameter Modelica.SIunits.MassFlowRate m_flow_nominal(min=0) 
    "Mass flow rate";

protected 
   parameter Modelica.SIunits.Volume V0 = m_flow_nominal*tau/rho_nominal 
    "Volume of delay element";
end DelayFirstOrder;

Automatically generated Fri May 06 14:11:50 2011.