Rectangular ferromagnetic sample