IdealResistorVariable
Library
HydraulicsByFluidon/Components/Resistors
Description
The component IdealResistorVariable is a model of a flow resistance that behaves either as an orifice or a throttle, depending on the parameter setting.
Flow is adjusted via the input signal with nominal flow (as given by Nominal volume flow at Nominal pressure difference) corresponding to an input value of 1 (relative adjustment).
Both are parameterized by the parameters Nominal volume flow at Nominal pressure difference, measured with a fluid with Reference density.Throttle
Orifice
The default relationship between input signal and flow rate of the resistor is linear, but can be changed through the use of a 1D look-up table. The look-up table is provided either manually or by importing a text file. If the parameter Table is provided by file is set to false, the manually entered datapoints from Manually provided look-up table will be used. If it is set to true, the table Table name on file from the file File where look-up table is stored will be utilized.
The text file must follow a specific syntax such that it can be read by Modelica. The input values as well as the output values must lie within the range from 0 to 1. An output value of 1 (100 %) corresponds to a fully-opened resistor. 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. tab1) and its dimensions in brackets (e. g. (5,2)). As can be seen, 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 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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_InputMax | InputMax | Scalar | ||
mo_eps | eps | Scalar | ||
mo_resistorType | resistorType | Type of the resistor | Structure | |
mo_resistorType/choice1 | Orifice | Number | 0 | |
mo_resistorType/choice2 | Throttle | Number | 0 | |
mo_NominalVolumeFlow | NominalVolumeFlow | Nominal volume flow | Scalar | |
mo_NominalPressureDifference | NominalPressureDifference | Nominal pressure difference | Scalar | |
mo_ReferenceDensity | ReferenceDensity | Reference density | Scalar | |
mo_coefficient | coefficient | Scalar | ||
mo_conductance | conductance | Scalar | ||
mo_ZeroCoefficient | ZeroCoefficient | Scalar | ||
mo_ZeroVolumeFlow | ZeroVolumeFlow | Volume flow due to leakage | Scalar | |
mo_ZeroFlowPressureDifference | ZeroFlowPressureDifference | Pressure difference for leakage flow | Scalar | |
mo_inputMin | inputMin | Scalar | ||
mo_tableFromFile | tableFromFile | Table is provided by file | Scalar | true |
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 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_forwardFluidProperties | forwardFluidProperties | Forward fluid properties between ports | Scalar | true |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_volumeFlowA | volumeFlowA | volumeFlowA | Structure | |
mo_volumeFlowA/fixed | fixed | Cell of scalars | true | |
mo_volumeFlowA/start | start | Cell of scalars | ||
mo_volumeFlowB | volumeFlowB | volumeFlowB | Structure | |
mo_volumeFlowB/fixed | fixed | Cell of scalars | true | |
mo_volumeFlowB/start | start | Cell of scalars | ||
mo_dp | dp | dp | Structure | |
mo_dp/fixed | fixed | Cell of scalars | true | |
mo_dp/start | start | Cell of scalars | ||
mo_u | u | u | Structure | |
mo_u/fixed | fixed | Cell of scalars | true | |
mo_u/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
fluidPortA | implicit | Hydraulic port A | input | 1 |
fluidPortB | implicit | Hydraulic port B | input | 2 |
u | implicit | input | 3 |