Static ferromagnetic materials: from the microscopic to the mesoscopic scale