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.

Error correction

Please login with a confirmed email address before reporting spam

During simulation of grating structure, we got error: Division by zero. - Function: / Failed to evaluate expression. - Expression: abs(comp1.ewfd.port1.Pin/comp1.ewfd.Pmode_1) Failed to evaluate variable. - Variable: comp1.ewfd.tEmodex_1 - Defined as: sqrt(abs(comp1.ewfd.port1.Pin/comp1.ewfd.Pmode_1))comp1.ewfd.tE0modex_1 Failed to evaluate expression. - Expression: nojac(comp1.ewfd.tEmodex_1) Failed to evaluate variable. - Variable: comp1.ewfd.PortConstrx - Defined as: (1+if((abs(comp1.ewfd.beta_1)>((1.0E-7comp1.ewfd.intport1(comp1.ewfd.k))/comp1.ewfd.Area_1))&&((abs(arg(comp1.ewfd.beta_1)unit_rad_cf)<=(0.25pi))||(abs(arg(comp1.ewfd.beta_1)unit_rad_cf)>=(pi0.75))),comp1.ewfd.S1x,0))*nojac(comp1.ewfd.tEmodex_1) Failed to evaluate expression. - Expression: comp1.ewfd.tEx-comp1.ewfd.PortConstrx

how to solved it?


1 Reply Last Post 12.08.2023, 18:04 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 12.08.2023, 18:04 GMT-4

This (admittedly not very helpful) error message typically appears when something about the simulation is not completely specified.

For more detailed help post your (reduced) model and perhaps someone who also has that module licensed can help out.

This (admittedly not very helpful) error message typically appears when something about the simulation is not completely specified. For more detailed help post your (reduced) model and perhaps someone who also has that module licensed can help out.

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.