Material constants in user-defined functions for material properties
Posted 23 feb 2021, 08:39 GMT-5 Materials 0 Replies
Please login with a confirmed email address before reporting spam
I am trying to create my own material property by adding an analytical function. This is a function of one input argument (frequency), but it contains several material constants.
I was hoping to use "local properties" table in the corresponding material settings to create my own local parameters. So that my function could be neatly written e.g. like
And according to the "Materials Library User Guide":
"These local properties are useful for parameterizing functions that describe material properties if they contain inputs other than those that are model inputs"
However, it looks like the analytical function I am creating has no access to the "local properties". For instance, if I try to plot this function, Comsol gives me the error "Failed to evaluate variable: -Variable: A", even though A is defined as a local property.
What am I doing wrong?
Hello Andriy Gorbach
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.