IdealResistorVariableZFlow
Library
HydraulicsByFluidon/Components/Valves/Base
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_dp | dp | dp | Structure | |
mo_dp/fixed | fixed | Cell of scalars | true | |
mo_dp/start | start | Cell of scalars | ||
mo_rho | rho | rho | Structure | |
mo_rho/fixed | fixed | Cell of scalars | true | |
mo_rho/start | start | Cell of scalars | ||
mo_InputMax | InputMax | Scalar | ||
mo_resistorType | resistorType | Type of the resistor | Structure | |
mo_resistorType/choice1 | HydraulicsByFluidon.Types.TResistorTypes.Orifice | Number | 0 | |
mo_resistorType/choice2 | HydraulicsByFluidon.Types.TResistorTypes.Throttle | Number | 0 | |
mo_NominalVolumeFlow | NominalVolumeFlow | Nominal volume flow | Scalar | |
mo_NominalPressureDifference | NominalPressureDifference | Nominal pressure difference | Scalar | |
mo_ReferenceDensity | ReferenceDensity | Reference density | Scalar | |
mo_ZeroVolumeFlow | ZeroVolumeFlow | Volume flow due to leakage | Scalar | |
mo_ZeroFlowPressureDifference | ZeroFlowPressureDifference | Pressure difference for leakage flow | Scalar | |
mo_coefficient | coefficient | Scalar | ||
mo_conductance | conductance | Scalar | ||
mo_ZeroCoefficient | ZeroCoefficient | 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__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' | |
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
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 |