Fundamentals of Magnetics