3D visualization#

Visualize 3D imported geometry

Import necessary libraries#

from ansys.mechanical.core import App
from ansys.mechanical.core.examples import delete_downloads, download_file

Embed mechanical and set global variables

app = App()
app.update_globals(globals())
print(app)
Ansys Mechanical [Ansys Mechanical Enterprise]
Product Version:242
Software build date: 06/03/2024 09:35:09

Download and import geometry#

Download geometry

geometry_path = download_file("Valve.pmdb", "pymechanical", "embedding")

Import geometry

geometry_import = Model.GeometryImportGroup.AddGeometryImport()
geometry_import.Import(geometry_path)

Visualize in 3D#

app.plot()
tips 01

Note

This visualization is currently available only for geometry and on version 24R2 or later

Cleanup#

delete_downloads()
app.new()

Total running time of the script: (0 minutes 15.713 seconds)

Gallery generated by Sphinx-Gallery