After running a simulation for a 3D structure with a magnetic field going in the z (vertical) direction, COMSOL returns the following error: Division by zero. - Function: / Failed to evaluate expression. - Expression: abs(try_catch(comp1.emw.Pin,1)/comp1.emw.Pmode_1) Failed to evaluate variable. - Variable: comp1.emw.tEmodex_1 - Defined as: sqrt(abs(try_catch(comp1.emw.Pin,1)/comp1.emw.Pmode_1))*comp1.emw.tE0modex_1 Failed to evaluate expression. - Expression: comp1.emw.tEdownx-comp1.emw.tEupx+comp1.emw.tEmodex_1
When I change the direction of the magnetic field to the y direction, the simulation runs. However, I need it in the z one and I cannot understand from the error message what it is that I have to change. Anyone can help?