✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
这个资源库包含来自文献的高精度热力学模型的Matlab实现,以及用于计算热力学变量的'thermo'类。 目前,可用的物种有H2、paraH2、orthoH2、N2、O2、Ar、H2O和CO2,以及作为单一伪物种的空气。
⛄ 部分代码
% Simulation of the filling of a gas tank from another tank at higher
% pressure
th = thermo('H2'); % Create thermodynamic object
% Example:
Ta = 273.15+15;
T_up = Ta;
p_up = 350e5;
T_down = Ta;
p_down = 20e5;
w = 0.2; % kg/s
[t,Z,pA,pB] = gas_tank_system(th,T_up,p_up,T_down,p_down,Ta,w);
TA = Z(:,1);
NA = Z(:,2);
TB = Z(:,3);
NB = Z(:,4);
figure;
subplot(311);
plot(t,[TA,TB]-274.15)
ax = axis; ax(3:4) = [min([TA;TB]),max([TA;TB])]-273.15;
axis(ax);
title Temperatures; ylabel \circC
subplot(312);
plot(t,[pA,pB]*1e-5);
title Pressures;ylabel bar
subplot(313);
plot(t,[NA,NB]*th.Mw);
title('Gas mass');ylabel kg
ax = axis; ax(4) = ceil(max(NA)*th.Mw/25)*25;
axis(ax);
legend('Upstream tank','Downstream tank','location','west')
xlabel seconds
⛄ 运行结果
⛄ 参考文献
[1] 李璐伶. 基于水合物分离法捕集CO_2热力学模型及流程模拟研究[D]. 西南石油大学, 2017.
[2] 郭沛俊, 袁一. 人工神经网络在NH3—H2O—CO2体系热力学模型建立中的应用[J]. 氮肥设计, 1994, 32(4):38-41.
[3] 杨声海, 巨少华, 唐谟堂. 用MATLAB编程求解Zn(Ⅱ)-NH4Cl-NH3-H2O体系热力学模型[J]. 中南大学学报(自然科学版), 2005(005):036.
⛳️ 完整代码
❤️部分理论引用网络文献,若有侵权联系博主删除
❤️ 关注我领取海量matlab电子书和数学建模资料