可扩展的化工流程模拟软件设计与测试  

Design and test of scalable chemical process simulation software

作  者:孟平洧 李薇[1] 曹志凯[1] MENG Pingwei;LI Wei;CAO Zhikai(College of Chemistry and Chemical Engineering,Xiamen University,Xiamen 361005,China)

机构地区:[1]厦门大学化学化工学院,福建厦门361005

出  处:《厦门大学学报(自然科学版)》2025年第1期186-192,共7页Journal of Xiamen University:Natural Science

摘  要:[目的]针对商业流程模拟软件功能扩展时操作繁琐、可解释性差等缺陷,提出一种实现软件功能扩展的设计思路.[方法]设计时将Lua扩展模块以组件形式嵌入模拟软件中,使用C#语言配合.NET环境下的NLua库实现Lua语言的解释执行,然后在求解器和物性库的支持下实现扩展模型的求解,并以重油催化裂化六集总模型的计算为例进行测试.[结果]测试结果显示关键组分的误差较小,扩展技术能得到有效应用.与Aspen Plus的同类功能相比操作繁琐度降低了54%.[结论]本研究为可扩展的化工流程模拟软件设计提供了一种高效解决方案.[Objective]Chemical process simulation software is a computer program used to simulate and analyze chemical production processes.It is an essential tool for modern chemical process design,optimization,and control.In this study,a design approach is proposed for enhancing the functionality of software to address the shortcomings of complex extended operation,challenging coding languages,and low interpretability in commercial process simulation software.[Methods]In this study,the Lua extended module is integrated into the chemical process simulation software framework as components during the design phase.It utilizes the C#language to implement the interpretation and execution of Lua language through the NLua library in a.NET environment.Then,with the support of the solver and physical property library,the extended model can be solved using the open interface of physical property data and solving methods.Finally,the calculation of the six-lumped model for heavy oil catalytic cracking is taken as an example to verify the scalability of the software.This test uses 14 data sets to solve the parameters of the six-lumped dynamics model,and 5 data sets to verify the accuracy of the model.A code is developed to implement the particle swarm optimization algorithm and Runge-Kutta algorithm to solve a multi value solution problem.The code can solve the parameters of the equation system,substitute these parameters into the differential equation system to compute simulated values,and then compare these values with the actual values to validate the software s scalability.The complexity of extended operation in this simulation software is compared with that of other software to verify the efficiency of the software s extended operations.[Results]Firstly,the test results show that the average relative error between the simulated and actual values of key components in heavy oil catalytic cracking is relatively small.The average relative errors for diesel,gasoline,liquefied gas,and dry gas are 3%,14%,4%,and 5%,respectively.The test

关 键 词:化工流程模拟 Lua语言 模块化 扩展模块 

分 类 号:TQ015.9[化学工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象