Scripting in Ansys
It all started with a call from my friend. He is the head of R&D in Kooshkan transformer co. they have done an experimental analysis on their transformer and asked me if I could analyze it with Ansys. After struggling a lot with the Ansys CFD module and lots of splitting to create a robust mesh, a good result was achieved. (I can not publish any image related to the analysis due to the publishing rules of the article)
Almost all the transformers have the same geometry and all the differences are in dimensions and due to this reason, we decided to create a system to update the analysis. All the analysis is more or less divided into 4 sections.
1- Geometry of the model
2- Meshes and related functions such as named selections
3- Set up for Analysis
4- Getting the results
Ansys has two CAD software to create all the parts and to be honest for me who used SolidWorks at work, both of them are not good enough. Between DesignModeler and SpaceClaim, I've chosen DesignModeler. SpaceClaim is indeed the brand new CAD software in Ansys, but I find it not being user-friendly. Besides, there is plenty of help for DesignModeler on the internet such as CFD-online. DesignModeler uses JavaScript in scripting. In the process of coding the geometry, I found some rich recourses which you can find at the end of the article. The second source was very helpful.
Recommended by LinkedIn
My real challenge in creating geometry was to cut and split the bodies and it took a lot of my time just for it. There is some narrow geometry in the geometry, and since there have to be at least two elements through the thickness, so I had to create these slices. of course, I could reduce the mesh size but it costs lots of computing resources.