Demagnetization factor for a powder of randomly packed spherical particles