a solenoid valve has two parts
A solenoid valve has two main parts: the solenoid and the valve. The solenoid converts electrical energy into mechanical energy which, in turn, opens or closes the valve mechanically. A Direct Acting valve has only a small flow circuit, shown within section E of this diagram (this section is mentioned below as a pilot valve). This Diaphragm Piloted Valve multiplies this small flow by using it to control the flow through a much larger orifice.
Solenoid valve may use metal seals or rubber seals, and may also have electrical interfaces to allow for easy control. A spring may be used to hold the valve opened or closed while the valve is not activated.
The diagram to the right shows the design of a basic valve. If we look at the top figure we can see the valve in its closed state. The water under pressure enters at A. B is an elastic diaphragm and above it is a weak spring pushing it down. The function of this spring is irrelevant for now as the valve would stay closed even without it. The diaphragm has a pinhole through its center which allows a very small amount of water to flow through it. This water fills the cavity C on the other side of the diaphragm so that pressure is equal on both sides of the diaphragm. While the pressure is the same on both sides of the diaphragm, the force is greater on the upper side which forces the valve shut against the incoming pressure. By looking at the figure we can see the surface being acted upon is greater on the upper side which results in greater force. On the upper side the pressure is acting on the entire surface of the diaphragm while on the lower side it is only acting on the incoming pipe. This results in the valve being securely shut to any flow and, the greater the input pressure, the greater the shutting force will be.