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.

Constant eps

Please login with a confirmed email address before reporting spam

Greetings,

What does constant eps do when it is added to the source term (f) of a PDE? Does it help convergence?

Thanks.

Eric


2 Replies Last Post 2015年8月12日 GMT-4 13:57

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年8月12日 GMT-4 03:18
eps is sometimes needed to prevent error messages if a variable is raised to a non-integer power (like square root). As far as I know it does not do anything else.
eps is sometimes needed to prevent error messages if a variable is raised to a non-integer power (like square root). As far as I know it does not do anything else.

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年8月12日 GMT-4 13:57
Hi

"eps" is the smallest real number that added to "1.0" can be distinguished from "1.0" by the binary representation of a floating point real numbers.

It's a "clean" programming trick to avoid divisions by "0" mostly ... and is required only because the binary representation of Real number is very sparse and is limited in absolute and relative precision
--
Good luck
Ivar
Hi "eps" is the smallest real number that added to "1.0" can be distinguished from "1.0" by the binary representation of a floating point real numbers. It's a "clean" programming trick to avoid divisions by "0" mostly ... and is required only because the binary representation of Real number is very sparse and is limited in absolute and relative precision -- Good luck Ivar

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.