functionfromFormationEnergies
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | MM | 1 | Molar mass of the substance |
| Real | z | 0 | Charge number of the substance (e.g., 0..uncharged, -1..electron, +2..Ca^(2+)) |
| Real | DfG | 0 | Gibbs energy of formation of the substance at SATP conditions (298.15, 1bar) |
| Real | DfH | 0 | Enthalpy of formation of the substance at SATP conditions (298.15, 1bar) |
| Real | S0 | 0 | Standart molar entropy of the substance at SATP conditions (298.15, 1bar) |
| Real | Cp | 1 | Molar heat capacity of the substance at SATP conditions (298.15, 1bar) |
| PhaseType | phase | PhaseType.Incompressible | State of matter |
| Real | Vm | if (phase == PhaseType.Gas) then ((1.380649e-23*6.02214076e23)*298.15)/100000 else 0.001*MM | Molar volume of the pure substance at SATP conditions (298.15, 1bar) (default fron non-gaseous is to reach density 1kg/L) |
| Real | gamma | 1 | Activity coefficient of the substance |
| Boolean | SelfClustering | false | |
| Real | SelfClustering_dH | 0 | |
| Real | SelfClustering_dS | 0 |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Definition | result |