For transport phenomena, flux is a vector quantity, describing the magnitude and direction of the flow of a substance or property. In electromagnetism, flux is a scalar quantity, defined as the surface integral of the component of a vector field perpendicular to the surface at each point. As will be made clear, the easiest way to relate the two concepts is that the surface integral of a flux according to the first definition is a flux according to the second definition.