ResistorTableQp

    ResistorTableQp

Library

HydraulicsByFluidon/Components/Resistors

Description

The component ResistorTableQp is a model of a flow resistance. It is parameterized by a 1D look-up 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). 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 or can be given manually in the dialog. If the parameter Table is provided by file is set to false, the datapoints from Manually provided look-up table will be used. If it is set to true, the table from the text file will be utilized. 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. 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. table1D) and its dimensions in brackets (e. g. (9,2)). Multiple tables can be defined in the same text file. The table declaration is followed by the actual data. The first column of the table represents the input of the 1D table, whereas the second column lists the corresponding output values. The input values of the table must be arranged in increasing order. The component interpolates linearly between the listed input values. More information regarding the format of tables can be found at CombiTable1Ds.

Parameters

ResistorTableQp_0

NameLabelDescriptionData TypeValid Values

mo_tableFromFile

tableFromFile

Table is provided by file

Scalar

true
false

mo_fileName

fileName

File where look-up table is stored

String

mo_tableName

tableName

Table name on file

String

mo_manualTable

manualTable

Manually provided look-up table

Matrix

mo_ReferenceDensity

ReferenceDensity

Reference density

Scalar

mo_InputMax

InputMax

Scalar

mo_eps

eps

Scalar

ResistorTableQp_1

NameLabelDescriptionData TypeValid Values

mo_forwardFluidProperties

forwardFluidProperties

Forward fluid properties between ports

Scalar

true
false

ResistorTableQp_2

NameLabelDescriptionData TypeValid Values

mo_volumeFlowA

volumeFlowA

volumeFlowA

Structure

mo_volumeFlowA/fixed

fixed

Cell of scalars

true
false

mo_volumeFlowA/start

start

Cell of scalars

mo_volumeFlowB

volumeFlowB

volumeFlowB

Structure

mo_volumeFlowB/fixed

fixed

Cell of scalars

true
false

mo_volumeFlowB/start

start

Cell of scalars

mo_dp

dp

dp

Structure

mo_dp/fixed

fixed

Cell of scalars

true
false

mo_dp/start

start

Cell of scalars

Ports

NameTypeDescriptionIO TypeNumber

fluidPortA

implicit

Hydraulic port A

input

1

fluidPortB

implicit

Hydraulic port B

input

2