This example was built during the PyANSYS 2025 at Lyon with the help of R.LIBERT (JE) and F.GOMEZ (JE).
In this example we build an circular cylinder fixed on stiff ground, mesh, perform a modal analysis and display results using PyAnsys and ansys products in headless mode.
The project is built with:
- main.py => python script to perform all the stuff. The cylinder parameters and files naming are editable at the start of the main
- Geom_template.py => python template designed with SpaceClaim autoscript + modifications to generate the geometry file geom.py that will be processed by space claim to build the geometry.
- Mechanical_template.py => python template designe with Mechanical autoscript + modifications to generate the mecanical file mechanical.py that will be processed by Mechanical
- Requirement.txt => pip freeze > requirements.txt to backup our python installation