Skip to content

Added a few new units and new prefixes for existing units. #295

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

Merged
merged 20 commits into from
Oct 5, 2017

Conversation

DInozemtsev
Copy link
Contributor

No description provided.

@DInozemtsev
Copy link
Contributor Author

Sir @angularsen
1st. I've fixed test values for kBTU and mBTU
2nd. I can ask my colleagues from the States to make some screenshots of ENERGY STAR Portfolio Manager as a proof that they actually using such strange things as kcf (thousand cubic feet), Kcm (Thousand Cubic meters) and KGal (thousand gallons) in theirs systems.
Also please let me know if you still don't want those in your project and I'll get rid of them.

@DInozemtsev
Copy link
Contributor Author

@angularsen
Copy link
Owner

Ok, it's not that I don't trust you that someone is actually using such units, they do make sense, but my main concern is adding esoteric / rare units that no one else benefits from. I did google a bit more this time and I do find some references to usages of kilocubic feet, so I guess it's used enough in the wild to warrant being included in the library.

Thanks for the swift creation of the new pull request, the changes look good!

@@ -50,6 +54,8 @@ public class EnergyTests : EnergyTestsBase

protected override double FootPoundsInOneJoule => 0.737562149;

protected override double GigabritishThermalUnitsInOneJoule => 9.4781339449889105832843629746176e-13;
Copy link
Owner

Choose a reason for hiding this comment

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

Actually, this one seems to still use the old constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops... my bad.

@@ -27,6 +27,8 @@ public class FlowTests : FlowTestsBase

protected override double CubicDecimetersPerMinuteInOneCubicMeterPerSecond => 60000.00000;

protected override double CubicFeetPerHourInOneCubicMeterPerSecond => 1.2713300937959091422759633856933e+5;
Copy link
Owner

Choose a reason for hiding this comment

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

This value is slightly different than CubicFeetPerSecond multiplied by 3600.

35.314666213 * 3600 = 1.271327983668e+5

Which one should be corrected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since CubicFeetPerSecond was already there, I would use 1.271327983668e+5 as a test value for CubicFeetPerHour

Copy link
Owner

@angularsen angularsen Oct 4, 2017

Choose a reason for hiding this comment

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

I confirmed with two online converters cubic feet per second:

35.314666721489 ft3/s from converter1
35.314 666 721 ft3/s from converter2

The value is not perfectly identical, but pretty much good.

So, using the first value above times 3600, the per hour value should be: 127132.8001973604.

If you could update both foot per second and foot per hour accordingly, then this should be good.

CubicFeetPerHourInOneCubicMeterPerSecond: 127132.8001973604
CubicFeetPerSecondInOneCubicMeterPerSecond: 35.314666721489

@angularsen
Copy link
Owner

Found a couple more minor things, if you could address those then this should be ready to merge.

@angularsen
Copy link
Owner

Commenting here so it is visible, see comment above: #295 (comment)

@DInozemtsev
Copy link
Contributor Author

Made it. ;)

@angularsen angularsen merged commit b6e12fc into angularsen:master Oct 5, 2017
@angularsen
Copy link
Owner

Hooray :-) Thanks a bunch! Nuget 3.77 is now out.

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.

2 participants