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:
radiusfloat

Region position for the radial coordinate.

thetafloat

Region position for the angular coordinate in degrees.

region_namestr

Name of the region.

magnet_materialstr

Magnet material.

br_anglefloat

Magnet angle in degrees.

br_multiplierfloat, optional

Magnet Br multiplier. The default is 1.

polarity_codeinteger

Magnet polarity, where 0 is north and 1 is south.