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. :Function- exp

Please login with a confirmed email address before reporting spam

I am trying to add an equatiom ii definition node under variable section. It turns yellow showing error message as: **Unexpected unit of input - Function: exp***

Why it is so? What is the mistake in input, can anyone tell? Screenshot attached for reference. Please help.



2 Replies Last Post 20 feb 2019, 01:18 GMT-5
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 5 years ago 19 feb 2019, 09:41 GMT-5
Updated: 5 years ago 20 feb 2019, 02:07 GMT-5

Hi,

The exponential function exp expects a dimensionless input. I'm not sure what T is, but it might be a temperature, which makes the input to the function dimensionally inconsistent. If the numerator is a temperature, enter it as 9459[K], or else you can "dedimensionalize" the denominator as, for example, T[1/K].

Best regards, Magnus Ringh, COMSOL

Hi, The exponential function `exp` expects a dimensionless input. I'm not sure what `T` is, but it might be a temperature, which makes the input to the function dimensionally inconsistent. If the numerator is a temperature, enter it as `9459[K]`, or else you can "dedimensionalize" the denominator as, for example, `T[1/K]`. Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 5 years ago 20 feb 2019, 01:18 GMT-5

Yes, T is temperature. Thanks this worked. This equation is antonie equation. Is there any unit for these constant a, b in antonie eqn to make this equation dimensionally consisitent? as these equation solves for pressure.

Yes, T is temperature. Thanks this worked. This equation is antonie equation. Is there any unit for these constant a, b in antonie eqn to make this equation dimensionally consisitent? as these equation solves for pressure.

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.