I need a help to plots pressure vs. Temp at equilibrium from the attached paper and in the same graph another plot using Peng Robinson model.

6 次查看(过去 30 天)
plot (p, T)
# in the same figure, plot using the model from the paper for P and T and compare it with Peng Robinson model. at equilibrium

采纳的回答

Sam Chak
Sam Chak 2023-12-14
I'm not an expert in gas laws, but when the data is available (for example, in the fictional dataset below), you can plot the graph as desired. I cannot find any equilibrium in this sample dataset. Additionally, I'm unfamiliar with the Peng–Robinson model because the formula is not provided. I am unsure if this Peng–Robinson equation in this Wikipedia article is the same. If you provide the parameters in your question above, you can also plot it on the same graph for comparison purposes, using the 'hold on' feature.
data = [
223.160 0.0929
233.159 0.1486
233.159 0.1487
243.146 0.2285
243.156 0.2283
253.151 0.3380
253.152 0.3367
253.154 0.3378
253.154 0.3379
263.147 0.4832
263.149 0.4830
263.152 0.4830
263.152 0.4833
273.146 0.6710
273.150 0.6710
273.150 0.6712
273.151 0.6714
283.144 0.9088
283.144 0.9092
293.141 1.2047
293.141 1.2056
293.184 1.2066
298.144 1.3774
298.183 1.3800
303.139 1.5678
303.139 1.5679
303.139 1.5692
303.181 1.5701
303.181 1.5705
313.136 2.0075
313.136 2.0077
313.136 2.0078
313.136 2.0080
313.136 2.0082
313.136 2.0089
313.136 2.0090
313.136 2.0094
317.148 2.2090
318.138 2.2606
319.638 2.3411
323.133 2.5360
323.133 2.5363
323.133 2.5364
323.133 2.5368
323.133 2.5369
323.133 2.5370
323.250 2.5436
328.138 2.8398
328.176 2.8419
333.130 3.1700
333.130 3.1706
333.130 3.1710
333.130 3.1712
333.130 3.1715
333.251 3.1801
334.252 3.2505
335.134 3.3127
336.252 3.3967
337.133 3.4605
337.133 3.4621
338.252 3.5472];
%% extract the data
T = data(:,1);
P = data(:,2);
%% plot the graph
plot(P, T), grid on
title('Temperature vs. Pressure')
xlabel('Pressure (MPa)'), ylabel('Temperature (K)')
  15 个评论
Torsten
Torsten 2023-12-15
编辑:Torsten 2023-12-15
We corrected your PR equation and we plotted pressure vs. temperature for the paper data and PR. I think it's time now that you start doing your part of the work.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Thermodynamics and Heat Transfer 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by