Brayton-Wnet. For loop plotting

조회 수: 7 (최근 30일)
Alperen Koyuncu
Alperen Koyuncu 2020년 5월 25일
답변: darova 2020년 5월 25일
Hi, I'm trying to plot this for different T3 variables ( 900,1100,1300,1500,1700) in same graphs and each line should be different colour or type.
I attached the graph that ı want to plot. Please help, thank u in advance
clear;
T1=15+273;
for T3=900:200:1700
etatis=0.88;
etacis=0.88;
etayan=0.98;
etamek=0.95;
cpb=1.115;
cph=1.005;
cpg=1.147;
P1=1;
Hu=47966;
epsilony=0.02;
epsilonk=0.03;
epsilonc=0.01;
kh=1.4;
kg=1.333;
for Prc= 0:0.5:50
a=(kh-1)/kh;
b=(kg-1)/kg;
Prt=Prc*((1-epsilonk-epsilony)/(1+epsilonc));
T4=T3*(1-(etatis*(1-(1/(Prt.^0.2498)))));
T2=T1*(1+(((Prc.^0.2857)-1)/etacis));
wut=cpg*(T3-T4);
qy=(cpb*(T3-T2))/etayan;
wk=cph*(T2-T1);
wnet=wut-(wk/etamek);
etatermik=(wnet/qy);
plot(Prc,wnet,"b.-")
xlabel ('Prc', 'fontsize', [14]);
ylabel ('wnet ', 'fontsize', [14]);
grid on
hold on
end
end

답변 (1개)

darova
darova 2020년 5월 25일
See this solution

카테고리

Help CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by