ansys/pymechanical

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

Closed this issue · 1 comments

  • Reproducible in 241,242,251 mechanical images and Linux platform
  • script to run is given below
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

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>