Main Content

Solenoid Valve (IL)

Solenoid valve in an isothermal liquid system

Since R2023a

  • Solenoid valve block icon

Libraries:
Simscape / Fluids / Isothermal Liquid / Valves & Orifices / Directional Control Valves

Description

The Solenoid Valve (IL) block models flow through a solenoid valve in an isothermal liquid network. The valve consists of a two-way directional control valve with a solenoid actuator. The physical signal at port S controls the solenoid. When the signal at port S is above 0.5, the solenoid turns on and the valve opens. When the signal at port S falls below 0.5, the solenoid turns off, closing the valve.

A solenoid valves consists of a valve body with a spring-loaded plunger that is operated by an electric solenoid. When the solenoid is on, the magnetic force lifts the spool, allowing fluid to flow. When the solenoid is off, the spring pushes the plunger back in place, stopping flow. The block does not model the mechanics of the solenoid explicitly, but characterizes the opening and closing of the valve using the opening and closing switching times.

Opening Dynamics

The block assumes that the solenoid behaves as a resistor-inductor series circuit, represented as

V=iR+Lit,

where:

  • V is the voltage across solenoid inductor.

  • R is the resistance of the solenoid inductor.

  • L is the inductance of the solenoid.

  • i is the current through the solenoid inductor.

The solenoid generates a force proportional to the current squared, Fmagi2.

The expression for the cross-sectional area of the valve, A(t), depends on whether the valve is opening or closing. When the valve is opening,

A(t)=AmaxAleak7(e2tt0τopen8ett0τopen)+Amaxt0=tstart+log(4167AmaxA0AmaxAleak)τopen.

When the valve is closing,

A(t)=(AmaxAleak)ett0τclose+Aleakt0=tstart+log(A0AleakAmaxAleak)τclose,

where:

  • Amax is the value of the Maximum opening area parameter.

  • Aleak is the value of the Leakage area parameter.

  • tstart is the time that the solenoid turns on or off.

  • A0 is the valve area at the time the solenoid turns on or off.

  • τopen=tswitchopenlog(415.3), where tswitchopen is the value of the Opening switching time parameter.

  • τclose=tswitchcloselog(0.1), where tswitchclose is the value of the Closing switching time parameter.

Switching Time

The block characterizes the solenoid valve by using the valve opening and closing switching times specified by the Opening switching time and Closing switching time parameters, respectively. The Opening switching time parameter is the time from the solenoid being turned on to the flow rate rising to 90% of the way between its maximum and minimum values.

Graph showing the increasing valve area vs time when the valve is opening. When the time reaches the opening switching time, the valve area begins to level off.

The Closing switching time parameter is the time from the solenoid being turned off to the flow rate falling to 10% of the way between its maximum and minimum values.

Graph showing the decreasing valve area vs time when the valve is closing. When the time reaches the closing switching time, the valve area begins to level off.

Assumptions and Limitations

  • The maximum force of the solenoid is the same as the force generated by the spring. The block does not include a hard stop.

  • The damping inside the solenoid and the pressure flow forces are negligible.

  • The spool is balanced.

Ports

Input

expand all

Physical signal that controls the valve. When the signal at port S is above 0.5, the solenoid turns on and the valve opens. When the signal at port S falls below 0.5 the solenoid turns off, and the valve closes.

Conserving

expand all

Liquid entry or exit port.

Liquid entry or exit port.

Parameters

expand all

Whether the initial position of the valve is open or closed.

Time from the solenoid turning on to the flow rate reaching 90% of the way between its maximum and minimum values.

Time from the solenoid turning off to the flow rate falling to 10% of the way between its maximum and minimum values.

Cross-sectional area of the valve in the fully open position.

Sum of all the gaps when the valve is in the fully closed position. The block saturates any valve area smaller than this value to the specified leakage area. The leakage area contributes to numerical stability by maintaining continuity in the flow.

Cross-sectional area at the entry and exit ports A and B. The block uses this area in the pressure-flow rate equation that determines the mass flow rate through the valve.

Correction factor that accounts for discharge losses in theoretical flows.

Upper Reynolds number limit for laminar flow through the valve.

Whether the block accounts for pressure increase when fluid flows from a region of smaller cross-sectional area to a region of larger cross-sectional area.

References

[1] Zhang, X., Lu, Y., Li, Y. Zhang, C., and Wang, R. “Numerical calculation and experimental study on response characteristics of pneumatic solenoid valves.” Measurement and control 22 (9-10) (2019): 1382-1393.

[2] Zhang, J., Liu, P., Fan, L., and Deng, Y. “Analysis on Dynamic Response Characteristics of High-Speed Solenoid Valve for Electronic control Fuel Injection System.” Mathematical Problems in Engineering (2020).

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2023a