modelCRate

Controlled rate element

Information

This is the System Dynamics controlled restricted Rate element, whereby the rate itself is determined by a single variable in its laundry list. This element is a restricted rate element with the additional feature that the upstream level can control the flow by telling it that it is empty, and that the downstream level can control the flow by telling it that it is full. This is accomplished by two Boolean control signals from the upstream and downstream levels to the rate element.

The controlled rate element must be placed between two controlling levels.

The model contains a dissipative loss of enthalpy (but not mass) to the environment. Mass is always conserved. By attaching an R element to a 1 junction, we guarantee that the mass flow is not affected at all by the dissipative term. Only enthalpy is being dissipated.

Parameters

TypeNameDefaultDescription
RealinfModelica.Constants.inf
RealminFlow0Smallest allowed flow
RealmaxFlowinfLargest allowed flow
RealR00Specific enthalpy of dissipation

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputuSignal inflow variable
Modelica.Blocks.Interfaces.BooleanInputs1Control signal
Modelica.Blocks.Interfaces.BooleanInputs2Control signal
BondLib.Interfaces.BondConBondCon1Mass and power flow
BondLib.Interfaces.BondConBondCon2Mass and power flow

Components

TypeNameDefaultDescription
Realrate
Modelica.Blocks.Nonlinear.LimiterLimiter1
Modelica.Blocks.Logical.SwitchSwitch1
Modelica.Blocks.Sources.ConstantConst1
Modelica.Blocks.Logical.Andand1
Bonds.eBondB1
Bonds.eBondB3
Bonds.fBondB2
BondLib.Sources.mSfmSfFlow source
Junctions.J1p4j1p4_1
Bonds.eBondB4
Passive.RR1