|Dry Air Gas Constants|
So I've been working on air density equations that use the dry air constant.
Since I'm working with Java I set this up simply like this...
private static final double DRY_AIR_GAS_CONSTANT = 287.058;
Quite beautiful and simple, right? No, wrong!
I discovered differences in the represented gas constant by trying to figure out why different air density calculators were giving different results (note: I'm not exactly sure why there are differences right now, need to research further). For example:
- Dry Air Gas Constant of 286.9 from The Engineering Toolbox
- Dry Air Gas Constant of 287.22 from Peace Software
- Dry Air Gas Constant of 287.05 from Brisbane Hot Air Ballooning
- Dry Air Gas Constant of 287.058 from Wikipedia
So with all this being said, how do I implement my code?!? I gander there are a few options...
Constant/non-constant Option 1OPTION: I could just create constants for each known location...
private static final double DRY_AIR_GAS_CONSTANT_LOC_1 = 286.9;
private static final double DRY_AIR_GAS_CONSTANT_LOC_2 = 287.22;