Energy_Conversion#
Classes:
|
Energy class to convert between different energy units. |
Functions:
|
Converts J to J |
|
Converts J/mol to J |
|
Converts eV to J |
|
Converts kJ/mol to J |
|
Converts kWh to J |
|
Converts kcal/mol to J |
|
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 J/mol
Convert J to eV
Convert to J to kJ/mol
Convert J to kWh
Convert J to kcal/mol
Convert J to nm