Skip to content

Commit 339d8de

Browse files
authored
Merge pull request #353 from crystal-growth/add_gas_constant
Adding universal gas constant and Boltzmann constant as units of measure
2 parents d1340ad + 261c8fc commit 339d8de

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/si/heat_capacity.rs

+2
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ quantity! {
167167
@btu_it_per_degree_fahrenheit: 1.899_100_8_E3; "Btu (IT)/°F",
168168
"British thermal unit (IT) per degree Fahrenheit",
169169
"British thermal units (IT) per degree Fahrenheit";
170+
171+
@boltzmann_constant: 1.380_649_E-23; "k", "Boltzmann constant", "Boltzmann constants";
170172
}
171173
}
172174

src/si/molar_heat_capacity.rs

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ quantity! {
9494
@electronvolt_per_kelvin_particle: 6.022_140_76_E23 * 1.602_176_634_E-19;
9595
"eV/(K · particle)", "electronvolt per kelvin particle",
9696
"electronvolts per kelvin particle";
97+
98+
@molar_gas_constant: 8.314_462_618_E0; "R", "molar gas constant", "molar gas constants";
9799
}
98100
}
99101

0 commit comments

Comments
 (0)