Multicomponent diffusion coefficient for the limiting case of a single dilute component diffusing into a homogeneous mixture according to [Poling2020]. \\[ D_{i,m} = \left( \sum_{\substack{j=1 , j\neq i}}^{n} \frac{x_j}{D_{ij}} \right)^{-1} \\] Herein, \\(D_{ij}\\) is the binary diffusion coefficient of the components \\(i\\) and \\(j\\).
function multiComponentDiffCoeff input Modelica.Units.SI.AbsolutePressure p "Pressure"; input Modelica.Units.SI.Temperature T "Temperature"; input Modelica.Units.SI.MoleFraction molarMixingRatio[size(molarMixingRatio, 1)] "Mole fraction"; input Integer i "Component ID"; input BinaryFunctionType binaryFunctionType; input TILMedia.GasTypes.BaseGas gasType "Gas Type"; output Modelica.Units.SI.DiffusionCoefficient D "Molcular diffusion coefficient"; end multiComponentDiffCoeff;