In HFSS, You can do by assigning magnetic bias to substrate with direction, you need and specify. You can give the value of the Bias a variable other way and do optemitric to this variable to see different values of magnetic field effect .Same procedure will be followed by CST.