Periodic Mesh Generation of BCC Lattice Materials using SALOME for FEM Analysis
BCC lattice materials made up of unit cells are among the most popular lattice structures in engineering. Different dimensions of these BCC lattice structures are shown in the figure below.
![t1](https://private-user-images.githubusercontent.com/162900845/329005202-59ae7570-f236-4451-8842-e30226199b60.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzNTQ3OTUsIm5iZiI6MTcyNTM1NDQ5NSwicGF0aCI6Ii8xNjI5MDA4NDUvMzI5MDA1MjAyLTU5YWU3NTcwLWYyMzYtNDQ1MS04ODQyLWUzMDIyNjE5OWI2MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwM1QwOTA4MTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYjBhOGFlZjZjODNkZmJjMWRmNTE4ZGRhMDlkMmE0M2U5MTA0ZjM2NWY4MzYyOWFmN2UyMWY2MWNhMDE2Zjk3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.WRb-cj6lV9ATd5FpwrfchaQy2RtDLNjlvQ_ryctMewE)
For FEM analysis of these structures, we need their geometrical model in a CAD software and meshing of their geometry. Also, for analyzes such as multiscale or homogenization analyzes, we need to have periodic or Cyclic meshes and boundary conditions so that for each node on one side of the boundary, there is exactly a corresponding node on the opposite boundary. As an example, the figure below shows two corresponding planes whose meshes are fully matched node to node.
![t1](https://private-user-images.githubusercontent.com/162900845/330519087-1cb98190-c1a7-48f8-81bd-fc4e7c2d8ffd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzNTQ3OTUsIm5iZiI6MTcyNTM1NDQ5NSwicGF0aCI6Ii8xNjI5MDA4NDUvMzMwNTE5MDg3LTFjYjk4MTkwLWMxYTctNDhmOC04MWJkLWZjNGU3YzJkOGZmZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwM1QwOTA4MTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wOWY4NWZkMzgwZWI3NWNkMzAzZmViNDY2MjRjNDViZjYyMzNkMjZjZmZjYjMyMzQ2MTk4NGU4ZDI2YjcyMTM2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.UMke_vRGbhLtAYTI-1gqc43QQkBecdr4NAXt2qjuFIM)
With the help of dear Franco, In this project, I have designed the geometrical model of the BCC unit cell and meshed it periodically in SALOME software. I have also modularized its script for different dimensions of unit cells and uploaded it to this repo. The figure below shows this unit cell along with its mesh.
![t1](https://private-user-images.githubusercontent.com/162900845/330519447-6477db84-99dd-4972-9d0e-f0256e644429.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzNTQ3OTUsIm5iZiI6MTcyNTM1NDQ5NSwicGF0aCI6Ii8xNjI5MDA4NDUvMzMwNTE5NDQ3LTY0NzdkYjg0LTk5ZGQtNDk3Mi05ZDBlLWYwMjU2ZTY0NDQyOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwM1QwOTA4MTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05YTkwYWEzOTczOWY1YzAxN2Q5MjJmNzliNGM3MjlhYTg5ZTUxYzA4NTA4YjFiMjA5ZjI3OWZiN2U0YWUxOTUxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.BIVksRbONIjh1F8Q36ECg7jV84JU3TJ7uQUIG2c4Oe0)
1) Open the BCCUCPM.py file and replace the current directory address with your own directory address on lines 15 and 316 (optional).
2) On lines 28 to 37, replace the specifications of the BCC unit cell you have in mind, including radios of strut, length of cube, Length Discretization and other items, with the values written.
3) Then run SALOME and click on the Load Script option from the file tab and select the BCCUCPM.py code in the repo.
I would be happy if anyone has any ideas for improving this project and expanding the current project.