Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Piecewise function implementation

Otavio de Brito Silva

Please login with a confirmed email address before reporting spam

I"ve tried to implement the material properties, more specifically refractive index, in a 2D model of lens. Is there a way to define a piecewise function that describes the refractive index of all domains in my simulation?

2 Replies Last Post 16 janv. 2013, 14:52 UTC−5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 16 janv. 2013, 13:29 UTC−5
Model-Definition-Functions-Piecewise

But piecewise functions should be used with a caution in FEM. Always better to avoid them.
Model-Definition-Functions-Piecewise But piecewise functions should be used with a caution in FEM. Always better to avoid them.

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: 1 decade ago 16 janv. 2013, 14:52 UTC−5
Hi

you can have COMSOL to smoothen them to avoid the singularities, but often it makes the model highly non linear, hence long to solve

--
Good luck
Ivar
Hi you can have COMSOL to smoothen them to avoid the singularities, but often it makes the model highly non linear, hence long to solve -- 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.