目的:充分利用COMSOL软件的可视化建模特点与Visual C++平台的编程特性,提出一种COMSOL与Visual C++三维电阻抗有限元联合建模与仿真方法。方法:利用COMSOL软件中的建模方法建立模型,将模型转化为.stl文件导入Visual C++仿真平台,利用Delaunay四面体网格剖分算法进行有限元剖分,完成有限元计算仿真,最终实现联合建模与仿真。结果:该方法可以对COMSOL软件中建立的模型进行导入,并可完成三维有限元仿真。结论:该方法能够适应多种建模软件建立的模型,可以方便准确地实现联合建模与仿真,具有较高的实用性。
Objective To put forward a method for 3D electrical impedance finite element joint modeling and simulation using COMSOL for visual modeling and Visual C++ for programming. Methods A model was established with COMSOL, and then transformed into a.stl file and introduced into Visual C ++ simulation platform. Delaunay tetrahedral mesh generation algorithm was used for finite element meshing, calculation and simulation, and joint modeling and simulation were realized finally. Results Simulation result showed that the method could be used to introduce COMSOL model and complete 3D finite element simulation. Conclusion The method proves its compatibility with the models generated by multi software and practicability for joint modeling and simulation.