You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ability to specify whether eddy currents are enabled in the BSPM analyzer
Context
Currently, the BSPM analyzer has eddy currents enabled in the shaft and permanent magnets. We would like to allow the user to disable this.
Approach
Let's add a configuration setting that allows us to disable calculating eddy currents everywhere in a manner that does not break the functionality of this analyzer for existing users.
Suggested approach:
In jmag_2d_config.py
Within other settings, add a field self.enable_eddy_current_calcs to take a value of either false or true. Set it up for a default value of true (as this is what is the existing behavior)
Abstract
Add ability to specify whether eddy currents are enabled in the BSPM analyzer
Context
Currently, the BSPM analyzer has eddy currents enabled in the shaft and permanent magnets. We would like to allow the user to disable this.
Approach
Let's add a configuration setting that allows us to disable calculating eddy currents everywhere in a manner that does not break the functionality of this analyzer for existing users.
Suggested approach:
In
jmag_2d_config.py
Within
other settings
, add a fieldself.enable_eddy_current_calcs
to take a value of eitherfalse
ortrue
. Set it up for a default value oftrue
(as this is what is the existing behavior)eMach/mach_eval/analyzers/electromagnetic/bspm/jmag_2d_config.py
Lines 23 to 30 in 71f6982
In
jmag_2d.py
Within the initializer
add a check to see if the
self.config.enable_eddy_current_calcs
field exists. If it does not exist, create it and set it to trueeMach/mach_eval/analyzers/electromagnetic/bspm/jmag_2d.py
Lines 36 to 37 in 71f6982
Within
add_material()
Only set
EddyCurrentCalculation
to 1 ifself.config.enable_eddy_current_calcs == true
eMach/mach_eval/analyzers/electromagnetic/bspm/jmag_2d.py
Line 756 in 71f6982
eMach/mach_eval/analyzers/electromagnetic/bspm/jmag_2d.py
Line 764 in 71f6982
The text was updated successfully, but these errors were encountered: