Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge added dimensions and units #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mwpowellhtx
Copy link

See fork issues #1, #2, and #3. Definitely interested in some feedback on how to better approach number two. Could forego number three provided there was a better approach. Thanks and let me know how the merge went.


typedef unit<specific_gas_constant_dimension,si::system> specific_gas_constant;

BOOST_UNITS_STATIC_CONSTANT(joule_per_kilogram_kelvins, specific_gas_constant);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should add singular version of kelvins as well? I.e. joule_per_kilogram_kelvin and 3 other variants.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly, if I have a need for it, I will patch it. Other's contributions are also welcomed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a question of one's need, but of consistency...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The harder question is how to persuade the units system to accept a true energy (Joules) per mass (kilogram) temperature (kelvins). The closest I could come up with was to "manually" reduce the dimensions, which will work when you involve the quantity calculations, but does not appear to be technically correct, according to the Specific Gas Constant docs I was reading. I don't have any ready answers where that's concerned. Can you help with those bits?

@mkurdej
Copy link
Member

mkurdej commented Aug 15, 2015

And what about tests?

@jhunold
Copy link
Contributor

jhunold commented Aug 12, 2016

Won't merge without tests. And please make a pull request against develop, not master. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants