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_InputMax

InputMax

Scalar

mo_eps

eps

Scalar

ResistorTableAx_1

NameLabelDescriptionData TypeValid Values

mo_forwardFluidProperties

forwardFluidProperties

Forward fluid properties between ports

Scalar

true
false

ResistorTableAx_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

mo_u

u

u

Structure

mo_u/fixed

fixed

Cell of scalars

true
false

mo_u/start

start

Cell of scalars

Ports

NameTypeDescriptionIO TypeNumber

fluidPortA

implicit

Hydraulic port A

input

1

fluidPortB

implicit

Hydraulic port B

input

2

u

implicit

input

3