工具的使用包括几个步骤,例如,图像转换为多边形,标记多边形之间的相交顶点(=网格控制点),简化多边形,多边形转换为三角形网格,在交会处搜索节点,导出为Inp文件。
This tool consists of a few steps, like, image to polygon, mark intersecting vertex (=control point for meshing) between polygons, simplify polygon, polygon to triangular meshes, search nodes at interface, export as Inp file.
Inp文件可以被导出到Abaqus软件中。
The Inp file can be imported into software Abaqus.
该工具最初撰写于2018年3月,用于含空隙的颗粒材料研究。
This tool was originally written in March 2018 for particle material with air void.
2019年,作者将代码改写为多相材料的应用。
In 2019, the code was rewritten so it can work for multi-phase materials.
能够准确保留不同相位之间的接触细节。
Exactly reserve the contact detail between different phases.
为了保证代码的正常运行,需要从https://github.com/dengwirda/mesh2d下载MESH2D软件,同时将文件夹(mesh2d-master)加入到对应的运行路径中。
To make this code run (especially for poly2mesh), you need to download MESH2D from https://github.com/dengwirda/mesh2d, and add the folder (mesh2d-master) to your path.
然后就可以启动demo()函数了。测试用例的图片位于文件夹(im2mesh\examples\...)。
After that, you can start with demo(). Try out the images in the folder (im2mesh\examples\...).
如果有任何问题,可以与作者联系:mjx0799@gmail.com。
If you have any questions or suggestions, feel free to send me an email. Email:mjx0799@gmail.com
完整源码下载请点击“阅读原文”