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.

Temperature dependent parameter in global material

Please login with a confirmed email address before reporting spam

Hi,

I used to have a custom material, defined within the component's materials (i.e. like any material in COMSOL before version 5), with a temperature dependent coefficient of thermal expansion. To do so, I defined a function CTE_B270 inside the Basic property group (see Picture 1), and set the coefficient of thermal expansion of the material to CTE_B270(T).

Now, I wanted to exploit the new switches introduced with COMSOL 5, so I wanted to move the same material in the Global -> Materials group. However, if I simply drag the same material to the new folder, the value of coefficient of thermal expansion, CTE_B270(T), becomes orange and I get an error "Unknown variable T". I tried to move the function from inside the material to the Global functions, but nothing changes.

How should I declare or call the function in order to correctly pass the temperature parameter to it?

Best regards,

Mikhail


0 Replies Last Post Dec 17, 2014, 7:07 a.m. EST
COMSOL Moderator

Hello Mikhail Asiatici

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.