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.
Confusion with units
Posted Feb 28, 2012, 10:09 a.m. EST 1 Reply
Please login with a confirmed email address before reporting spam
I have looked at some other threads on this and it's still not intuitively obvious to me how units operate. The following is an equation I use under the Variables node of a model using SI units where the dependent variable is T:
0.000922[kJ/(kg*degC^2)]*T+3.54
T is in Kelvin but the equation was developed for degC. I know it's a simple fix to just rewrite the first equation above with constants in terms of K not degC, but to make sure I don't incur unit errors in other ways, I need to understand how Comsol processes units.
So, when I rewrite this equation as:
0.000922[kJ/(kg*degC^2)]*T[degC]+3.54
the units become kJ/kg, not the expected kJ/(kg*degC). I read in another thread that functions take arguments that are dimensionless, so when I use:
0.000922[kJ/(kg*degC^2)]*T[1/degC]+3.54
I get units of m^2/(s^2*K^2) when it should be kJ/(kg*degC) or m^2/(s^3*K).
What seems to work, at least from a units standpoint, is:
0.000922[kJ/(kg*degC)]*T[1/degC]+3.54
This is counter-intuitive as the first constant doesn't seem to have the correct units.
What is difficult to understand is what exactly dimensionless means. Dimensionless to me means normalized. But in Comsol it seems to mean simply that there are no dimensions, when in fact, for example in my model, temperature is in K. By this reasoning, if I use T in any function evaluation that has different units, say degC, then by writing the units as [1/degC], T will be entered into the function as degC, not K. Is this correct?
Also does that last constant in the equation assume the same units automatically because none are specified?
Thank you in advance for any help on this.
0.000922[kJ/(kg*degC^2)]*T+3.54
T is in Kelvin but the equation was developed for degC. I know it's a simple fix to just rewrite the first equation above with constants in terms of K not degC, but to make sure I don't incur unit errors in other ways, I need to understand how Comsol processes units.
So, when I rewrite this equation as:
0.000922[kJ/(kg*degC^2)]*T[degC]+3.54
the units become kJ/kg, not the expected kJ/(kg*degC). I read in another thread that functions take arguments that are dimensionless, so when I use:
0.000922[kJ/(kg*degC^2)]*T[1/degC]+3.54
I get units of m^2/(s^2*K^2) when it should be kJ/(kg*degC) or m^2/(s^3*K).
What seems to work, at least from a units standpoint, is:
0.000922[kJ/(kg*degC)]*T[1/degC]+3.54
This is counter-intuitive as the first constant doesn't seem to have the correct units.
What is difficult to understand is what exactly dimensionless means. Dimensionless to me means normalized. But in Comsol it seems to mean simply that there are no dimensions, when in fact, for example in my model, temperature is in K. By this reasoning, if I use T in any function evaluation that has different units, say degC, then by writing the units as [1/degC], T will be entered into the function as degC, not K. Is this correct?
Also does that last constant in the equation assume the same units automatically because none are specified?
Thank you in advance for any help on this.
1 Reply Last Post Feb 28, 2012, 11:14 a.m. EST