Here is a solenoid valve. It is a normally closed, which is mean, it is normally closed the valve. Vice versa, there is also normally open, which is mean, it is normally open the valve until it supplied with electric power to pull the rod. This type of solenoid available DC and AC current source.
What my concern here are how it work? How do I calculate its power requirement (Voltage, current), and its output power to force or to pull the rod so it close or open the valve as I explained above. What should be calculate here, is it B (magnetic field), or F (force)? And how to calculate it?

