A physical model for heterogeneous magnetic materials