Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pymechanical - multiple ModelImportSourceFilePath #912

Open
2 tasks done
ekostson opened this issue Sep 19, 2024 · 2 comments
Open
2 tasks done

Pymechanical - multiple ModelImportSourceFilePath #912

ekostson opened this issue Sep 19, 2024 · 2 comments
Labels
bug Something isn't working future To be implemented in the future

Comments

@ekostson
Copy link

ekostson commented Sep 19, 2024

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

Hello

In Pymechanical when we issue multiple mimp.ModelImportSourceFilePath='D:\DATA\SR\modelcdbrst_files\dp0\SYS-1\MECH\filecdb.cdb'
mimp.Import()

(We need to do that to reimport new cdb and result files for different models and then save results images),

we get a crash and a dump file.

The same thing works fine inside the script console of the Standalone Mechanical Application (2024 R2) - so not sure why it crashes inside PyMechanical session.

All the best

Erik

📝 Steps to reproduce

Steps described above - import and reimport cdb files, and corresponding files (rst).

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

2024 R2

import ansys.mechanical.core as mech

work_dir = r'D:\DATA\SR' # where mechdat will be saved
path_to_242 = r'C:\Program Files\ANSYS Inc\v242'
app = mech.App(version=242) # starts a non-graphical Mechanical session within the python.exe
globals().update(mech.global_variables(app))

mimp=Model.GeometryImportGroup.AddModelImport()

...

🐍 Which Python version are you using?

3.10

📦 Installed packages

PyMech
@ekostson ekostson added the bug Something isn't working label Sep 19, 2024
@ekostson
Copy link
Author

ekostson commented Sep 20, 2024

@koubaa - dump file attached:
AnsysWBDumpFile.dmp

@koubaa
Copy link
Collaborator

koubaa commented Sep 23, 2024

@ekostson can you please share the script in its entirety (including the relevant cdb)?

@dipinknair dipinknair added the future To be implemented in the future label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working future To be implemented in the future
Projects
None yet
Development

No branches or pull requests

3 participants