Adams Car Package > Adams Car > Tutorials and Examples > Example Motor Property Files

Example Motor Property Files

The following shows the architecture of the Adams Machinery Motor Property Files (*.mtr, *.bldc, *.stpr) for modeling electric motors in Adams.
If you select the Curve Based method, the required property file format is *.mtr. If you select the Analytical method, Brushless DC and Stepper motors require property files (*.bldc and *.stpr respectively). For the Curve Based method (*.mtr), the file must contain torque vs. RPM data. For BLDC motors, the file may contain either angle vs. time or angular velocity vs. time. For Stepper motors, the file may contain either target angle vs. time or pulses per second vs. time. Examples of each type is included in the acar_shared database.

Curve Based Example Property File

 
$---------------------------------------------------------MDI_HEADER
[MDI_HEADER]
FILE_TYPE = 'mtr'
FILE_VERSION = 4.0
FILE_FORMAT = 'ASCII'
$--------------------------------------------------------------UNITS
[UNITS]
LENGTH = 'mm'
ANGLE = 'degrees'
FORCE = 'newton'
MASS = 'kg'
TIME = 'second'
$---------------------------------------------------------PARAMETERS
[PARAMETERS]
METHOD = 'curve_based'
$--------------------------------------------------------------CURVE
[CURVE]
{ rpm torque}
0.0 120.0
100.0 74.2072
200.0 63.323
300.0 115.5031
400.0 45.7163
500.0 4.7405
600.0 5.0
700.0 0.0
 

BLDC Position Control Example Property File

 
$---------------------------------------------------------MDI_HEADER
[MDI_HEADER]
FILE_TYPE = 'bldc'
FILE_VERSION = 4.0
FILE_FORMAT = 'ASCII'
$--------------------------------------------------------------UNITS
[UNITS]
LENGTH = 'mm'
ANGLE = 'degrees'
FORCE = 'newton'
MASS = 'kg'
TIME = 'second'
$---------------------------------------------------------PARAMETERS
[PARAMETERS]
METHOD = 'analytical'
MOTOR_TYPE = 'bldc'
CONTROL_METHOD = 'position_control'
$--------------------------------------------------------------CURVE
[CURVE]
{ time angle}
0.0 0.0
0.1 90.0
0.2 90.0
0.3 90.0
0.4 90.0
0.5 90.0
0.6 90.0
0.7 90.0
0.8 90.0
0.9 90.0
1.0 180.0
1.1 180.0
1.2 180.0
1.3 180.0
1.4 180.0
1.5 180.0
1.6 180.0
1.7 180.0
1.8 180.0
1.9 180.0
2.0 180.0
2.1 180.0
2.2 180.0
2.3 180.0
2.4 180.0
2.5 180.0
2.6 360.0
2.7 360.0
2.8 360.0
2.9 360.0
3.0 360.0
3.1 360.0
3.2 360.0
3.3 360.0
3.4 360.0
3.5 360.0
3.6 270.0
3.7 270.0
3.8 270.0
3.9 270.0
4.0 270.0
4.1 270.0
4.2 270.0
4.3 270.0
4.4 270.0
4.5 270.0
4.6 90.0
4.7 90.0
4.8 0.0
4.9 0.0
5.0 0.0
6.0 0.0
7.0 0.0
8.0 0.0
9.0 0.0
10.0 0.0
11.0 0.0
12.0 0.0
 

BLDC Speed Control Example Property File

 
$---------------------------------------------------------MDI_HEADER
[MDI_HEADER]
FILE_TYPE = 'bldc'
FILE_VERSION = 4.0
FILE_FORMAT = 'ASCII'
$--------------------------------------------------------------UNITS
[UNITS]
LENGTH = 'mm'
ANGLE = 'degrees'
FORCE = 'newton'
MASS = 'kg'
TIME = 'second'
$---------------------------------------------------------PARAMETERS
[PARAMETERS]
METHOD = 'analytical'
MOTOR_TYPE = 'bldc'
CONTROL_METHOD = 'speed_control'
$--------------------------------------------------------------CURVE
[CURVE]
{ time rpm}
0.0 0
0.05 100
0.1 100
0.2 100
0.3 100
0.4 100
0.5 100
0.6 100
0.7 100
0.8 100
0.9 100
1 100
1.1 100
1.2 100
1.3 100
1.4 100
1.5 100
1.6 150
1.7 150
1.8 150
1.9 150
2 150
2.1 150
2.2 150
2.3 150
2.4 150
2.5 150
2.6 300
2.7 300
2.8 300
2.9 300
3 300
3.1 300
3.2 300
3.3 300
3.4 300
3.5 300
3.6 200
3.7 200
3.8 200
3.9 200
4 200
4.1 100
4.2 100
4.3 100
4.4 100
4.5 100
4.6 50
4.7 40
4.8 30
4.9 20
5 0
6 0
7 0
8 0
9 0
10 0
11 0
12 0
 

Stepper Target Angle Example Property File

 
$---------------------------------------------------------MDI_HEADER
[MDI_HEADER]
FILE_TYPE = 'stpr'
FILE_VERSION = 4.0
FILE_FORMAT = 'ASCII'
$--------------------------------------------------------------UNITS
[UNITS]
LENGTH = 'mm'
ANGLE = 'degrees'
FORCE = 'newton'
MASS = 'kg'
TIME = 'second'
$---------------------------------------------------------PARAMETERS
[PARAMETERS]
METHOD = 'analytical'
MOTOR_TYPE = 'stepper'
INPUT_TYPE = 'target_angle_vs_time'
$--------------------------------------------------------------CURVE
[CURVE]
{ time angle}
0.0 0.0
0.5 0.0
0.9 0.0
1.0 60.0
1.1 60.0
1.9 60.0
2.0 60.0
2.1 60.0
4.1 60.0
5.0 60.0
6.0 60.0
7.0 60.0
 

Stepper PPS Example Property File

 
$---------------------------------------------------------MDI_HEADER
[MDI_HEADER]
FILE_TYPE = 'stpr'
FILE_VERSION = 4.0
FILE_FORMAT = 'ASCII'
$--------------------------------------------------------------UNITS
[UNITS]
LENGTH = 'mm'
ANGLE = 'degrees'
FORCE = 'newton'
MASS = 'kg'
TIME = 'second'
$---------------------------------------------------------PARAMETERS
[PARAMETERS]
METHOD = 'analytical'
MOTOR_TYPE = 'stepper'
INPUT_TYPE = 'pps_vs_time'
$--------------------------------------------------------------CURVE
[CURVE]
{ time PPS}
0.0 0.0
0.5 0.0
0.9 0.0
1.0 1.0
1.1 1.0
1.9 1.0
2.0 1.0
2.1 0.0
4.1 0.0
5.0 0.0
6.0 0.0
7.0 0.0