Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics

Functions for valve characteristics

Package Content

NameDescription
Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.baseFun baseFun Base class for valve characteristics
Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.linear linear Linear characteristic
Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.one one Constant characteristic
Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.quadratic quadratic Quadratic characteristic
Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.equalPercentage equalPercentage Equal percentage characteristic


Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.baseFun Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.baseFun

Base class for valve characteristics

Information

Extends from Modelica.Icons.Function (Icon for a function).

Inputs

TypeNameDefaultDescription
Realpos Opening position (per unit)

Outputs

TypeNameDescription
RealrcRelative flow coefficient (per unit)

Modelica definition

partial function baseFun "Base class for valve characteristics"
  extends Modelica.Icons.Function;
  input Real pos "Opening position (per unit)";
  output Real rc "Relative flow coefficient (per unit)";
end baseFun;

Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.linear Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.linear

Linear characteristic

Information

Extends from baseFun (Base class for valve characteristics).

Inputs

TypeNameDefaultDescription
Realpos Opening position (per unit)

Outputs

TypeNameDescription
RealrcRelative flow coefficient (per unit)

Modelica definition

function linear "Linear characteristic"
  extends baseFun;
algorithm 
  rc := pos;
end linear;

Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.one Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.one

Constant characteristic

Information

Extends from baseFun (Base class for valve characteristics).

Inputs

TypeNameDefaultDescription
Realpos Opening position (per unit)

Outputs

TypeNameDescription
RealrcRelative flow coefficient (per unit)

Modelica definition

function one "Constant characteristic"
  extends baseFun;
algorithm 
  rc := 1;
end one;

Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.quadratic Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.quadratic

Quadratic characteristic

Information

Extends from baseFun (Base class for valve characteristics).

Inputs

TypeNameDefaultDescription
Realpos Opening position (per unit)

Outputs

TypeNameDescription
RealrcRelative flow coefficient (per unit)

Modelica definition

function quadratic "Quadratic characteristic"
  extends baseFun;
algorithm 
  rc := pos*pos;
end quadratic;

Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.equalPercentage Modelica.Fluid.Valves.BaseClasses.ValveCharacteristics.equalPercentage

Equal percentage characteristic

Information


This characteristic is such that the relative change of the flow coefficient is proportional to the change in the opening position:

d(rc)/d(pos) = k d(pos).

The constant k is expressed in terms of the rangeability, i.e. the ratio between the maximum and the minimum useful flow coefficient:

rangeability = exp(k) = rc(1.0)/rc(0.0).

The theoretical characteristic has a non-zero opening when pos = 0; the implemented characteristic is modified so that the valve closes linearly when pos < delta.

Extends from baseFun (Base class for valve characteristics).

Inputs

TypeNameDefaultDescription
Realpos Opening position (per unit)
Realrangeability20Rangeability
Realdelta0.01 

Outputs

TypeNameDescription
RealrcRelative flow coefficient (per unit)

Modelica definition

function equalPercentage "Equal percentage characteristic"
  extends baseFun;
  input Real rangeability = 20 "Rangeability";
  input Real delta = 0.01;
algorithm 
  rc := if pos > delta then rangeability^(pos-1) else 
          pos/delta*rangeability^(delta-1);
end equalPercentage;

HTML-documentation generated by Dymola Sun Jan 17 21:12:16 2010.