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

Please login with a confirmed email address before reporting spam

Hi Everyone,

I want to create some variables using log () ; but it gave me the message "unexpected unit of input".

Although the unit of the used variable is meter.

My physics is "Solid mechanics";
My study is "Stationary";

Did anyone know how can I solve this problem?

Thank you in advance,

3 Replies Last Post 18 sept. 2016, 06:17 UTC−4
Robert Koslover Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 17 juil. 2016, 18:20 UTC−4
I'm guessing that the problem is that you are trying to take the logarithm of a quantity that has units. The input quantity to a logarithm should be a unit-less number. If you want to take the logarithm of the number of meters, then you could try dividing it by 1.0[m] first, so as to get rid of the units.
I'm guessing that the problem is that you are trying to take the logarithm of a quantity that has units. The input quantity to a logarithm should be a unit-less number. If you want to take the logarithm of the number of meters, then you could try dividing it by 1.0[m] first, so as to get rid of the units.

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 19 juil. 2016, 05:05 UTC−4
Thank you !
Thank you !

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 18 sept. 2016, 06:17 UTC−4
Hi
using the version 5.2, in the variable expression i try to use sinh(phi) or cosh(phi) and give them a name , the unit of (phi) is the volt wich is the variable of electrostatic module, but the color is orange and show ''unexpected unit of input'' so i can't use it in boundary condition ad i can't solve my problem
Appreciate much for your help!!
Hi using the version 5.2, in the variable expression i try to use sinh(phi) or cosh(phi) and give them a name , the unit of (phi) is the volt wich is the variable of electrostatic module, but the color is orange and show ''unexpected unit of input'' so i can't use it in boundary condition ad i can't solve my problem Appreciate much for your help!!

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.