2DImage2Mesh
tools to build a good quality abaqus mesh from a 2D image, using simpleware as image processing software
Install / Use
/learn @mengomarlene/2DImage2MeshREADME
2DImage2Mesh
Procedure to CREATE A 2D QUADRAQNGULAR MESH OR 3D EXTRUDED HEX MESH FROM AN IMAGE USING SCANIP AND ABAQUS ONLY NOT FOR SCANIP 7!!!
INSTRUCTIONS
In scanIP
1/ import your 2D image twice (this creates a virtual stack)
2/ create masks as if it was 3D (use option "on all slices" when possible!!)
3/ mesh your data as coarse as you can without changing the geometry (if needed up-sample the z-direction and down-sample the in-plane directions)
4/ set all your masks as non-exportable
5/ in the mesh options, export shells of all your useful masks with zMin (i.e. the plane surface, not the background)
6/ FOR 2D MODELS ONLY: in the mesh options, export contact surfaces between useful masks (and only the useful ones!!) !! scanIP 6 - DO NOT import contact pairs as contact but as node sets !!
7/ export the results in a inp file
In abaqus cae
8/ make sure your working directory (changed under File->Se Working Directory) includes the file 'sipShell2Abq2D.py', i.e. this file (or make it available in your python path)
9/ import your inp file as a model
10/ in the abaqus command line type (with nameOfYourModel the name of your model):
myModel = mdb.models['nameOfYourModel']
import sipShell2Abq
sipShell2Abq.shellTo2DGeo(myModel) or sipShell2Abq.shellTo3DExtruGeo(myModel,extrusionDepth)
What abaqus does
abaqus will look in your scanIP mesh for all the external edges (not only globally external but also those at contact surfaces for the 2D models)
it will rebuild a geometry based on those edges, keeping them as they are
the mesh abaqus produces seeds those edges, the coarser you can get is thus the size of your scanIp mesh
for the 2D models: all the node set and contact surfaces produced by scanIP are exported both in part Sets and part Surfaces
known issue
if the scanIP mesh used is relatively fine, abaqus won't be able to re-mesh it!! --> use an initial mesh as coarse as you can
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
