Magnetic properties of materials