.Chemical.Components.Substance

Information

n = x · n(solution) = ∫ MolarFlow

where n is amount of the substance and x is mole fraction.

The main class from “Chemical” package is called "Substance". It has one chemical connector, where chemical potential and molar flow is presented. An amount of solute "n" is accumulated by molar flow inside an instance of this class. In the default setting the amount of solution "n(solution)" is set to 55.6 as amount of water in one liter, so in this setting the concentration of very diluted solution in pure water at “mol/L” has the same value as the amount of substance at “mol”. But in the advanced settings the default amount of solution can be changed by parameter or using solution port to connect with solution. The molar flow at the port can be also negative, which means that the solute leaves the Substance instance. 


The recalculation between mole fraction, molarity and molality can be written as follows:

x = n/n(solution) = b * m(solvent)/n(solution) = c * V(solution)/n(solution)

where m(solvent) is mass of solvent, V(solution) is volume of solution, b=n/m(solvent) is molality of the substance, c=n/V(solution) is molarity of the substance.

If the amount of solution is selected to the number of total solution moles per one kilogram of solvent then the values of x will be the same as molality.

If the amount of solution is selected to the number of total solution moles in one liter of solution then the values of x will be the same as molarity.



Definition of electro-chemical potential:

u = u° + R*T*ln(gamma*x) + z*F*v

u° = DfG = DfH - T * DfS

where

x .. mole fraction of the substance in the solution

T .. temperature in Kelvins

v .. relative eletric potential of the solution

z .. elementary charge of the substance (like -1 for electron, +2 for Ca^2+)

R .. gas constant

F .. Faraday constant

gamma .. activity coefficient

u° .. chemical potential of pure substance

DfG .. free Gibbs energy of formation of the substance

DfH .. free enthalpy of formation of the substance

DfS .. free entropy of formation of the substance


Be carefull, DfS is not the same as absolute entropy of the substance S° from III. thermodinamic law! It must be calculated from tabulated value of DfG(298.15 K) and DfH as DfS=(DfH - DfG)/298.15.

Revisions

2009-2015 by Marek Matejak, Charles University, Prague, Czech Republic


Generated at 2024-11-20T19:25:51Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos