Car Tutorials

  • View
    688

  • Download
    4

Embed Size (px)

Transcript

Tutorials and ExamplesFor tutorials of overall product use, see: Getting Started Using Adams/Car

466 Adams/CarExample Four-Post Analysis

Example Four-Post AnalysisAlthough this is an Adams/Car example, you can use the general concepts presented here to customize any template-based product. Setting Up and Running an Analysis: Teaches the expert user how to build and run a full-vehicle

analysis with the four-post test rig. Creating and Running a Macro: Introduces the concepts of creating and running a macro for the

scenario given above.

Tutorials and Examples 467Example Event Files

Example Event FilesIn Adams/Car, XML became the default file format for Driving Machine analyses. Although Adams/Car still supports driver control files (.dcf), it now automatically converts them to .xml. The .xml files are referred to as event files. Although the contents of the two files types look different, they contain the same event information. You work with .xml files through the Event Builder. In the shared Adams/Car database, we provide files in both .dcf and .xml format. These files are stored in the driver_controls.tbl directory/table.

468 Adams/CarExample .dcd File

Example .dcd FileThe following shows the architecture of a .dcd file and all the options you can set for a .dcd file. It contains options, logic, and general rules that you must follow when creating a .dcd file. [MDI_HEADER] FILE_NAME = filename.dcd FILE_TYPE = 'dcd' FILE_VERSION = 1.0 FILE_FORMAT = 'ASCII' (COMMENTS) {comment_string} 'Any comment' [UNITS]LENGTH = 'meter' || 'millimeter' || 'centimeter' || 'kilometer' || etc. FORCE = 'newton' || 'kilogram_force' || etc. ANGLE = 'deg' MASS = 'kg'

TIME = 'sec' [CLOSED_LOOP] comment = stringsteering_control = 'none' || 'curvature' || 'path' || 'lat_acc' speed_control = 'none' || 'lon_vel' || 'lon_acc' || 'lat_acc' || 'path'

ordinal = 'distance' || 'time' lon_vel_max = float lon_vel_min = float lon_acc_max = float lon_acc_min = float lat_acc_max = float lat_acc_min = float (DATA) $ steering, speed $ 1 Case{none, none} -- null case, no data required!! $ 2 Case{none, lon_vel} $ 3 Case{none, lon_acc} $ 4 Case{none, lat_acc} -- NOT VALID $ 5 Case{none, path} -- NOT VALID { ( distance || time ) && ( lon_vel || lon_acc ) } $ 6 Case{curvature, none} -- Must have distance with curvature { distance && curvature } $ 7 Case{curvature, lon_vel} $ 8 Case{curvature, lon_acc} $ 9 Case{curvature, lat_acc} $10 Case{curvature, path} -- NOT VALID{ ( distance || time ) && curvature && ( lon_vel || lon_acc || lat_acc ) }

$11 Case{path, none} $12 Case{path, lon_vel} $13 Case{path, lon_acc} $14 Case{path, lat_acc} { x && y && ( lon_vel || lon_acc || lat_acc ) } $15 Case{path, path} { x && y && time } $16 Case{lat_acc, none} -- NOT VALID

Tutorials and Examples 469Example .dcd File

$17 $18 $19 $20 { (

Case{lat_acc, lon_vel} Case{lat_acc, lon_acc} Case{lat_acc, lat_acc} -- NOT VALID Case{lat_acc, path} -- NOT VALID distance || time ) && lat_acc && ( lon_vel || lat_acc )

}

[OPEN_LOOP] ordinal = 'time' || 'distance' {distance || time steering throttle brake gear clutch}* 0.0 0.0 0.0 0.0 2 0.0 0.1 0.0 0.0 0.0 2 0.0 *You can select distance or time and any combination of steering, throttle, brake, gear, and clutch .Example corresponding to $ 2 Case{none,lon_vel}: ..... [CLOSED_LOOP] STEERING_CONTROL = 'NONE' SPEED_CONTROL = 'LON_VEL' ORDINAL = 'TIME' (DATA) { TIME, LON_VEL } 0.0 27.777 0.1 27.777 0.2 27.776 0.3 27.775 0.4 27.774 0.5 27.773 ..... Example corresponding to $ 7 Case{curvature,lon_vel}: ..... [CLOSED_LOOP] STEERING_CONTROL = 'CURVATURE' SPEED_CONTROL = 'LON_VEL' ORDINAL = 'DISTANCE' (DATA) { DISTANCE, CURVATURE, LON_VEL } 0.0 0.000 27.777 1.0 0.002 27.777 2.0 0.004 27.777 3.0 0.006 27.776 4.0 0.008 27.775 5.0 0.010 27.774 6.0 0.010 27.773 7.0 0.010 27.774 8.0 0.010 27.774 9.0 0.010 27.774 10.0 0.010 27.774 11.0 0.010 27.774 12.0 0.010 27.774 13.0 0.010 27.774 .....

470 Adams/CarExample Suspension Loadcase File

Example Suspension Loadcase FileIn Adams/Car, you can use loadcase files to specify different types of suspension analyses. The following is an example loadcase file. $-----------------------------------------------MDI_HEADER [MDI_HEADER] FILE_TYPE = 'lcf' FILE_VERSION = 4.0 FILE_FORMAT = 'ASCII' $-----------------------------------------------UNITS [UNITS] LENGTH = 'mm' ANGLE = 'degrees' FORCE = 'newton' MASS = 'kg' TIME = 'second' $ $Generation Parameters: (Do Not Modify!) $ loadcase = 1 $ nsteps = 10 $ bump_disp = 100.00 rebound_disp = -100.00 $ steering_input = angle $ stat_steer_pos = 0.00 $ $-----------------------------------------------mode [MODE] STEERING_MODE = 'angle' VERTICAL_MODE = 'length' $-----------------------------------------------data [DATA] $COLUMN: input type: type of input data: side: $ (c1) wheel z disp / force left $ (c2) wheel z disp / force right $ (c3) lateral force (y) left $ (c4) lateral force (y) right $ (c5 aligning torque (z-axis) left $ (c6) aligning torque (z-axis) right $ (c7) brake force (y) left $ (c8) brake force (y) right $ (c9) driving force (y) left $ (c10) driving force (y) right $ (c11) steering force / steer angle / rack travel{ whl_z_l whl_z_r lat_l lat_r align_l align_r brake_l brake_r drive_l drive_r steer} -100.0000 -100.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 -80.0000 -80.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 -60.0000 -60.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 -40.0000 -40.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 -20.0000 -20.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.000 20.0000 20.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 40.0000 40.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 60.0000 60.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 80.0000 80.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 100.0000 100.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Tutorials and Examples 471Example Wheel-Envelope Input File

Example Wheel-Envelope Input FileThe following is an example of a wheel-envelope input file (.wen) that you can use to control a wheelenvelope analysis.

Note:

For wheel-envelope input files, Adams/Car ignores columns three through ten: (left and right) lateral force, aligining torque, brake force, and driving force.

$--------------------------------------------MDI_HEADER [MDI_HEADER] FILE_TYPE = 'wen' FILE_VERSION = 5.0 FILE_FORMAT = 'ascii' $--------------------------------------------UNITS [UNITS] LENGTH = 'mm' FORCE = 'newton' ANGLE = 'deg' MASS = 'kg' TIME = 'sec' $--------------------------------------------MODE [MODE] STEERING_MODE = 'angle' VERTICAL_MODE = 'length' $--------------------------------------------GRID [GRID] BOUNDARY_STEERING_GRID = 100.0 BOUNDARY_WHEEL_GRID = 20.0 INTERIOR_STEERING_GRID = 100.0 INTERIOR_WHEEL_GRID = 20.0 $--------------------------------------------DATA [DATA] $COLUMN: input type: type of input data: side: $ (c1) wheel z disp / force left $ (c2) wheel z disp / force right $ (c3) lateral force (y) left $ (c4 lateral force (y) right $ (c5) aligning torque (z-axis) left $ (c6) aligning torque (z-axis) right $ (c7) brake force (y) left $ (c8 brake force (y) right $ (c9) driving force (y) left $ (c10) driving force (y) right $ (c11) steering steer angle / rack travel $ {whl_z_l whl_z_r lat_l lat_r align_l align_r brake_l brake_r drive_l drive_r steer} -120.0 -120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -500.0 80.0 80.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -500.0 90.0 90.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -300.0 120.0 120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -200.0 120.0 120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 200.0

472 Adams/CarExample Wheel-Envelope Input File

85.0 85.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 350.0 80.0 80.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 500.0 60.0 60.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 500.0 30.0 30.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 450.0 -30.0 -30.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 450.0 -75.0 -75.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 500.0 -120.0 -120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 500.0

Tutorials and Examples 473Example Wheel-Envelope Output File

Example Wheel-Envelope Output FileA wheel-envelope output file (.wev) contains a header and a data table, as explained next. The first three lines comprise the header and contain the following information, in this order: Type of file Adams dataset title Date and time of file creation

The table that follows the header contains the following information: The first column shows the solution step number Columns 2-4 show the data for the left wheel center x, y, z Columns 5-7 show the data for the left wheel axis point x, y, z Columns 8-10 show the data for the right wheel center x, y, z Columns 11-13 show the data for the right wheel axis point x, y, z

The following is an example of a wheel-envelope output file: Adams/Car Wheel Envelope Analysis Output File - acar_v10.0 Adams/Car Assembly 2000-01-19 16:41:21 1 2 3 4 5 6 7 8 9 10 ... -4.2702 -673.57 205.00 -348.83 -1611.7 170.29 7.0293 670.69 205.00 303.63 1620.7 107.88 -4.6463 -681.45 225.00 -344.63 -1621.7 206.15 6.7629 678.55 225.00 307.97 1628.3 139.91 -4.9532 -687.82 245.00 -340.16 -1630.0 239.60 6.5706 684.92 245.00 311.28 1634.4 170.26 -5.2433 -692.82 265.00 -334.67 -1637.0 271.40 6.3755 689.93 265.00 314.35 1639.0 198.89 -5.5240 -696.55 285.00 -328.07 -1643.0 301.70 6.1779 693.66 285.00 317.43 1642.1 225.76 -5.7905 -699.08 305.00 -320.38 -1648.0 330.44 5.9864 696.18 305.00 320.67 1643.8 250.76 -6.0372 -700.45 325.00