SwitchingValve22
Library
HydraulicsByFluidon/Components/Valves/DirectionalValves
Description
The component SwitchingValve22 is a model of a 2-way valve which will open for input signals equal or above Input threshold to open the valve.
Opening and closing times of the valve are set by Time to close 100 % - 0 %/Time to open 0 % - 100 %, the movement is linear with constant speed until the respective end stop is reached.
The valve stroke can be shifted by Relative overlap. In accordance with common valve parameters a negative overlap will open the valve edge.
The default relationship between input signal and flow rate of the metering edge 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 metering edge. 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 CombiTable1D.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_SwitchingThreshold | SwitchingThreshold | input threshold to open the valve | Scalar | |
mo_Topen | Topen | Time to open 0 % - 100 % | Scalar | |
mo_Tclose | Tclose | Time to close 100 % - 0 % | Scalar | |
mo_enableStrokeOut | enableStrokeOut | Enable Stroke Output | Number | 0 |
mo_inputMaxPartial | inputMaxPartial | Scalar | ||
mo_gradientOpen | gradientOpen | Scalar | ||
mo_gradientClose | gradientClose | Scalar | ||
mo_deadVolume | deadVolume | Dead volume at ports | Scalar | |
mo_initType | initType | Type of initialization (1: no init, 2: steady state, 3/4: initial output) | Structure | |
mo_initType/choice1 | No initialization (start values are used as guess values with fixed=false) | Number | 0 | |
mo_initType/choice2 | Steady state initialization (derivatives of states are zero) | Number | 0 | |
mo_initType/choice3 | Initialization with initial states | Number | 0 | |
mo_initType/choice4 | Initialization with initial outputs (and steady state of the states if possible) | Number | 0 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_NominalVolumeFlow | NominalVolumeFlow | Nominal volume flow | Scalar | |
mo_NominalPressureDifference | NominalPressureDifference | Nominal pressure difference | Scalar | |
mo_ReferenceDensity | ReferenceDensity | Reference density for volume flow and pressure difference | Scalar | |
mo_Overlap | Overlap | Valve edge relative overlap | Scalar | |
mo_QFactorPA | QFactorPA | Factor for edge specific flow adjustment | 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 | |
mo_ZeroVolumeFlow | ZeroVolumeFlow | Volume flow due to leakage | Scalar | |
mo_ZeroFlowPressureDifference | ZeroFlowPressureDifference | Pressure difference for leakage flow | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_valveStrokeOut | valveStrokeOut | valveStrokeOut | Structure | |
mo_valveStrokeOut/fixed | fixed | Cell of scalars | true | |
mo_valveStrokeOut/start | start | Cell of scalars | ||
mo_pP | pP | pP | Structure | |
mo_pP/fixed | fixed | Cell of scalars | true | |
mo_pP/start | start | Cell of scalars | ||
mo_pA | pA | pA | Structure | |
mo_pA/fixed | fixed | Cell of scalars | true | |
mo_pA/start | start | Cell of scalars | ||
mo_Input | Input | Input | Structure | |
mo_Input/fixed | fixed | Cell of scalars | true | |
mo_Input/start | start | Cell of scalars | ||
mo_stroke | stroke | stroke | Structure | |
mo_stroke/fixed | fixed | Cell of scalars | true | |
mo_stroke/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
portA | implicit | Hydraulic port A | input | 1 |
portP | implicit | Hydraulic port P | input | 2 |
Input | implicit | Set value of valve position | input | 3 |
Port 4 | implicit | Valve Stroke | output | mo_enableStrokeOut |