Skip to content

Commit

Permalink
Merge pull request #353 from crystal-growth/add_gas_constant
Browse files Browse the repository at this point in the history
Adding universal gas constant and Boltzmann constant as units of measure
  • Loading branch information
iliekturtles authored Sep 3, 2022
2 parents d1340ad + 261c8fc commit 339d8de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/si/heat_capacity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ quantity! {
@btu_it_per_degree_fahrenheit: 1.899_100_8_E3; "Btu (IT)/°F",
"British thermal unit (IT) per degree Fahrenheit",
"British thermal units (IT) per degree Fahrenheit";

@boltzmann_constant: 1.380_649_E-23; "k", "Boltzmann constant", "Boltzmann constants";
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/si/molar_heat_capacity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ quantity! {
@electronvolt_per_kelvin_particle: 6.022_140_76_E23 * 1.602_176_634_E-19;
"eV/(K · particle)", "electronvolt per kelvin particle",
"electronvolts per kelvin particle";

@molar_gas_constant: 8.314_462_618_E0; "R", "molar gas constant", "molar gas constants";
}
}

Expand Down

0 comments on commit 339d8de

Please sign in to comment.