You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It started from unit-checking MSL which detected something odd in:
Modelica.Media.Air.ReferenceMoistAir.Utilities.VirialCoefficients.Bww_dT specifically the line:
It might be that bww on the line before is a "temporary" with a different unit, which could explain the unit-error.
However, regardless of that the style of ..../rhored*MM is a bit confusing to me (I have to spend a few second to remember the precedence). I would write ...*MM/rhored - to clarify the meaning. The same issue occurs in Modelica.Media.Air.ReferenceMoistAir.Utilities.Water95_Utilities - where criticalMolarVolume=1/322.0*0.018015268 (using identical literal values instead of constants - thus bypassing any unit-check).
But, that made me think once more: MM/rhored has unit [kg/mol]/[mol/m3]=[kg.m3.mol-2] whereas MolarVolume used for criticalMolarVolume has unit [m3.mol-1]. Is it just coincidence that it is the same values - or is there some additional issue? I know a factor of 1kg/m3 or 1000kg/m3 is easy to slip by for air or water; but that wouldn't explain it.
It could be:
Incorrect units for something.
Incorrect formula.
A missing conversion that happen to have the value 1 for some reason.
A coincidence that the values look similar.
The text was updated successfully, but these errors were encountered:
Issues listed below:
It started from unit-checking MSL which detected something odd in:
Modelica.Media.Air.ReferenceMoistAir.Utilities.VirialCoefficients.Bww_dT specifically the line:
It might be that
bww
on the line before is a "temporary" with a different unit, which could explain the unit-error.However, regardless of that the style of
..../rhored*MM
is a bit confusing to me (I have to spend a few second to remember the precedence). I would write...*MM/rhored
- to clarify the meaning. The same issue occurs inModelica.Media.Air.ReferenceMoistAir.Utilities.Water95_Utilities
- wherecriticalMolarVolume=1/322.0*0.018015268
(using identical literal values instead of constants - thus bypassing any unit-check).But, that made me think once more:
MM/rhored
has unit [kg/mol]/[mol/m3]=[kg.m3.mol-2] whereas MolarVolume used for criticalMolarVolume has unit [m3.mol-1]. Is it just coincidence that it is the same values - or is there some additional issue? I know a factor of 1kg/m3 or 1000kg/m3 is easy to slip by for air or water; but that wouldn't explain it.It could be:
The text was updated successfully, but these errors were encountered: