ResistorTableAx

    ResistorTableAx

Library

HydraulicsByFluidon/Components/Resistors

Description

The component ResistorTableAx is a model of a flow resistance that behaves like an orifice.

Based on the parameter Flow coefficient alphaD and a look-up table for the Cross-sectional area as a function of the input signal, the flow rate is calculated according to the formula given below:

The relationship between input signal and Cross-sectional area of the resistor is described by a 1D look-up table. 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. An example for a properly formatted text file with input signal and output area is given in the figure below:

A table is declared by its datatype (e. g. double), followed by the table name (e. g. tab1) and its dimensions in brackets (e. g. (5,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 output of the table must be the cross-sectional area (in m²). The component interpolates linearly between the listed input values. More information regarding the format of tables can be found in the component CombiTable1Ds.

Parameters

ResistorTableAx_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_alphaD

alphaD

Flow coefficient alphaD

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

ResistorTableAx_1

NameLabelDescriptionData TypeValid Values

mo_forwardFluidProperties

forwardFluidProperties

Forward fluid properties between ports

Scalar

true
false

ResistorTableAx_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'
'InputArea'

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