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.
Expression error
Posted Feb 7, 2019, 1:57 p.m. EST Electromagnetics, Low-Frequency Electromagnetics, Semiconductor Devices Version 5.3a 1 Reply
Please login with a confirmed email address before reporting spam
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?