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.

Material Function error.

SWATHI KRISHNA SUBHASH

Please login with a confirmed email address before reporting spam

HI,

I am using COMSOL Multiphysics 5.4.0.388. Working with Heat trasfer and phase change with Laminar flow. I tried to defined a temperature-dependent heat capacity using a piecwise function for a phase cahneg material (solid and liquid phase). The argument is T and defined the units of the argument and function as K and J/(kgK), respectively. For solid and liquidn material I named the Cp as Cp_solid and Cp_liquid respectively. However when I enter Cp_solid(T) in the material content section it turns orange and while computing it shows error.

Unefined variable eoor.

Any suggestions will be quiet helpful.


2 Replies Last Post 2022年3月22日 GMT-4 07:19
Robert Koslover Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 2022年2月18日 GMT-5 19:48
Updated: 2 years ago 2022年2月20日 GMT-5 21:06

I suggest you post your .mph file to the forum.

-------------------
Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
I suggest you post your .mph file to the forum.

Swathi Krishna Subhash

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 2022年3月22日 GMT-4 07:19

Hi,

thank you for the response. I solved the error.

Hi, thank you for the response. I solved the error.

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.