Thermodynamic constants used in Gibbs free energy calculations. Contains fundamental physical constants and default physiological conditions.
ThermodynamicConstants
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| DebyeHueckel | 1 | 计算 Debye-Hückel 修正因子。 等价于 Python debye_hueckel(ionic_strength_in_M, T_in_K)。 该函数基于扩展 Debye-Hückel 方程计算活度系数修正因子, 用于校正离子强度对标准 Gibbs 自由能的影响。 修正因子的单位为 kJ/mol。 |
| DebyeHueckelDerivative | 1 | 计算 Debye-Hückel 修正因子对离子强度的导数。 等价于 Python _debye_hueckel_derivative(ionic_strength, T_in_K)。 |
| LegendreTransform | 1 | 计算 Legendre 变换值。 等价于 Python _legendre_transform(pH, pMg, ionic_strength_M, T_in_K, charge, num_protons, num_magnesiums)。 Legendre 变换用于将标准 Gibbs 自由能转换为指定 pH、pMg 和离子强度条件下的 变换 Gi… |
| LnConcentrationRatio | 1 | Calculates the natural logarithm of the concentration ratio. |
| PHToHydrogenConcentration | 1 | Converts pH to hydrogen ion concentration |
| PMgToMagnesiumConcentration | 1 | Converts pMg to magnesium ion concentration |
| RT | 1 | Calculates RT at a given temperature |
| Ln10RT | 1 | Calculates 2.303 * RT at a given temperature (for pH calculations) |
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| default_T | 2 | 默认温度 298.15 K |
| default_T_in_K | 2 | 默认温度(开尔文) |
| default_I | 2 | 默认离子强度 0.25 M |
| default_I_in_M | 2 | 默认离子强度(摩尔/升) |
| default_pH | 2 | 默认 pH 值 7.0 |
| default_pMg | 2 | 默认 pMg 值 14.0 |
| default_pMg_Quantity | 2 | 默认 pMg(Quantity 形式) |
| R | 2 | 气体常数 R = 8.314462618 J/(mol*K) = 8.314462618e-3 kJ/(mol*K) |
| default_R_in_kJ_per_mol_per_K | 2 | 气体常数(kJ/(mol*K)) |
| FARADAY | 2 | 法拉第常数 96485.33212 C/mol |
| LOG10 | 2 | LOG10 = ln(10) = 2.302585... |
| standard_dg_formation_mg | 2 | Mg2+ 的标准生成 Gibbs 自由能 (kJ/mol) |
| standard_dh_formation_mg | 2 | Mg2+ 的标准生成焓 (kJ/mol) |
| PROTON_INCHI | 2 | 质子的 InChI 标识符。 |
| PROTON_INCHI_KEY | 2 | 质子的 InChI Key。 |
| WATER_INCHI | 2 | 水的 InChI 标识符。 |
| WATER_INCHI_KEY | 2 | 水的 InChI Key。 |
| FaradayConstant | 2 | Faraday constant in kJ/(V·mol) F = 96485.33212 C/mol = 96.48533212 kJ/(V·mol) |
| DefaultPH | 2 | Default pH value for physiological conditions |
| DefaultPMg | 2 | Default pMg (negative log of Mg2+ concentration) for physiological conditions |
| DefaultIonicStrength | 2 | Default ionic strength in molar (M) for physiological conditions |
| DefaultTemperature | 2 | Default temperature in Kelvin for physiological conditions |
| StandardConcentration | 2 | Standard concentration in molar (M) |
| PhysiologicalConcentration | 2 | Physiological concentration in molar (M) Typically 1 mM = 0.001 M |
| DefaultConcentrationLowerBound | 2 | Default lower bound for concentration in molar (M) |
| DefaultConcentrationUpperBound | 2 | Default upper bound for concentration in molar (M) |
| DefaultElectricalPotential | 2 | Default electrical potential in volts |
| DefaultRmseInf | 2 | Default RMSE infinity value in kJ/mol Used for reactions with very high uncertainty |
| DefaultPhase | 2 | Default phase for compounds |
04 Members
Double, Double)计算 Debye-Hückel 修正因子。 等价于 Python debye_hueckel(ionic_strength_in_M, T_in_K)。
该函数基于扩展 Debye-Hückel 方程计算活度系数修正因子, 用于校正离子强度对标准 Gibbs 自由能的影响。 修正因子的单位为 kJ/mol。
| Name | Type | Description |
|---|---|---|
ionic_strength_in_M | Double | 离子强度(摩尔/升) |
T_in_K | Double | 温度(开尔文) |
Debye-Hückel 修正因子 (kJ/mol)
Double, Double)计算 Debye-Hückel 修正因子对离子强度的导数。 等价于 Python _debye_hueckel_derivative(ionic_strength, T_in_K)。
| Name | Type | Description |
|---|---|---|
ionic_strength | Double | 离子强度(摩尔/升) |
T_in_K | Double | 温度(开尔文) |
Debye-Hückel 修正因子对离子强度的导数 (kJ/mol)
Double, Double, Double, Double, Double, Double, Double)计算 Legendre 变换值。 等价于 Python _legendre_transform(pH, pMg, ionic_strength_M, T_in_K, charge, num_protons, num_magnesiums)。
Legendre 变换用于将标准 Gibbs 自由能转换为指定 pH、pMg 和离子强度条件下的 变换 Gibbs 自由能。这是 Alberty 热力学框架的核心计算。
| Name | Type | Description |
|---|---|---|
pH | Double | pH 值(-log10[H+]) |
pMg | Double | pMg 值(-log10[Mg2+]) |
ionic_strength_M | Double | 离子强度(摩尔/升) |
T_in_K | Double | 温度(开尔文) |
charge | Double | 微粒子的电荷数 |
num_protons | Double | 质子数 |
num_magnesiums | Double | 镁离子数 |
Legendre 变换值(单位为 RT)
Double, Double)Calculates the natural logarithm of the concentration ratio. ln(Q) where Q is the reaction quotient
| Name | Type | Description |
|---|---|---|
concentration | Double | Concentration in molar |
standardConcentration | Double | Standard concentration (default 1 M) |
Natural logarithm of the concentration ratio
Double)Converts pH to hydrogen ion concentration
| Name | Type | Description |
|---|---|---|
pH | Double | pH value |
Hydrogen ion concentration in molar
Double)Converts pMg to magnesium ion concentration
| Name | Type | Description |
|---|---|---|
pMg | Double | pMg value |
Magnesium ion concentration in molar
Double)Calculates RT at a given temperature
| Name | Type | Description |
|---|---|---|
temperatureK | Double | Temperature in Kelvin |
RT in kJ/mol
Double)Calculates 2.303 * RT at a given temperature (for pH calculations)
| Name | Type | Description |
|---|---|---|
temperatureK | Double | Temperature in Kelvin |
2.303 * RT in kJ/mol
默认温度 298.15 K
默认温度(开尔文)
默认离子强度 0.25 M
默认离子强度(摩尔/升)
默认 pH 值 7.0
默认 pMg 值 14.0
默认 pMg(Quantity 形式)
气体常数 R = 8.314462618 J/(molK) = 8.314462618e-3 kJ/(molK)
气体常数(kJ/(mol*K))
法拉第常数 96485.33212 C/mol
LOG10 = ln(10) = 2.302585... 等价于 Python LOG10 = np.log(10)。 注意:这是自然对数 ln(10),不是 log10(e)。
Mg2+ 的标准生成 Gibbs 自由能 (kJ/mol)
Mg2+ 的标准生成焓 (kJ/mol)
质子的 InChI 标识符。
质子的 InChI Key。
水的 InChI 标识符。
水的 InChI Key。
Faraday constant in kJ/(V·mol) F = 96485.33212 C/mol = 96.48533212 kJ/(V·mol)
Default pH value for physiological conditions
Default pMg (negative log of Mg2+ concentration) for physiological conditions
Default ionic strength in molar (M) for physiological conditions
Default temperature in Kelvin for physiological conditions
Standard concentration in molar (M)
Physiological concentration in molar (M) Typically 1 mM = 0.001 M
Default lower bound for concentration in molar (M)
Default upper bound for concentration in molar (M)
Default electrical potential in volts
Default RMSE infinity value in kJ/mol Used for reactions with very high uncertainty
Default phase for compounds