A finite element analysis of an electromagnetic flow control valve