upb-lea / FEM_Magnetics_Toolbox

An Open-Source FEM Magnetics Toolbox for Power Electronic Magnetic Components
https://upb-lea.github.io/FEM_Magnetics_Toolbox/
GNU General Public License v3.0
66 stars 11 forks source link

Bug in basic_example due to air_gap_position #22

Closed shobhits72 closed 2 years ago

shobhits72 commented 2 years ago

Describe the bug Wrong position of airgap at air_gap_position[0] and air_gap_position[100] with method = 'percent'

To Reproduce Steps to reproduce the behavior:

  1. Go to 'basic_example.py'

  2. For any component: set method = 'percent' and air_gap_position[100] or air_gap_position[0] in geo.air_gaps.update()

  3. error_code

  4. See error

Screenshots error_basic_example

JonasHoelscher commented 2 years ago

Fixed in 41d5f62.