A handwheel attached to the valve stem or Yoke nut is rotated clockwise or counterclockwise to manually close or open a valve. This is how globe and gate valves are opened and closed. Automatic valves, such as safety valves, pressure-reducing valves, steam traps, check valves, and mechanical regulating valves, rely on the medium's energy to open and close the valve.