I am simulating for the subsequent application and removal of magnetic field to magnetic materials to check for the increase and decrease of magnetization. I want to repeat the above steps with respect to time. That means I want to plot magnetization vs time but at the same time apply the switching condition on the magnetic field between Hmin and Hmax. I want to implement the if else condition on time as

If, time/10 is even, magnetic field H=Hmin

If, time/10 is odd, magnetic field H=Hmax

How to do this.

Any suggestion???

Thanks,

Subhasish

More Mekap Subhasish Pattanaik's questions See All
Similar questions and discussions