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

command_diameter_4_2_A $—$ Interface for geometry calculation for 4-port, 2- or 3-position spool

Class used to calculate the commanded diameter for the Spool 4 2 A 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 $\left\{\begin{array}{cc}\left\{{d}_{\mathrm{PA}}=\mathrm{noEvent}\left(\left\{\begin{array}{cc}1& {\mathrm{spool}}_{\mathrm{position}}<\frac{1}{4}\\ \left\{\begin{array}{cc}0& \frac{1}{2}\le {\mathrm{spool}}_{\mathrm{position}}\\ 2-4{\mathrm{spool}}_{\mathrm{position}}& \mathrm{otherwise}\end{array}\right\& \mathrm{otherwise}\end{array}\right\\right),{d}_{\mathrm{PB}}=\mathrm{noEvent}\left(\left\{\begin{array}{cc}1& \frac{3}{4}<{\mathrm{spool}}_{\mathrm{position}}\\ \left\{\begin{array}{cc}0& {\mathrm{spool}}_{\mathrm{position}}\le \frac{1}{2}\\ -2+4{\mathrm{spool}}_{\mathrm{position}}& \mathrm{otherwise}\end{array}\right\& \mathrm{otherwise}\end{array}\right\\right)\right\}& \mathrm{reduceEvents}\\ \left\{{d}_{\mathrm{PA}}=\left\{\begin{array}{cc}1& {\mathrm{spool}}_{\mathrm{position}}<\frac{1}{4}\\ \left\{\begin{array}{cc}0& \frac{1}{2}\le {\mathrm{spool}}_{\mathrm{position}}\\ 2-4{\mathrm{spool}}_{\mathrm{position}}& \mathrm{otherwise}\end{array}\right\& \mathrm{otherwise}\end{array}\right\,{d}_{\mathrm{PB}}=\left\{\begin{array}{cc}1& \frac{3}{4}<{\mathrm{spool}}_{\mathrm{position}}\\ \left\{\begin{array}{cc}0& {\mathrm{spool}}_{\mathrm{position}}\le \frac{1}{2}\\ -2+4{\mathrm{spool}}_{\mathrm{position}}& \mathrm{otherwise}\end{array}\right\& \mathrm{otherwise}\end{array}\right\\right\}& \mathrm{otherwise}\end{array}\right\$ ${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{AT}\left(\mathrm{diam}\right)}={d}_{\mathrm{PB}}{d}_{\mathrm{AT}\left(\mathrm{max}\right)}{\mathrm{flow}}_{\mathrm{reduction}}+{d}_{\mathrm{leak}}$ ${\mathrm{mor}}_{\mathrm{BT}\left(\mathrm{diam}\right)}={d}_{\mathrm{PA}}{d}_{\mathrm{BT}\left(\mathrm{max}\right)}{\mathrm{flow}}_{\mathrm{reduction}}+{d}_{\mathrm{leak}}$ ${\mathrm{mor}}_{\mathrm{PA}\left(\mathrm{diam}\right)}={d}_{\mathrm{PA}}{d}_{\mathrm{PA}\left(\mathrm{max}\right)}{\mathrm{flow}}_{\mathrm{reduction}}+{d}_{\mathrm{leak}}$ ${\mathrm{mor}}_{\mathrm{PB}\left(\mathrm{diam}\right)}={d}_{\mathrm{PB}}{d}_{\mathrm{PB}\left(\mathrm{max}\right)}{\mathrm{flow}}_{\mathrm{reduction}}+{d}_{\mathrm{leak}}$

Variables

 Name Value Units Description Modelica ID ${d}_{\mathrm{PA}}$ $m$ d_P_A ${d}_{\mathrm{PB}}$ $m$ d_P_B ${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

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{leak}}$ $1.67·{10}^{-5}$ $m$ Diameter of equivalent orifice to model leakage of closed valve dleak

 Name Default Units Description Modelica ID reduce events $\mathrm{true}$ If true, reduce event generation reduceEvents