function T3mid = T3mid(mturbine,Q3,T4x1,P)
Cpg = P(1); % Parameters

T3mid = T4x1 + Q3/(Cpg*mturbine); % Computation of intermediate temperature T3mid
end

