Code Thermodynamics btech 3rd semester question to get results , plot graph if needed
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
A gas filled in a piston cylinder device, expands from 400 kPa and 0.05 m3
to a final volume of 0.2 m3
.
If the gas stisfies PVn=C, n and C are constants (take n=1.5), calculate the work done by the system.
Now, vary the value of n from 1.1 to 1.7, and plot the work versus polytropic exponent.
1 commentaire
Réponses (1)
VBBV
le 2 Jan 2023
Modifié(e) : VBBV
le 2 Jan 2023
p = 400*1e3;
v1 = 0.05;
v2 = 0.2;
n = 1.1:0.01:1.7;
W = (n./(n-1))*p*(v2-v1)
plot(n,W); xlabel('polytropic exponent [n]');ylabel('Work done')
W = @(n,p) (n./(n-1)).*p.*(v2-v1)
figure
fsurf(W,[1.1 1.7 100*1e3 400*1e3])
view(10,15)
axis square; zlabel('Work done')
0 commentaires
Voir également
Catégories
En savoir plus sur Thermodynamics and Heat Transfer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

