Energy_Conversion#

Classes:

Energy(value, unit)

Energy class to convert between different energy units.

Functions:

J(value)

Converts J to J

Jmol(value)

Converts J/mol to J

eV(value)

Converts eV to J

kJmol(value)

Converts kJ/mol to J

kWh(value)

Converts kWh to J

kcalmol(value)

Converts kcal/mol to J

nm(value)

Converts nm to J

class pyH2A.Utilities.Energy_Conversion.Energy(value, unit)[source]#

Energy class to convert between different energy units.

Parameters
valuefloat

Input energy value.

unitfunction

Unit name which corresponds to the one of the functions defined outside of the class. This function is used to convert the input energy value to Joule.

Notes

Input value in either nm, eV, kcal/mol, J/mol, kJ/mol, kWh or J. Available units: J, eV, nm, kcal/mol, J/mol, kWh, kJ/mol. Once an Energy class object has been generated, the energy value in the desired unit can be retrieved using the appropriate class attribute.

Methods:

convert_J_to_Jmol()

Convert J to J/mol

convert_J_to_eV()

Convert J to eV

convert_J_to_kJmol()

Convert to J to kJ/mol

convert_J_to_kWh()

Convert J to kWh

convert_J_to_kcalmol()

Convert J to kcal/mol

convert_J_to_nm()

Convert J to nm

convert_J_to_Jmol()[source]#

Convert J to J/mol

convert_J_to_eV()[source]#

Convert J to eV

convert_J_to_kJmol()[source]#

Convert to J to kJ/mol

convert_J_to_kWh()[source]#

Convert J to kWh

convert_J_to_kcalmol()[source]#

Convert J to kcal/mol

convert_J_to_nm()[source]#

Convert J to nm

pyH2A.Utilities.Energy_Conversion.J(value)[source]#

Converts J to J

pyH2A.Utilities.Energy_Conversion.Jmol(value)[source]#

Converts J/mol to J

pyH2A.Utilities.Energy_Conversion.eV(value)[source]#

Converts eV to J

pyH2A.Utilities.Energy_Conversion.kJmol(value)[source]#

Converts kJ/mol to J

pyH2A.Utilities.Energy_Conversion.kWh(value)[source]#

Converts kWh to J

pyH2A.Utilities.Energy_Conversion.kcalmol(value)[source]#

Converts kcal/mol to J

pyH2A.Utilities.Energy_Conversion.nm(value)[source]#

Converts nm to J