Commit d8109f25 authored by Andreas Michael Bremen's avatar Andreas Michael Bremen
Browse files

- cleanup of SolidLiquidPhase with some variable name changes for...

- cleanup of SolidLiquidPhase with some variable name changes for initialization (stoichiometry matrices, nullspace etc.)
parent 901942d6
within ElectrolyteMedia.Media.Common.Reaction;
function calc_P_lambda_id
"Calculates a stoichiometry matrix with pivoting so that lambdaout =(I|lambda_var) with permutation matrix Pout for reordering species elements of lambda_ordered = lambdaout*Pout"
input Real[:,:] lambda;
output Integer[size(lambda,1),size(lambda,1)] Pout;
protected
Real[size(lambda,1),size(lambda,2)] lambdaout;
algorithm
(lambdaout,Pout) :=calc_lambda_id(lambda);
end calc_P_lambda_id;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment