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.

Using interpolated function to model space dependent material property

Please login with a confirmed email address before reporting spam

The below post is related to an archived discussion


Hello everyone,

as already mentioned in the attached forum discussion, it is possible to use spatial coordinates as arguments. I have used the same approach as shown in the first picture. The defined function (called n) is then used to define the refractive index of some part of the model geometry. This is shown in the second picture. Upon hitting the Build All-Button to generate the mesh I get the error message shown in the third picture.

Now the questions are the following:

(1) Is the used process to define a space dependent material property right?

(2) Which coordinate is choosen by COMSOL to be the argument for the interpolation function? In the plot COMSOL displays x. From that, can I conclude that COMSOL is using the coordinates along the x-axis as argument?

(3) If (1) is right: Why does COMSOL shows the error message shown in the last picture?

I appreciate all answers and thank everybody for taken his or her time.

Best regards,

Giuseppe



0 Replies Last Post Jun 5, 2018, 6:07 a.m. EDT
COMSOL Moderator

Hello Giuseppe Turturiello

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.