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.

Simple question for Unit

Please login with a confirmed email address before reporting spam

Hello,

When I define "parameters", do I always need to put unit in Expression?

For example, if I want to define "pressure" to be used in "Study" , do I always need to put [Pa]?

Thanks.

1 Reply Last Post 23 déc. 2011, 14:58 UTC−5
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23 déc. 2011, 14:58 UTC−5
Hi

there is no obligation, parameters mght also be numbers (unitless). But it is of good practice to use units systematically as this helps to avoid unit conversion errors.

You can always add the units in the equations when you refer to your parameters, but then you must change ALL of them if you want to be consistent and you need to adapt something

Unit issues are flagged orange by COMSOL and its a warning, it will solve anyhow. typos are flagged red, these will not allow to solve, so red errors MUST be corrected

--
Good luck
Ivar
Hi there is no obligation, parameters mght also be numbers (unitless). But it is of good practice to use units systematically as this helps to avoid unit conversion errors. You can always add the units in the equations when you refer to your parameters, but then you must change ALL of them if you want to be consistent and you need to adapt something Unit issues are flagged orange by COMSOL and its a warning, it will solve anyhow. typos are flagged red, these will not allow to solve, so red errors MUST be corrected -- Good luck Ivar

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.