MoleFractionUtils.hpp
60 //-----------------------------------------------------------------------------------------------------
62 //-----------------------------------------------------------------------------------------------------
63 // \frac{\partial x_{i}}{\partial n_{j}}=\frac{x_{i}}{n_{i}}\left(\delta_{ij}-x_{i}\right)=\frac{1}{n_{\Sigma}}\left(\delta_{ij}-x_{i}\right)
64 //-----------------------------------------------------------------------------------------------------
98 //-----------------------------------------------------------------------------------------------------
100 //-----------------------------------------------------------------------------------------------------
101 // \frac{\partial\ln x_{i}}{\partial n_{j}}=\frac{\delta_{ij}}{n_{i}}-\frac{1}{n_{\Sigma}}=\frac{1}{n_{i}}\left(\delta_{ij}-x_{i}\right)
102 //-----------------------------------------------------------------------------------------------------
137 //-----------------------------------------------------------------------------------------------------
139 //-----------------------------------------------------------------------------------------------------
141 //-----------------------------------------------------------------------------------------------------
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
auto moleFractions(ArrayConstRef &&n, ArrayRef &&x)
Compute the mole fractions of the species with given species amounts.
Definition: MoleFractionUtils.hpp:30
Eigen::Matrix< T, -1, -1, 0, -1, -1 > MatrixX
Convenient alias to Eigen type.
Definition: Matrix.hpp:42
auto lnMoleFractionsJacobianDiagonal(ArrayConstRef &&n, MatrixRef &&D) -> void
Compute the diagonal only of the Jacobian matrix of the species mole fractions in natural log ( ).
Definition: MoleFractionUtils.hpp:135
auto moleFractionsJacobian(ArrayConstRef &&n, MatrixRef &&J)
Compute the Jacobian matrix of the species mole fractions ( ).
Definition: MoleFractionUtils.hpp:58
Eigen::Array< T, -1, 1, 0, -1, 1 > ArrayX
Convenient alias to Eigen type.
Definition: Matrix.hpp:46
auto lnMoleFractionsJacobian(ArrayConstRef &&n, MatrixRef &&J) -> void
Compute the Jacobian matrix of the species mole fractions in natural log ( ).
Definition: MoleFractionUtils.hpp:96