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 Mar 22, 2022, 7:19 a.m. EDT
Robert Koslover Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 2 years ago Feb 18, 2022, 7:48 p.m. EST
Updated: 2 years ago Feb 20, 2022, 9:06 p.m. EST

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 Mar 22, 2022, 7:19 a.m. EDT

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.