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
Posted 06.12.2022, 15:58 GMT-5 Materials, Modeling Tools & Definitions, Modeling Workflow Version 5.6 0 Replies
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!
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.