
Brayton-Wnet. For loop plotting
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Discrete Data Plots dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!