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 22 mars 2022, 07:19 UTC−4
Robert Koslover Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 3 years ago 18 févr. 2022, 19:48 UTC−5
Updated: 3 years ago 20 févr. 2022, 21:06 UTC−5

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: 3 years ago 22 mars 2022, 07:19 UTC−4

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.