ansys / pymechanical

Pythonic interface to Ansys Mechanical ™
https://mechanical.docs.pyansys.com/
MIT License
36 stars 18 forks source link

Bug: Exception thrown when pymechanical script has ``app.new()`` #843

Closed dipinknair closed 1 month ago

dipinknair commented 2 months ago
import ansys.mechanical.core as mechanical
import logging
from ansys.mechanical.core.embedding.logger import Configuration, Logger

Configuration.configure(level=logging.ERROR, to_stdout=True)

app=mechanical.App(version=241) #change version accordingly
app.update_globals(globals())
print(app)
app.new()

Output

image

dipinknair commented 2 months ago

This is happening with new way of updating app.update_globals(globals()). This issue happens only when you run the script with mechanical-env python <script>