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

command_diameter_3_2_PAB $—$ Interface for a 3-port, 2-position spool

Interface Class used to calculate the commanded diameter for spools with three ports and two positions.

 Equations $\left\{\begin{array}{cc}\left\{{d}_{\mathrm{PA}}=\mathrm{noEvent}\left(\left\{\begin{array}{cc}1& {\mathrm{spool}}_{\mathrm{position}}<\frac{1}{2}\\ \left\{\begin{array}{cc}0& \frac{3}{4}\le {\mathrm{spool}}_{\mathrm{position}}\\ 3-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{1}{2}<{\mathrm{spool}}_{\mathrm{position}}\\ \left\{\begin{array}{cc}0& {\mathrm{spool}}_{\mathrm{position}}\le \frac{1}{4}\\ -1+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}{2}\\ \left\{\begin{array}{cc}0& \frac{3}{4}\le {\mathrm{spool}}_{\mathrm{position}}\\ 3-4{\mathrm{spool}}_{\mathrm{position}}& \mathrm{otherwise}\end{array}\right\& \mathrm{otherwise}\end{array}\right\,{d}_{\mathrm{PB}}=\left\{\begin{array}{cc}1& \frac{1}{2}<{\mathrm{spool}}_{\mathrm{position}}\\ \left\{\begin{array}{cc}0& {\mathrm{spool}}_{\mathrm{position}}\le \frac{1}{4}\\ -1+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{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

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{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