add_magnet_region_rt#
- MotorCAD.add_magnet_region_rt(radius, theta, region_name, magnet_material, br_angle, br_multiplier, polarity_code)#
Add a magnet region to the Motor-CAD geometry with an r, t (polar) coordinate system.
If a region already exists, this method overwrites the existing region.
Use degrees for angles.
- Parameters:
- radius
float
Region position for the radial coordinate.
- theta
float
Region position for the angular coordinate in degrees.
- region_name
str
Name of the region.
- magnet_material
str
Magnet material.
- br_angle
float
Magnet angle in degrees.
- br_multiplier
float
,optional
Magnet Br multiplier. The default is
1
.- polarity_code
integer
Magnet polarity, where
0
is north and1
is south.- .. deprecated:: 0.6.0
add_magnet_region_rt will be removed with Motor-CAD 2025R2 (tentative). Functionality replaced by adaptive templates.
- radius