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.

Materials property function nesting

Please login with a confirmed email address before reporting spam

Hello! I am trying to find out- is it possible to nest an interpolation function within a piecewise function? I am trying to implement a function within a function for the electrical conductivity function for my model. I have defined an interpolation function 'int1(x,y,z)' that uses a datafile as input, and I am trying to implement a piecewise function 'pw1(x,y,z,T)' that uses the int1 function for a low T regime and a different analytical T-dependent function for the high temperature regime. However, I keep getting errors, for instance 'undefined variable: x'.

TIA!


0 Replies Last Post Dec 6, 2022, 3:58 p.m. EST
COMSOL Moderator

Hello AMB

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.