Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

"Unexpected unit of input" error for material property defined by piecewise function

Please login with a confirmed email address before reporting spam

Hello,

I am using Comsol 4.2. defined a temperature-dependent heat capacity using a piecwise function. The argument is T and I defined the units of the argument and function as K and J/(kg*K), respectively. I named the function Cp_eff. When I enter Cp_eff(T) under the Value column for the Heat capactiy property, the entered value turns orange with the warning "Unexpected unit of input". The function unit is correct, so I don't know what the problem could be.

Thanks.


1 Reply Last Post Feb 21, 2018, 4:37 a.m. EST
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Feb 21, 2018, 4:37 a.m. EST

Hi,

This is strange. The way you describe your setup, Cp_eff(T) is correct and should not generate any unit warning. I have tested it in 4.2 and it seems to work fine. I also tested it in COMSOL Multiphysics 5.3a, which is our latest release and contains loads of additional functionality and enhancements, and where this setup also works without any unit warning.

Best regards, Magnus Ringh, COMSOL

Hi, This is strange. The way you describe your setup, `Cp_eff(T)` is correct and should not generate any unit warning. I have tested it in 4.2 and it seems to work fine. I also tested it in COMSOL Multiphysics 5.3a, which is our latest release and contains loads of additional functionality and enhancements, and where this setup also works without any unit warning. Best regards, Magnus Ringh, COMSOL

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.