Magnetic phase transition in antiferromagnetic materials under high pressure