def _calculate_H(self, T):
if self.isCoal:<EOL><INDENT>return self._calculate_Hfr_coal(T)<EOL><DEDENT>H = <NUM_LIT:0.0><EOL>for compound in self.material.compounds:<EOL><INDENT>index = self.material.get_compound_index(compound)<EOL>dH = thermo.H(compound, T, self._compound_masses[index])<EOL>H = H + dH<EOL><DEDENT>return H<EOL>
Calculate the enthalpy of the package at the specified temperature.

:param T: Temperature. [°C]

:returns: Enthalpy. [kWh]