Building A Track Tutorial
Building A Track Tutorial
If you do not,
Adams may not work correctly. Also remember to move everything you wish to keep from the working
directory before you log off. See the Opening Files tutorial for more information.
This tutorial is designed to help you understand how to use the Road Builder function
inside of Adams/Car to generate a track for full vehicle simulations.
Road Builder uses three dimensional points entered by the user to define the centerline of a
roadway or travel surface. The user must enter X,Y, and Z coordinates for points along the path.
At each point, the user must also enter a roadway width, friction values for the left and right side
of the road, and a bank angle for the road.
Since Road Builder requires a large list of XYZ points, it is logical to begin your roadway design
using a CAD package. This will allow you to design your track visually, list out the points
required to create the track, then cut and paste them directly into Road Builder.
The first step in creating a track is to have a geometric layout for the travel surface. This
can be anything you dream up – from a skidpad or autocross track for FSAE or a hill climb or
motocross track for Mini Baja. There are several ways to get started other than just dreaming up
a track. The easiest way is to find an actual track that has already been built. Barber Motorsports
has the exact dimensions of their track published on the internet. (and are also included in this
tutorial) Other good sources are motocross track websites, SCCA forums for autocross tracks,
and aerial images. Michelin has a tire test facility in South Carolina and can be seen clearly from
free aerial images provided by www.maps.live.com. These images can be imported into CAD
software and then traced out to give the outline of a track surface.
To get started, we would first open CAD software and make an outline of the Barber
facility. This tutorial assumes that the user has had enough CAD experience to do this on his or
her own. There is an Excel file in the tutorials folder called Barber Tutorial.xls containing the
three dimensional points needed for this tutorial. Those points were created by inserting the
above image into the CAD software. The centerline of the track was traced out, and a list of the
X,Y, and Z coordinates of the centerline were then input into the Excel file included with this
tutorial.
From your CAD file, you should be able to list the X,Y, and Z coordinates from your
track. One important note is that you should always begin your track at the origin (0,0,0) and if
your track is a continuous loop, it should also end at the origin. ADAMS/Car always begins each
simulation by placing the full vehicle model at the 0,0,0 location. This requires that you design
your track to occupy that space.
Once ADAMS/Car opens, we need to open a full vehicle assembly. ADAMS/Car will not let us
access the Road Builder function unless we have an assembly open.
Now you will be prompted for the Assembly Name. There is not a button to browse to the
assembly you want, you must double click in the text entry area of the dialog box. This will
automatically bring up the file browser.
• Double Click in the text entry area. You should see the following dialog box:
•
You should get a popup message window like the one below:
• Now click close on the popup message window, and then click the red ‘X’ to close the
open assembly dialog box.
This will open the Road Builder portion of ADAMS/Car. There will be a user interface that
should look similar to the one below:
• Click File/New
This opens a clean Road Builder file, and should look like the above photo. The first thing we
need to do is define the units. I like to work in feet and degrees, so we will change those units
shown on the right of the screen.
• Change the units to: Feet, Pounds Mass, Pounds Force, Seconds, and Degrees, then select
“OK”
Now lets move on to the Global tab to set some of the global parameters.
• Now, navigate to the Tutorial CD and open the Microsoft Excel File labeled “Barber
Tutorial.xls”
• Next, select all the cells in the Excel file containing data. The first row should contain
X,Y, and Z data of (0,0,0) and the last row should also contain (0,0,0). Your selection set
should be 3 columns wide and 294 rows long. Do not select any of the cells containing
text, such as X, Y, or Z.
• Right click on the selected data in Excel and click “copy”
• Now lets go back to the Road Builder window in ADAMS/Car
• Left click the button near the bottom of the window that says “Add Road Points”
• You will be prompted for the number of road points to be added. Type in “294” and press
“ok” Your screen should look like the one below.
• Now highlight all of the X, Y, and Z values in the Road Builder window just like in the
above picture. To do this, point your mouse to the X value for row number 1. Hold down
the left mouse button and drag to the bottom of the screen. As you are dragging, drag
your mouse toward the right to encompass all three of the X, Y, and Z columns. Once all
of the desired cells are highlighted in blue, you can release your left mouse button.
• To paste the copied data from Excel into Road Builder, hold down the control button on
the keyboard and tap the V key twice. Sometimes this doesn’t work right away, so you
may have to try it a few times before it will work.
Now that the X, Y, and Z data is entered into Road Builder, you must enter values for the rest
of the data.
• Go back to Excel and create a column of cells that all contain the number 12. Make the
column 294 rows high (this is the number of rows in Road Builder). Now on your own,
copy and paste the column into Road Builder in the “width” column. This will make our
travel surface 12 feet wide at every data point. Our track will be 12 feet wide with a 2.5
foot grass shoulder around it. (This is from the global 15 foot width we entered on the
global tab)
If you are not comfortable copying and pasting data into Road Builder, you can manually enter
each piece of data into the cells by selecting the individual cell and typing in the value.
Now, lets look at a plot of our data to make sure our track looks like we would expect it to.
• Click on the “Show X-Y Plot” button near the bottom of the Road Builder window.
When you are finished looking at your track’s X-Y geometry, just close the Road Point Editor X-
Y window.
Now let’s save the road file so we don’t lose all that hard work!
The final task when creating a track is to include rough areas or potholes to simulate real world
roads. To do this, we will use the obstacle tab in Road Builder.
• Click on the Obstacle tab in Road Builder. Your screen should look like this:
• In the name text entry line near the bottom of the window, type the word “pothole”
• Now click the “Add” button next to the text entry line.
• Make sure your obstacle parameters are identical to those listed in the above and below
photos.
From this screen, you can add many different obstacles at any location along your track.
• Left click the word pothole to highlight the data set for the pothole obstacle.
• Now right click the word pothole and then left click “Modify with PropertyEditor”
Make sure you click on the “Modify with PropertyEditor” button highlighted in blue as in the
photo below:
To return to the listing of all obstacles on this track, click the back arrow located next to the
obstacle name.
• Set the obstacle type to “pothole”. Your screen should look like this:
• Now change the parameters of the pothole to match the above photo.
Now your track is complete. Save your Road Builder file and close out of the Road Builder
window.
Now that you have created your own track, we will simulate a vehicle driving on that track. We
previously loaded the MSC_ADAMS/Car demo vehicle to allow us to create our track. Ideally,
you would simulate your own designs on the custom track. For this tutorial, we will use the
Demo Vehicle for simplicity.
Now when the ADAMS/SmartDriver interface opens, it should look like this:
Now your simulation will begin. This will take several minutes to run. You should see a message
window pop up. This window will keep you updated on all of the processes going on with the
simulation. When the simulation ends, your screen should look like this:
This will open an animation controller where you can play and rewind the vehicle’s motion.
• Hold down the “Z” key on the keyboard then hold down the left mouse button and drag
the mouse cursor up and down to zoom in and out.
• Hold down the “T” key on the keyboard then hold down the left mouse button and drag
the mouse cursor up and down to translate the objects on the screen.
• Hold down the “R key on the keyboard then hold down the left mouse button and drag
the mouse cursor up and down to rotate the objects on the screen.
Zoom completely out on the track and compare this view to the photo of Barber Motorsports
Complex at the first of this tutorial. Did your track turn out like you expected it to?
Move your screen view to your desired location by using the above methods. Now, click the play
button on the Animation Controls menu to watch your vehicle maneuver around the track.
The data from the simulation can now be viewed using the postprocessing window. Other
tutorials can guide you through this process.
• To open the postprocessing window, click on the main tool bar: Review/PostProcessing
Window.
Internal to the postprocessing window, you can look at plots of speed vs time, suspension
parameters, and hundreds of other pieces of data calculated during the simulation. This tool will
be extremely useful in the determination of how well all of your vehicle’s subsystems are
performing together.
It is important for you to vary the parameters in the SmartDriver menu to see how they affect the
simulation. It is good practice to try new scenarios on your own using SmartDriver to better your
understanding of how this particular simulation works.
Warning: Remember to change your working directory before you begin this lesson. If you do not,
Adams may not work correctly. Also remember to move everything you wish to keep from the working
directory before you log off. See the Opening Files tutorial for more information.