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.

"unit syntax error"

Please login with a confirmed email address before reporting spam

In "Global Definitions --- Parameters", the value of Volume (V) is known, I input "(3*V/(4*pi))^(1/3)" to calculate the Radius (R) of the Sphere, but an error happens, i.e. "unit syntax error". Why? Cannot use "^(1/3)" in comsol?

2 Replies Last Post 2010年11月3日 GMT-4 09:55
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年11月3日 GMT-4 05:09
Hi,

This works in version 4.0a, so I assume that you are using version 4.0.
The unit syntax in COMSOL Multiphysics treats units with integer exponents. Fractional exponents like 1/3 do work, however, if the "composite exponents" for the unit in the expression are integers (in this case, m^(3/3) = m).

Best regards,
Magnus Ringh, COMSOL
Hi, This works in version 4.0a, so I assume that you are using version 4.0. The unit syntax in COMSOL Multiphysics treats units with integer exponents. Fractional exponents like 1/3 do work, however, if the "composite exponents" for the unit in the expression are integers (in this case, m^(3/3) = m). Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年11月3日 GMT-4 09:55

Hi,

This works in version 4.0a, so I assume that you are using version 4.0.
The unit syntax in COMSOL Multiphysics treats units with integer exponents. Fractional exponents like 1/3 do work, however, if the "composite exponents" for the unit in the expression are integers (in this case, m^(3/3) = m).

Best regards,
Magnus Ringh, COMSOL


Thanks!
Yes, I use version4.0. So we cannot use "^(1/3)", i.e. the fractional expoent, in version 4.0, right?
[QUOTE] Hi, This works in version 4.0a, so I assume that you are using version 4.0. The unit syntax in COMSOL Multiphysics treats units with integer exponents. Fractional exponents like 1/3 do work, however, if the "composite exponents" for the unit in the expression are integers (in this case, m^(3/3) = m). Best regards, Magnus Ringh, COMSOL [/QUOTE] Thanks! Yes, I use version4.0. So we cannot use "^(1/3)", i.e. the fractional expoent, in version 4.0, right?

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.