sponge.function.Energy
- class sponge.function.Energy(value: float, unit: str = 'kj/mol', **kwargs)[source]
Energy.
- Parameters
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> from sponge.function import Energy >>> ene = Energy(1.0, 'kcal/mol') >>> ene.change_unit('kj/mol') <sponge.function.units.Energy at 0x7f415483eac0> >>> ene.value 4.184