function dxCondenserdt = ODECondenser(x,mturbine,T4x,m4,Qc,P)
Mc = x(1); T4 = x(2); % Dynamic states
Cpg = P(1); dHvap45 = P(2); % Parameters

dMcdt = mturbine - m4; % Dynamic massbalance for the condenser
dT4dt = (1/Mc)*(mturbine*(T4x - T4 + dHvap45/Cpg) + Qc/Cpg); % Dynamic energybalance

dxCondenserdt = [dMcdt; dT4dt];
end

