ansys/pymotorcad

Bug when creating magnet region Br should not be zero

tfetsis opened this issue ยท 0 comments

๐Ÿ” Before submitting the issue

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

๐Ÿž Description of the bug

When creating the region of the magnet with RegionMagnet() we are expecting to have the parameter br_value=1 so that if one wants to change it to further do it with br_multiplier. Even if we don't set a magnet material. In the below example a magnet material is also used. Currently, if the br_value=0 we cannot set successfully a multiplier. Else, we could further have a set function as set_br_value to manually set the value.

๐Ÿ“ Steps to reproduce

untitled0.txt

Please open the default BPM design and in the adaptive templates tab, add the attached txt.

Capturee

๐Ÿ’ป Which operating system are you using?

Windows

๐Ÿ“€ Which ANSYS version are you using?

2024.2.3

๐Ÿ Which Python version are you using?

3.11

๐Ÿ“ฆ Installed packages

-