Home : Support : Online Help : MapleSim Toolboxes : MapleSim Hydraulics Library from Modelon : Directional Control : Basic : Internal : ModelonHydraulics/DirectionalControl/Basic/Internal/command_diameter_4_2_X

command_diameter_4_2_X $—$ Interface for geometry calculation for 4-port, 2- or 3-position spool, with detailed geometry data

Class used to calculate the commanded diameter for the Spool 4 2 X component.

Events

There is a new boolean reduceEvents (selected by default) in the Parameters $\to$ Advanced section under the Properties tab ( ). Selecting reduceEvents lets the model use noEvents(expr) to generate fewer events for boolean expressions that should not generate events. In some cases the solver might reduce the stepsize too much and generate a lot of steps. If this happens, try clearing reduceEvents.

 Equations ${P}_{\mathrm{hyd}}=\mathrm{noEvent}\left(\left|{\mathrm{port}}_{\mathrm{flow}}{\mathrm{port}}_{\mathrm{pressure}}\right|\right)$ ${\mathrm{flow}}_{\mathrm{reduction}}=\mathrm{smooth}\left(0,\mathrm{noEvent}\left(\left\{\begin{array}{cc}1& {P}_{\mathrm{hyd}}<{P}_{\mathrm{max}}\\ 1-\frac{{\mathrm{coeff}}_{P}\left({P}_{\mathrm{hyd}}-{P}_{\mathrm{max}}\right)}{{P}_{\mathrm{max}}}& \mathrm{otherwise}\end{array}\right\\right)\right)$ ${\mathrm{mor}}_{\mathrm{AB}\left(\mathrm{diam}\right)}=\mathrm{spoolGeometry\left[5\right]}{d}_{\mathrm{AB}\left(\mathrm{max}\right)}{\mathrm{flow}}_{\mathrm{reduction}}+{d}_{\mathrm{leak}}$ ${\mathrm{mor}}_{\mathrm{AT}\left(\mathrm{diam}\right)}=\mathrm{spoolGeometry\left[3\right]}{d}_{\mathrm{AT}\left(\mathrm{max}\right)}{\mathrm{flow}}_{\mathrm{reduction}}+{d}_{\mathrm{leak}}$ ${\mathrm{mor}}_{\mathrm{BT}\left(\mathrm{diam}\right)}=\mathrm{spoolGeometry\left[4\right]}{d}_{\mathrm{BT}\left(\mathrm{max}\right)}{\mathrm{flow}}_{\mathrm{reduction}}+{d}_{\mathrm{leak}}$ ${\mathrm{mor}}_{\mathrm{PA}\left(\mathrm{diam}\right)}=\mathrm{spoolGeometry\left[1\right]}{d}_{\mathrm{PA}\left(\mathrm{max}\right)}{\mathrm{flow}}_{\mathrm{reduction}}+{d}_{\mathrm{leak}}$ ${\mathrm{mor}}_{\mathrm{PB}\left(\mathrm{diam}\right)}=\mathrm{spoolGeometry\left[2\right]}{d}_{\mathrm{PB}\left(\mathrm{max}\right)}{\mathrm{flow}}_{\mathrm{reduction}}+{d}_{\mathrm{leak}}$ ${\mathrm{mor}}_{\mathrm{PT}\left(\mathrm{diam}\right)}=\mathrm{spoolGeometry\left[6\right]}{d}_{\mathrm{PT}\left(\mathrm{max}\right)}{\mathrm{flow}}_{\mathrm{reduction}}+{d}_{\mathrm{leak}}$

Variables

 Name Value Units Description Modelica ID ${P}_{\mathrm{hyd}}$ $W$ Hydraulic power P_hyd

Connections

 Name Description Modelica ID ${\mathrm{spool}}_{\mathrm{position}}$ spool_position ${\mathrm{port}}_{\mathrm{flow}}$ port_flow ${\mathrm{port}}_{\mathrm{pressure}}$ port_pressure ${\mathrm{flow}}_{\mathrm{reduction}}$ flow_reduction ${\mathrm{mor}}_{\mathrm{PA}\left(\mathrm{diam}\right)}$ mor_P_A_commandedDiameter ${\mathrm{mor}}_{\mathrm{PB}\left(\mathrm{diam}\right)}$ mor_P_B_commandedDiameter ${\mathrm{mor}}_{\mathrm{AT}\left(\mathrm{diam}\right)}$ mor_A_T_commandedDiameter ${\mathrm{mor}}_{\mathrm{BT}\left(\mathrm{diam}\right)}$ mor_B_T_commandedDiameter $\mathrm{spoolGeometry}$ spoolGeometry ${\mathrm{mor}}_{\mathrm{AB}\left(\mathrm{diam}\right)}$ mor_A_B_commandedDiameter ${\mathrm{mor}}_{\mathrm{PT}\left(\mathrm{diam}\right)}$ mor_P_T_commandedDiameter

Parameters

General Parameters

 Name Default Units Description Modelica ID ${P}_{\mathrm{max}}$ $1.26·{10}^{5}$ $W$ Max. hydraulic power P_max ${\mathrm{coeff}}_{P}$ $10$ Influence of hydraulic power on flow rate coeff_P ${d}_{\mathrm{PA}\left(\mathrm{max}\right)}$ $m$ dmax_P_A ${d}_{\mathrm{PB}\left(\mathrm{max}\right)}$ $m$ dmax_P_B ${d}_{\mathrm{AT}\left(\mathrm{max}\right)}$ $m$ dmax_A_T ${d}_{\mathrm{BT}\left(\mathrm{max}\right)}$ $m$ dmax_B_T ${d}_{\mathrm{AB}\left(\mathrm{max}\right)}$ $m$ dmax_A_B ${d}_{\mathrm{PT}\left(\mathrm{max}\right)}$ $m$ dmax_P_T ${d}_{\mathrm{leak}}$ $1.67·{10}^{-5}$ $m$ Diameter of equivalent orifice to model leakage of closed valve dleak

Constant Parameters

 Name Default Units Description Modelica ID ${n}_{\mathrm{spool}}$ $6$ Number of control edges for spool geometry nSpool