Extension methods for thermodynamic calculations
ThermodynamicExtensions
01 Syntax
Emily.eQuilibrator.Core.Extensions.ThermodynamicExtensions
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| KjToKcal | 1 | Converts Gibbs energy from kJ/mol to kcal/mol |
| KcalToKj | 1 | Converts Gibbs energy from kcal/mol to kJ/mol |
| ToEquilibriumConstant | 1 | Calculates the equilibrium constant from Gibbs energy |
| ToGibbsEnergy | 1 | Calculates Gibbs energy from equilibrium constant |
| ToReductionPotential | 1 | Calculates the reduction potential from Gibbs energy |
| ToGibbsEnergyFromPotential | 1 | Calculates Gibbs energy from reduction potential |
03 Members
KjToKcal(
Double)Converts Gibbs energy from kJ/mol to kcal/mol
KcalToKj(
Double)Converts Gibbs energy from kcal/mol to kJ/mol
ToEquilibriumConstant(
Double, Double)Calculates the equilibrium constant from Gibbs energy
Parameters
| Name | Type | Description |
|---|---|---|
dg | Double | Gibbs energy in kJ/mol |
temperature | Double | Temperature in Kelvin |
Returns
The equilibrium constant
ToGibbsEnergy(
Double, Double)Calculates Gibbs energy from equilibrium constant
Parameters
| Name | Type | Description |
|---|---|---|
keq | Double | Equilibrium constant |
temperature | Double | Temperature in Kelvin |
Returns
Gibbs energy in kJ/mol
ToReductionPotential(
Double, Int32)Calculates the reduction potential from Gibbs energy
Parameters
| Name | Type | Description |
|---|---|---|
dg | Double | Gibbs energy in kJ/mol |
nElectrons | Int32 | Number of electrons transferred |
Returns
Reduction potential in volts
ToGibbsEnergyFromPotential(
Double, Int32)Calculates Gibbs energy from reduction potential
Parameters
| Name | Type | Description |
|---|---|---|
e0 | Double | Reduction potential in volts |
nElectrons | Int32 | Number of electrons transferred |
Returns
Gibbs energy in kJ/mol