Hi Varun, there are several ways to do this, depending on yout study type. If you are running a stationary study, it is probably the easiest to define some parameter, say "mag_on", by which you will multiply any physical quantity that generates your magnetic field in the first place (e.g. current through a coil I_coil = I0*mag_on or magnetic moment of a permanent magnet M = M0*mag_on). Then you just run a parametric sweep for two values of mag_on, 0 and 1.
If you are running a time-dependent study and want to switch your magnetic field on and off at certain times, it is best to define a global function "mag_on()" which will have time as the only input parameter, 0 as the lower bound and 1 as the upper bound. Then again, you multiply the quantity that leads to the generation of your magnetic field by this function, e.g. I = I0*mag_on(t[1/s]) or M = M0*mag_on(t[1/s]). Hope this helps
Hi Varun, there are several ways to do this, depending on yout study type. If you are running a stationary study, it is probably the easiest to define some parameter, say "mag_on", by which you will multiply any physical quantity that generates your magnetic field in the first place (e.g. current through a coil I_coil = I0*mag_on or magnetic moment of a permanent magnet M = M0*mag_on). Then you just run a parametric sweep for two values of mag_on, 0 and 1.
If you are running a time-dependent study and want to switch your magnetic field on and off at certain times, it is best to define a global function "mag_on()" which will have time as the only input parameter, 0 as the lower bound and 1 as the upper bound. Then again, you multiply the quantity that leads to the generation of your magnetic field by this function, e.g. I = I0*mag_on(t[1/s]) or M = M0*mag_on(t[1/s]). Hope this helps