ResistorTableQpx

    ResistorTableQpx

Library

HydraulicsByFluidon/Components/Resistors

Description

The component ResistorTableQpx is a model of an adjustable flow resistance. It is parameterized by a 2D table which provides the volumetric flow rate (counted positive for flow from port A to port B) as a function of pressure drop (difference between pressures ports A and B) and input signal. The component is predestined for integration of measured data into a simulation model.

Since the component calculates a mass flow rate, the user has to enter a Reference density which matches the density at which the flow rate was determined.

The look-up table is provided by importing a text file. The text file must follow a specific syntax such that it can be read by Modelica. The input pressure difference (provided in Pa) must cover negative as well as positive values if the resistor should be used for both flow directions. Both the input pressure difference and the input signal must be arranged in increasing order. The resulting flow rate has to be provided in m³/s. An example for a properly formatted text file with two tables is given in the figure below:

A table is declared by its datatype (e. g. double), followed by the table name (e. g. table2D) and its dimensions in brackets (e. g. (4,4)). Multiple tables can be defined in the same text file. The table declaration is followed by the actual data. Except for the first matrix element which has to be equal to 0, the first column of the table represents the pressure drop, whereas the first row corresponds to the input signal. All pressure drop and input values must be arranged in increasing order. The component interpolates linearly between the listed values. More information regarding the formatting of tables can be found at CombiTable2D.

Parameters

ResistorTableQpx_0

NameLabelDescriptionData TypeValid Values

mo_fileName

fileName

File where look-up table is stored

String

mo_tableName

tableName

Table name on file

String

mo_ReferenceDensity

ReferenceDensity

Reference density

Scalar

mo_dp

dp

dp

Structure

mo_dp/fixed

fixed

Cell of scalars

true
false

mo_dp/start

start

Cell of scalars

mo_InputMax

InputMax

Scalar

ResistorTableQpx_1

NameLabelDescriptionData TypeValid Values

mo_forwardFluidProperties

forwardFluidProperties

Forward fluid properties between ports

Scalar

true
false

ResistorTableQpx_2

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'volumeFlowA'
'volumeFlowB'
'fluidId'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

fluidPortA

implicit

Hydraulic port A

input

1

fluidPortB

implicit

Hydraulic port B

input

2

u

implicit

input

3

See Also