Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Using the if else condition in COMSOL

Mekap Subhasish Pattanaik

Please login with a confirmed email address before reporting spam

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

1 Reply Last Post Feb 8, 2017, 9:23 a.m. EST
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago Feb 8, 2017, 9:23 a.m. EST
Hello Mekap,
See my post in this thread:
www.comsol.com/community/forums/general/thread/103901
Best,
Jeff
Hello Mekap, See my post in this thread: https://www.comsol.com/community/forums/general/thread/103901 Best, Jeff

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.