ansys / pymotorcad

https://motorcad.docs.pyansys.com
MIT License
16 stars 1 forks source link

Thermal twinbuilder example failing with latest MC version #396

Closed jgsdavies closed 1 month ago

jgsdavies commented 1 month ago

🔍 Before submitting the issue

🐞 Description of the bug

image

📝 Steps to reproduce

Run thermal_twinbuilder.py

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

N/A

🐍 Which Python version are you using?

3.9

📦 Installed packages

N/A
HusainAdam commented 1 month ago

Issue not reproducible on my machine, using latest version of main. I am utilising latest version of Motor-CAD publicly available, 2024_2_2_1. Code executes successfully:

image image

resulting output successfully used in TB: image

This may be due to changes in Motor-CAD default behaviour in 2025 test release. This has a different default method for "Fluid Heat Flow Method" which results in different output files being written.

@jgsdavies can you please confirm which version of Motor-CAD was used that produced this error?

HusainAdam commented 1 month ago

Trying out a fix: check if newer version of Motor-CAD is being used, and if so, ensure the old working heat flow method is used.