Field Calculations For Permanent Magnet Dipole