Professional Documents
Culture Documents
Version 9.0
Mechanical Simulation
Table of Contents
1. Introduction........................................................................ 3
2. Viewing CarSim Results.................................................... 4
Start CarSim.................................................................................... 4
Go to the CarSim Quick Start Dataset ............................................ 5
The CarSim Run Control (Home) Window Layout........................ 8
View a Simulated Video ................................................................. 9
View Video + Plots....................................................................... 12
View Model Information .............................................................. 20
3. Running New Simulations ............................................... 23
Make a New Database................................................................... 23
Run a Simulation........................................................................... 26
Run with a Different Vehicle Speed ............................................. 27
4. Making New Vehicles ..................................................... 32
Create a Modified Vehicle ............................................................ 32
Navigate the CarSim Database...................................................... 40
Create a Vehicle with Shared Datasets ......................................... 44
5. Managing Data................................................................. 48
Make a New Plot Dataset.............................................................. 48
Add a Plot to a Procedure Dataset................................................. 53
Copy Data from One Database to Another ................................... 54
Look at a Configurable Function .................................................. 61
View a Vehicle with Payloads ...................................................... 64
Browse the Installed Database ...................................................... 66
6. Learning More About CarSim ......................................... 67
CarSim Help System..................................................................... 67
Math Model Documentation ......................................................... 69
The CarSim Web Site ................................................................... 71
What to Read Next........................................................................ 72
NOTICE
This manual describes software that is furnished under a license agreement and may be used or
copied only in accordance with the terms of such agreement. BikeSim, CarSim, SuspensionSim,
TruckSim, VehSim, and VehicleSim are registered trademarks of Mechanical Simulation
Corporation.
© 1996 – 2014, Mechanical Simulation Corporation.
Last updated October 2014
— ii —
1. Introduction
This guide will introduce you to CarSim 9.0. It shows the basics for simulating tests, viewing
results, making changes to the vehicle and test procedure, and managing data in CarSim
databases.
No experience with using the software is assumed. If you have used versions of CarSim older
than version 9.0, we strongly recommend that you work through this guide. CarSim 9 introduces
a new plotting tool that has many features that were never available before. Also, the database
management has been changed to simplify some operations.
—3—
2. Viewing CarSim Results
Let’s start by viewing some of the simulation results generated by CarSim.
Start CarSim
Start CarSim by using the Start menu shortcut: Programs > CarSim 9.0 > CarSim or by
double-clicking a CarSim icon on your desktop.
When CarSim starts, it brings up a dialog box to select a database (Figure 1). If you have just
installed CarSim for the first time, there will be only one database shown.
Alert The first time you launch CarSim, a License Settings window will pop
up (Figure 2). Click the Select button to continue launching CarSim.
Note the checkbox with the caption: Don’t show this window when
starting . If you are using a network license, do not check this box;
you may need to select different license features in the future.
CarSim opens with a view of the most recently visited data screen. The first time CarSim is
launched following installation, this will be the CarSim Run Control screen (Home, Figure 3).
—4—
Chapter 2 Viewing CarSim Results
—5—
Chapter 2 Viewing CarSim Results
3. Look at the CarSim window title. If it ends with the category and name {* * Quick Start
Guide} Baseline (Figure 3), then you are looking at the right dataset; please continue
with step 4. Otherwise, use the Datasets menu (Figure 5) to show all of the datasets in this
library. Select the dataset * * Quick Start Guide Example > Baseline. After you make this
selection, the screen should appear much like Figure 3.
Figure 5. Use the Datasets menu to find the Quick Start Guide Example > Baseline.
—6—
Chapter 2 Viewing CarSim Results
Alert If you or someone else has been using the CarSim database, there is a
small chance that the Quick Start Guide Baseline dataset does not exist.
In this case, follow the instructions in the first two sections in the next
chapter to make a database with this Baseline example (these are sections
Make a New Database and Run a Simulation, starting on page 23).
Then return here to follow the steps for viewing simulation results.
4. Right-click and hold on the Help button for a tool tip (Figure 6).
Figure 6. Right-click and hold for information about a button or other control.
Note The right mouse button is used throughout CarSim to obtain tool tips.
Right-click and hold on buttons, fields, and various control objects to
obtain short summaries of their functions.
5. Click the Help button. This launches the Adobe Reader program with a PDF documentation
file for the current screen (Figure 7).
At any time, the documentation for the current screen can be obtained with this button or by
typing the F1 key. The Help menu can also be used to access many volumes of
documentation installed with CarSim.
Note All of the PDF documents in CarSim that are more than a few pages in
length include bookmarks for rapid access to sections of interest. For
example, Figure 7 shows the bookmarks for the Run Control Screen
document . Click on a topic such as Run Control to jump to that
section of the document .
After you have gone through this tutorial, you can return to the documentation for the Run
Control screen. For now, close the PDF window.
Review You have adjusted the appearance of the CarSim window by browsing
to a dataset that you will use in this tutorial. You have seen built-in
help available by right-clicking, typing F1, and using the Help button.
The Help menu gives direct access to all Help documents.
—7—
Chapter 2 Viewing CarSim Results
—8—
Chapter 2 Viewing CarSim Results
—9—
Chapter 2 Viewing CarSim Results
Figure 10. View of the axes origin and direction when shift-dragging.
d. Go to the menu Help > Video window mouse/keyboard controls or press the F1
key. This brings up a window showing all of the controls affecting the camera
(Figure 11). Close the window after reviewing the contents.
— 10 —
Chapter 2 Viewing CarSim Results
— 11 —
Chapter 2 Viewing CarSim Results
Review You have now gone through the main interactive controls for using VS
Visualizer for viewing video. The next section continues with VS
Visualizer, adding plots.
— 12 —
Chapter 2 Viewing CarSim Results
1. From the Run Control screen, click the Video + Plot button. In a few seconds, the VS
Visualizer window will appear showing the same video seen in the previous section, along
with plots for variables of interest for the double lane-change procedure (Figure 14).
Figure 14. Initial VS Visualizer view with video animation plus a grid of plots.
VS Visualizer is giving access to a great deal of information here. Note that there are three
kinds of panels in this window:
a. The view from the virtual video camera.
b. A grid showing all plots that were set up from the CarSim GUI.
c. The time controls, including the slider bar that you use to control the video.
As with any window with multiple panels, only one panel has the “focus” of Windows OS.
If you press a keyboard key, it goes to the panel with the focus. For example, the time
control panel has the focus in Figure 14.
You can adjust the vertical dividing line between the Video and the Plot Grid; drag it left
and right with the left mouse button.
2. Test the controls in the time control panel:
a. Click the play/pause button a few times to confirm that it works the same as
before. Notice that the vertical cursor lines in each plot also move, showing the
points in each plot that match the simulation time. The simulation time is shown as
before at the right edge of the time control panel .
b. Confirm that the slider control still works to go to a time of interest, identified
either from a plot or the video.
— 13 —
Chapter 2 Viewing CarSim Results
c. Confirm that keyboard shortcuts still work if the slider control has the focus. Use the
spacebar to start and stop; use the arrow keys ® and ¬ to move forward or
backward in small increments.
3. Double click any of the plots to expand it (Figure 15). The plot should have a noticeable
black outline, as shown in the figure. If you have doubt about focus, simply click in the plot
space to assure that the plot panel has the focus and will therefore handle keyboard inputs.
— 14 —
Chapter 2 Viewing CarSim Results
Figure 16. Grid view when the Vertical Forces plot has the focus.
Figure 17. View of vertical forces with digital display of variable values.
7. Recall that you can shrink or expand the view in the video panel by several means, with the
main one being the use of the middle mouse button (or the left and right buttons pressed
simultaneously). This also works in the plot area.
a. Press the middle mouse button (or the left and right pressed simultaneously) in the
plot region, and slide the mouse up and down to zoom in and out (Figure 18). The
cursor changes to a magnifying glass icon and a cross hair identifies the point
about which the zooming occurs.
— 15 —
Chapter 2 Viewing CarSim Results
Figure 18. Zoom in and out using the middle mouse button in the plot area.
b. Press the ‘r’ key to restore the plot scaling to the original view.
c. Move the cursor into the numbered part of the horizontal axis (Figure 19). The cursor
changes to indicate the horizontal effect . Press the left and right buttons
simultaneously and move the mouse left and right to zoom in and out in the
horizontal direction.
Figure 19. Zoom horizontally using the left and right mouse button in the horizontal axis area.
d. Move the cursor into the numbered part of the vertical axis . In this case, the
cursor changes to indicate a vertical effect. Press the left and right mouse buttons
— 16 —
Chapter 2 Viewing CarSim Results
simultaneously and move the mouse up and down to zoom in and out in the vertical
direction.
e. Another way to zoom is to use the left mouse button to drag a rectangle within the
plot area. When you release the button, the region you selected is zoomed to fill the
plot area.
8. When you are zoomed in, not all of the data are visible. You can pan the view area as
needed to bring more of the data into view. Three options are available for panning:
a. Press the right mouse button in the plot region and see that the icon changes to the
hand “drag” icon (Figure 20). Proceed to drag the plot contents in any direction.
Figure 20. Right-click and drag in the plot region to pan the whole plot in any direction.
b. Position the mouse in the numbered area of the horizontal axis. The cursor changes to
show a horizontal effect, as when zooming. Press the right mouse button and move
the mouse left or right to pan horizontally.
c. Position the mouse in the numbered area of the vertical axis. The cursor changes to
show a vertical effect, as when zooming. Press the right mouse button and move the
mouse up or down to pan vertically.
9. One of the plotted curves in the active plot is always selected, and is indicated by an outline
of the name in the legend. For example, the plot named “Tire L1 vertical” is selected in
Figure 20. You can jump to the point in the simulation where the selected plot has the
maximum or minimum value.
a. Press Ctrl plus the Up arrow key. VS Visualizer will jump to the time where the
maximum value of the selected variable occurs (Figure 21). In the figure, the value is
5853.3 N for the vertical force at the left front tire.
— 17 —
Chapter 2 Viewing CarSim Results
Figure 21. Use Ctrl+Up to go the maximum value for the selected data channel.
b. The video is synchronized and is therefore changed to show the corresponding point
in time. You can zoom and pan the video image as needed to see the orientation from
any view you wish.
c. Press Ctrl plus the Down arrow key. VS Visualizer will jump to the time where the
minimum value of the selected variable occurs.
d. Use the Tab key to cycle through the plots. For example, use the Tab key to select the
Tire R1 vertical force plot, and then use the Ctrl+Up and Ctrl+Down key
combinations to locate the times in the simulation when the right front tire force
reached maximum and minimum values.
10. Right-click and release anywhere in the plot area to view a pop-up menu with options for
working with the plot (Figure 22).
11. Go to the Help menu and select the item Plot window mouse/keyboard controls or press
the F1 key (if a plot panel has the focus). This brings up a window listing all of the controls
you have just tested (Figure 23). Close the window after reviewing the control options.
12. VS Visualizer initially shows the video window and plot grid within the same main window.
The video window can be undocked (drag the title bar area , Figure 21) outside the main
window, where you can size it as needed (Figure 24). Try this.
You can also add new video windows using the menu item View > New Animation
Windows, and add new plot windows using the menu item Plot > View Predefined Plot.
For example, Figure 24 shows the display when the video and the Vertical Forces plots are
each given their own windows, separate from the plot grid.
13. Exit VS Visualizer to return to the CarSim Run Control screen
— 18 —
Chapter 2 Viewing CarSim Results
Figure 22. Right click and release to view a pop-up menu with options for the plot.
Figure 23. Help window listing mouse and keyboard controls for plotting.
— 19 —
Chapter 2 Viewing CarSim Results
Figure 24. Visualizer windows can be added and located anywhere on your screen.
Review You have now gone through the main interactive controls for using VS
Visualizer. The following sections assume you are comfortable
zooming and viewing numerical values while synchronized with the
video. For more complete reference information, use the CarSim Help
menu and access the VS Visualizer reference manual (in the
Reference Manuals submenu).
— 20 —
Chapter 2 Viewing CarSim Results
Figure 25. View button in the lower-right corner of the CarSim Run Control screen.
1. Use the drop-down list next to the View button and select the first item Echo file with
initial conditions . Then click the View button to display the file in a text editor
(Figure 26).
— 21 —
Chapter 2 Viewing CarSim Results
a. The top of the file has System Parameters that exist in any VS Math Model. These
include the time step, start time, stop time, etc. These parameters are listed in
alphabetical order.
b. The next section has Model Parameters (dimensions, masses, coefficients, etc.), also
listed in alphabetical order.
c. The file next lists all of the Configurable Function (tabular) data, used to describe
nonlinear properties of the vehicle such as the suspensions and tires, and to specify
some of the control inputs.
d. Go to the end of the file, and see that it contains about 5000 lines (approximately 80
pages when printed).
e. Exit the text editor (Alt+F4).
The Echo file is generated by a VS Solver (the part of CarSim that performs the math model
calculations) to document all of the properties of the CarSim Math Model that were used in
the simulation run. This file provides extensive documentation of the CarSim Math Model
capabilities that were pertinent for the run. More details about the file are provided in the
reference manual for VS Solver Programs, accessed from the Help menu.
You will read Echo files but not modify them. There are methods to use Echo files as inputs
to the CarSim Math Model, but this is an advanced topic beyond the scope of this tutorial.
Review You have now used buttons on the right-hand side of the Run Control
screen to view outputs from a CarSim Math Model: Video, Video +
Plot, and View. You interacted with VS Visualizer — the main tool in
CarSim for viewing results. You also looked at the Echo text file that
lists all parameters used in the simulation.
— 22 —
3. Running New Simulations
As you go through this chapter, you will run some new simulations in CarSim. But first, you will
create a new database in which to experiment, without risk of corrupting the original installed
database.
Figure 27: Create a new database for use with this Quick Start Guide.
2. A window will pop up describing the next steps to be taken to create a new database from
the consolidated parsfile. Read the message and click Continue. You will then be given the
Windows file browser to locate a consolidated parsfile (extension CPAR, Figure 28). Locate
the file for this Quick Start Guide: CarSim90_Quick_Start.cpar and click the Open
button to continue.
— 23 —
Chapter 3 Running New Simulations
If you are not sure where the CarSim Prog folder is installed, you can
right-click on the CarSim item in your Windows Start menu and view the
properties. Another option for finding the CPAR file is to use Windows
to search for the file CarSim90_Quick_Start.cpar.
If you were already running in CarSim (that is, you selected the File menu item New
Database from a Consolidated Parsfile in step 1), you will be given a choice: Switch
(Same Window) or Additional Window; choose Switch (Same Window).
3. The Windows file browser will be shown again, prompting you make an empty folder for a
new CarSim database (Figure 29). To do this:
a. Navigate to a place on your hard drive for the new CarSim database folder. This
must be a location where you have read/write permission (e.g., My Documents).
b. Click the button Make New Folder .
c. The new folder will be highlighted with a name such as New Folder. While it is
highlighted, you can type a new name. Give it a suitable name, such as
CarSim_Data_QS . Warning: at this point, be careful not to click the New
Folder button again, or press the Enter key with the New Folder button selected (you
don’t want to create a second new folder!). Click the OK button to continue.
— 24 —
Chapter 3 Running New Simulations
Alert If your installation is set to show the License Settings window when
launching CarSim, you will once again see a license summary window
(Figure 30). Click the Select button to continue. There is a checkbox
to skip the display of this window that you might want to set ; do not
check this if you are using a network license because you might need
to select different license options in the future.
— 25 —
Chapter 3 Running New Simulations
Figure 31. Appearance of CarSim Run Control Screen after creation of the new database.
Notice that the Video and Plot buttons are dimmed. This is because the simulation output
files are not included in the CPAR file that you used to create this new database. Until you
run a simulation, there are no results to view. Also, notice that the Run Math Model button
is dimmed. This is because the dataset is locked. (All datasets in a new database are always
locked initially.)
The steps you have just taken for creating a new database are useful for creating a clean
database when starting a major new project; it is not necessary to repeat these steps for
everyday use of CarSim.
Review You have just gone through the steps needed to create a clean database
with only the data needed for the instructions that follow in this Quick
Start Guide.
Run a Simulation
You should still be viewing the locked CarSim Run Control screen for the single example
simulation in your new database (Figure 31).
1. Click the Lock button (Figure 32) to unlock this Run Control dataset. Notice that many
of the controls are now active, including the Run Math Model button . However, the
buttons for viewing videos and plots are still dimmed , because there are not yet any
simulation results to view.
— 26 —
Chapter 3 Running New Simulations
2. Right-click and hold on the Run Math Model button for a tool tip for this button. Recall
that you can always get tool tips in CarSim this way.
3. Click the Run Math Model button to make your first run. A status bar appears to show the
progress of the run (Figure 33). A CarSim Math Model runs significantly faster than real
time, so this will take just a few seconds.
Figure 33. Progress bar that is displayed when the CarSim Math Model is running.
When the run is complete, the progress bar disappears (Figure 34). The Video and Plot
buttons are now active because there are simulation results that can be viewed.
Figure 34. Baseline dataset after the first simulation was run.
4. Click the Video + Plot button , just as you did in the previous chapter. You should see
the same results from this new run in your new database that you saw before. Close VS
Visualizer when done.
Review You have just made your first simulation run in CarSim from the Run
Control screen. You will make many more — the fun is just getting
started!
— 27 —
Chapter 3 Running New Simulations
Note The category for the Baseline run in the new database is slightly different
than in the full CarSim database; it has a single asterisk rather than two.
This difference is intentional; it avoids name conflicts in the event that
datasets from one database are transferred to the other.
You will change the speed for the simulated test using this main screen.
1. Right-click the Duplicate button for the tool tip information. Then click the button to
duplicate the current dataset. You will be prompted to enter the name for the new dataset
(Figure 35). Enter a new name in the title field: My New Test . Click the Duplicate
button to finish the duplication of the Run Control dataset.
Note At this point, you have not created a new vehicle or test procedure. You
have simply duplicated a Run Control dataset that will use the same
vehicle and procedure datasets as the original.
The new screen display is nearly identical to the previous one. Initially the main difference
is that the CarSim window has the new name in the title ( , Figure 36), and some buttons
are dimmed. You will now make additional changes as shown in Figure 36.
2. Check the box to show more options . More controls will appear in the bottom part of the
screen, including another checkbox to override driver controls .
3. Check the box to override driver controls . This will show more controls, including one
for vehicle speed .
4. Use the drop-down control for choosing a method for controlling vehicle speed and select
the option Constant target speed . A yellow field appears next to the control . Enter
the value 150.
— 28 —
Chapter 3 Running New Simulations
Figure 36. The new Run Control dataset (after the speed is set).
Note The blue link to a Procedure dataset has a title that implies the test speed
is 120 km/h . Because the override controls appear in the Run Control
dataset after the Procedure blue link, this speed will override the value
specified in the linked Procedure dataset. This section of the Run
Control screen provides convenient controls to modify the test
conditions.
5. The Notes yellow field has text content from the original baseline Run Control dataset
that was copied. Edit this text to indicate that you have made changes.
6. Click the Run Math Model button. As before, a status bar shows the progress of the run.
7. When the run is complete, the Video and Plot buttons become active. Click the Video +
Plot button to view the simulation results with VS Visualizer. After viewing the results,
close VS Visualizer.
8. In the lower-right corner of the screen, right-click the checkbox Overlay animations and
plots with other runs (Figure 37) to read the tool tip, and then check the box. When
checked, results of multiple runs can be overlaid; potential links appear for selecting runs to
overlay.
9. Press the drop-down control to select an existing run to overlay. Choose Baseline
(from the submenu * Quick Start Guide Example). The screen should now show a blue
link (Figure 38).
— 29 —
Chapter 3 Running New Simulations
Figure 38. Screen appearance when set to overlay results with the Baseline run.
10. Next to the Video + Plot button, right-click the checkbox Set color (Figure 39). The tool
tip indicates the vehicle color can be set here; check the box to reveal a color selector .
— 30 —
Chapter 3 Running New Simulations
Note The new color affects the display in VS Visualizer. It does not affect
images in the CarSim GUI; for example, the image shown at the bottom
of the screen (Figure 38) will not change. The image on the Run Control
screen matches an image associated with the vehicle dataset contained
elsewhere in the database that uses the default color of the 3D object.
12. Click the Video button to view both runs in VS Visualizer (Figure 41). After viewing the
results, close VS Visualizer.
13. Use the Datasets menu (Figure 42) to return to the Baseline run .
Figure 42. Use the Datasets menu to return to the Baseline dataset.
Review In this chapter you created a new database for running through the
instructions in this Quick Start Guide. You ran simulations with two
vehicle speeds and overlaid results in VS Visualizer.
The method used in this section of setting test conditions from the Run
Control screen is often used to make quick variations of existing test
procedures. Later on, you will make a new Procedure dataset that can
be applied automatically to future runs.
— 31 —
4. Making New Vehicles
In the previous chapter, you created a Quick Start project database and ran two simulations. In
this chapter, you will make datasets that describe variants of the baseline vehicle and run
simulations with those variants. In doing so, you will learn some things about the CarSim
database design and some of the tools available for navigating among datasets.
Note The Quick Start database initially contains this single vehicle description.
It is possible to make many runs involving this vehicle. It is also possible
to modify the vehicle properties. However, this Vehicle Assembly
dataset is already shared with two existing simulation runs, so if the
vehicle is modified and the existing simulations are re-run, then different
results will be obtained because the vehicle data have been changed.
— 32 —
Chapter 4 Making New Vehicles
To avoid this potential problem, you will now make a completely new,
independent vehicle description that can be modified to create a variant.
The original vehicle description is still available to make new
simulations that might be needed for future comparisons with the original
baseline reference.
2. Select the File menu item New Dataset Plus All Linked Datasets (Figure 45). You will be
prompted to specify a category for the new datasets that are about to be created (Figure 46).
— 33 —
Chapter 4 Making New Vehicles
Figure 47. Use the Datasets menu to go to the new vehicle dataset.
— 34 —
Chapter 4 Making New Vehicles
c. If you right-click on any of the blue links, the tool tip indicates that the category of the
linked dataset is Modification #1 .
Click on the blue link for the sprung mass (Figure 48) to view the duplicated sprung
mass dataset (Figure 49). Confirm that it has the new Category name Modification #1 .
— 35 —
Chapter 4 Making New Vehicles
— 36 —
Chapter 4 Making New Vehicles
Figure 52. Controls for overlaying simulation results from multiple runs.
c. Click the Video + Plot button to view the simulation results from the two tests. Raising
the sprung mass might be expected to result in higher roll angles during this maneuver.
Zoom the plot for roll angle to confirm this (Figure 53).
When finished, close VS Visualizer.
Figure 53. Effect of raising the sprung mass on vehicle roll during the double lane change.
13. Compare the text Echo files for the two runs.
a. If necessary, use the drop-down control (Figure 52) to select Echo file with initial
conditions.
b. Click the View button to view the Echo file generated for the lifted vehicle with the
ConTEXT text editor.
c. With the text editor showing the Echo file, find the CarSim window (it might be behind
the text editor window).
d. Click on the blue link for Baseline. You should now be viewing the Run Control
dataset for this run.
e. Select Echo file with initial conditions and click the adjacent the View button. The text
editor should show the Baseline Echo file, with a tab to access the other file (Figure 54).
— 37 —
Chapter 4 Making New Vehicles
Figure 54. Using the ConTEXT text editor to view Echo files.
f. Select the Tools menu item Compare. This brings up a dialog box (Figure 55). Use the
controls to set each file name to the two files that are open ( and ) and then click
the Compare button .
Note The names of the files associated with any CarSim dataset are
machine-generated using universal unique identifier (UUID)
hexadecimal numbers. When looking at these file names, you only
need to pay attention to the first few characters of the UUID. For
— 38 —
Chapter 4 Making New Vehicles
example, the two Echo files shown in Figure 54 and Figure 55 have
names that begin “Run_f6…” and “Run_5e…”.
When you click the Compare button, ConTEXT displays a comparison window with
differences in the files highlighted in yellow (Figure 56).
Review You have now made three runs in the new Quick Start database: the
original baseline, a run with the original vehicle but at a higher test
speed of 150 km/h, and a modified vehicle, running at the original 120
km/h.
You viewed the differences in vehicle behavior with the aid of
animation and by comparing plots of vehicle response variables such
as roll angle.
— 39 —
Chapter 4 Making New Vehicles
You used the ConTEXT text editor to compare the full datasets
associated with the simulations and confirmed that only two input
parameters were different. You might also have seen differences in
calculated properties and initial conditions that were affected by those
two parameters.
Figure 57. Simulation runs are assembled from Datasets selected from Libraries.
Building a vehicle is done in the software by linking to subsystems and parts from the database.
Conceptually, this is similar to building a physical vehicle from existing systems and parts such
as tires, powertrain, suspensions, etc. Just as the same type of tire might be used on all four
wheels of a physical vehicle, the same tire dataset can be use for all four wheel positions of the
simulated vehicle.
In the previous section, you navigated between three screens and compared the text files
generated for the simulation run named Baseline and the one named Modified Vehicle #1. In this
section, you will learn about more navigation tools to quickly view any vehicle components of
interest that are used in a simulated test.
1. Use the Datasets menu to navigate to the Modified Vehicle #1 dataset (Figure 58).
— 40 —
Chapter 4 Making New Vehicles
— 41 —
Chapter 4 Making New Vehicles
Figure 60. The CarSim Run Control screen with the Linked Data sidebar.
a. Adjust the split between the notes and the link viewer with the horizontal double line
(click and drag).
b. Adjust the width of the sidebar with the vertical double line between the sidebar and
dataset part of the window .
The figure uses red marks to show the connection between the CarSim Run Control dataset
name and the first item in the viewer . Blue marks show the connection between the
vehicle link and the name of the dataset in the viewer .
The dataset that is currently in view is shown in bold in the link viewer. In this case, it is
CarSim Run Control: Modified Vehicle #1 .
6. Click on the blue link button for the vehicle assembly to go to that dataset (Figure 61).
Notice that the Linked Data display now has the second line highlighted in bold ,
indicating that the Vehicle Assembly screen is in view .
Datasets that have links to other datasets have a control to expand (+) or collapse (-) the
view. Click on the (+) control for the Vehicle Assembly to view all of the links used for
this dataset.
If there is not enough room to read a full dataset name in the viewer, hover the mouse over
the name and the full name will pop up, as shown in Figure 61 for the sprung mass link
that you previously visited by using the blue link .
7. Notice that the map in the sidebar shows four tire dataset links, as would be expected for a
four-wheeled vehicle ( and , Figure 61). However, the Vehicle Assembly screen has
only a single link to a tire dataset . The tire dataset is used four times in different
locations, as specified with the drop-down control .
The database design in CarSim lets you build the virtual vehicle with “parts” represented by
datasets. The same dataset can be used repeatedly in different contexts. Double-click on the
blue link for the tire to view the tire dataset (Figure 62).
— 42 —
Chapter 4 Making New Vehicles
— 43 —
Chapter 4 Making New Vehicles
The linked dataset viewer not only shows information, but also provides quick access to any
visible dataset. Double click on the name of a dataset to bring it into view. For example,
double-click on the CarSim Run Control item to bring it into view again.
Review You have seen the major tools in CarSim for navigating through the
database. The Datasets menu lists all of the datasets in the current
library; the Libraries menu lists all of libraries in CarSim; the Go To
menu has commands allowing you to browse to different libraries or
datasets; buttons in the upper-left part of the window offer one-click
alternatives to the menus.
The linked dataset viewer in the bottom part of the sidebar shows a
map of all datasets connected to a Run Control dataset; double-click on
any one of them to quickly view the dataset of interest.
— 44 —
Chapter 4 Making New Vehicles
Figure 64. Copy and Link to make a new Vehicle: Assembly dataset.
3. Click the blue link for the new vehicle dataset (Figure 63) that you just created (Figure
64) to bring the Vehicle: Assembly screen into view (Figure 65).
Figure 65. Copy and Link to make a new Vehicle Sprung Mass dataset.
4. Click on the drop-down control adjacent to the blue link for the vehicle (Rigid) sprung mass
and choose the first item on the menu: [Copy and Link Dataset]. When prompted, set
the Category to Modification #2 and the title to Modified Sprung Mass #2,
and click the Copy and Link button to finish. You should see the name of the linked sprung
mass dataset change to match the name you entered: Modified Sprung Mass #2.
5. Click the blue link for the sprung mass dataset to bring it into view (Figure 66).
6. Edit the wheel center heights for the front wheels to 100 to match the rear wheels .
7. The linked dataset viewer shows the datasets referenced for the Run Control dataset named
Modified Vehicle #2 . It shows that the Vehicle Assembly dataset associated with this
run is also named Modified Vehicle #2 . Click the ‘+’ button preceding the vehicle
dataset to expand the view to show all datasets linked to the Vehicle Assembly screen. The
Sprung Mass dataset currently in view should appear in bold . (If not, click the viewer
Refresh button .)
In this section of the Quick Start Guide, you have created three new datasets: the new run
, the new vehicle assembly , and the new sprung mass . All other properties of the
vehicle are represented with the same datasets that are shared with the modified duplicate
vehicle, Modified Vehicle #1, that was created in the previous section.
Go to the Run Control dataset by double-clicking its name in the dataset viewer .
— 45 —
Chapter 4 Making New Vehicles
Figure 67. View of vehicle lifted at both axles (green) overlaid with the baseline (blue).
— 46 —
Chapter 4 Making New Vehicles
10. Update the notes for this run to describe the change made to the vehicle (Figure 68).
Review You have created a second vehicle variant named Modified Vehicle #2.
In this case, you only created three new datasets: (1) a new Run
Control dataset with a link to a new Vehicle Assembly dataset; (2) the
new Vehicle Assembly dataset with a link to a new Vehicle Sprung
Mass dataset, and (3) the new Vehicle Sprung Mass dataset with all
four wheel centers set to a height of 100 mm.
You created the new Vehicle Assembly and Vehicle Sprung Mass
datasets by using the Copy and Link command that is available with
all blue links.
— 47 —
5. Managing Data
CarSim keeps vehicle and simulation data organized into libraries of dataset files. In the previous
chapters, you have worked mainly in a small database that you created following the instructions
in this guide. You created new datasets by copying existing ones and making small modifications.
In this chapter, you will look at some more kinds of data in CarSim. You will start by creating a
new dataset from scratch. You will see how to copy datasets from one database to another,
working with more examples from the database installed with CarSim. You will then explore the
CarSim database to see the types of vehicles and test maneuvers that are available as examples.
Note The CarSim Math Models can produce hundreds or even thousands of
output variables for each simulation. It is possible to make new runs with
only subsets of the available variables, saving both file space and time
during post-processing. For the purpose of this tutorial, the checkbox
— 48 —
Chapter 5 Managing Data
Write all outputs is checked to ensure that all output variables are
available for plotting.
1. Use the drop-down control to show more plots (Figure 69) and choose 1. This will cause
CarSim to display a potential blue link to a plot description . Until this is linked to a
dataset, it is shown gray with a dimmed title: {No dataset selected}.
2. Check the box Only these plots .
3. Click on the drop-down control adjacent to the plot link . Choose the second item on the
menu: [Link to New Dataset]. You will be prompted to give a name for the new dataset
(Figure 70). For now, leave the default category and title alone (accept the default names)
and click the button Create . The link is now blue and shows the title for the newly
created dataset (Figure 71).
— 49 —
Chapter 5 Managing Data
— 50 —
Chapter 5 Managing Data
a. For the X axis, the default variable is Time, which is the first one listed . Make sure
it is selected.
b. For the Y axis, choose Select by type of component and then select the type
Suspensions . Choose the option to Show short names .
c. Search for the jounce variables: Jnc_L1, Jnc_L2, Jnc_R1, and Jnc_R2 . For more
information, right click and hold while one of these is selected .
d. These are the variables we want to plot. Double click on each one; they should then
appear in the yellow field listing variables to plot (Figure 73).
5. Now that we have chosen variables to plot, we can use a better name for this dataset than the
default. Use the CarSim menu item Edit > Change Title or Category of This Dataset (or
press the keyboard shortcut Ctrl+T) to change the title. This brings up two yellow fields and
a drop-down at the top of the screen to set the dataset title and category (Figure 74). Set the
title to Suspension Jounce and then click the Set button . Confirm that the title
of the Plot Setup dataset has the name you just specified.
Figure 75. The link to the Plot Setup screen shows the new title.
Note It would have been more efficient to specify the title “Suspension
Jounce” when the new Plot dataset was created in step 3. The extra step
of renaming the dataset was included here to show how easy it is to
change the names of existing datasets.
— 51 —
Chapter 5 Managing Data
7. Click the Video + Plot button. Because the Run Control screen had been set up to show
overlay plots and animations, you should see jounce variables from the original vehicle and
the variant called Modified Vehicle #2 (Figure 76). Two things these plots show are:
Figure 76. Newly defined plot for suspension jounce at each wheel.
a. The jounce variables from the modified vehicle cover a wider range. This is to be
expected because the modified vehicle sprung mass was lifted, and as a result,
experiences a larger range of motion in roll.
b. The jounce variables start at zero for all wheels for both vehicles. The heights of the
wheel centers shown on the sprung mass screen define the relationships between the
wheel-center height and the sprung mass in the design configuration, which is usually
where jounce is defined as zero. Even though the variant (Modified Vehicle #2) is
lifted, the assumption is that this is the design configuration, so the initial jounce is
zero.
After viewing, close VS Visualizer.
Review You created a new Plot Setup dataset. CarSim scanned an existing
output file to show all of the variables available for plotting, and you
picked four of them. Although CarSim comes with over 200 plot
datasets, you will inevitably want to create new plots for your own
project applications using the same steps you have taken here. You
also changed the name of a plot dataset and saw that the link to it on
the Run Control screen was automatically updated to show the new
name.
— 52 —
Chapter 5 Managing Data
Figure 78. Add a plot definition to the dataset for the double lane change procedure.
This screen has driver controls, simulation start and stop conditions, road and potentially
other environmental settings, as well as plot definitions associated with the procedure.
Notice that the speed of 120 km/h used in the baseline procedure is set here .
— 53 —
Chapter 5 Managing Data
3. Unlock the dataset, then click the drop-down control adjacent to an unused data link for a
plot to view a menu of available plot datasets. Choose the dataset you created:
Suspension Jounce . The link should be blue after you make this selection.
4. Return to the Home screen.
5. Navigate from the run named Modified Vehicle #2 to the run named Baseline (use the
Datasets menu).
6. Click the Plot button. You should see one more plot than has been available on previous
occasions where you viewed plots for this run (Figure 79). View the Suspension Jounce plot
to confirm that it shows the four jounce variables. After viewing, close VS Visualizer.
Figure 79. Confirm that the new Suspension Jounce plot is now associated with this procedure.
— 54 —
Chapter 5 Managing Data
2. CarSim will show a dialog box with options to open a new window for the second database,
or to use the same window. Click the Additional Window button.
— 55 —
Chapter 5 Managing Data
Figure 83. CarSim icons in the task bar or task switcher specify the associated database names.
4. For now, minimize the CarSim window for your Quick Start database (Figure 84).
Figure 84. Minimize the CarSim window for your Quick Start database.
5. Click the Lib Tool button in the remaining CarSim window (this should be the window for
the main database that was installed with CarSim, Figure 85).
— 56 —
Chapter 5 Managing Data
— 57 —
Chapter 5 Managing Data
Figure 88. The Library Tool window, showing datasets from the Plot Setup library.
Figure 89. Specify the name and location for the exported CPAR file.
— 58 —
Chapter 5 Managing Data
8. Minimize the CarSim window for the full database (e.g., CarSim_Data).
9. Use the Windows task bar or type Alt+Tab as needed to bring the CarSim window into view
that is associated with your Quick Start database (see Figure 83, page 56).
10. Select the File menu item Import Parsfile (Any Export Type) (see Figure 80, page 55).
CarSim will prompt you to specify a file with a file browser; select the CPAR file you
created in step 7.
Next, CarSim will prompt you to choose options for datasets that might be duplicated.
Figure 90 shows the default settings; go with the options Do not overwrite existing local
data , Match by UUID , and Preview Results , and then click the OK button .
Figure 91. Preview of files, showing which will be imported and which will be skipped.
The first column in the table gives the Import Action: Skip or Import. In this example, two
datasets will be skipped ( and ) because they are already in the database; they have the
same names and same UUID as datasets already present. All others will be imported.
— 59 —
Chapter 5 Managing Data
Click the OK button to proceed. CarSim will spend a few seconds to import the plot
datasets and integrate them into the database, and then show a summary of the actions that
were taken (Figure 92).
Figure 93. Choose from among the many plot datasets that were imported.
13. Return to the Home screen and click the Plot button to view the new plots. There should be
a plot showing time histories of the four spring forces (or variables specified by whatever
plot setups you added in step 12).
— 60 —
Chapter 5 Managing Data
Review You now have two CarSim windows available, each showing a
separate database. You have seen how to transfer data from one to the
other.
Figure 94. The Procedure screen has a link to a Steering: Driver path follower dataset.
2. Click on the blue link for a Steering: Driver path follower dataset named Double Lane
Change (Quick Start) . This will bring the path follower dataset into view (Figure 95).
This screen shows a configurable function in which a lateral offset is calculated as a function
of station (longitudinal distance along a path). This information is given in several places:
axis labels for a graphic plot ; the caption above the table of numbers ; and text under
the plot that gives information about identifying data for the function in Echo files .
— 61 —
Chapter 5 Managing Data
Figure 95. The target path for the driver model is defined by a table of numbers.
The dataset shown in the figure specifies that the dependent variable (Lateral offset) is
calculated from a table of numbers using linear interpolation with flat-line extrapolation
. A plot shows the relationship between the two variables .
3. Unlock the dataset. Click the drop-down control that specifies the function type to see
the available function types. Change the function type to Constant to see how the screen
changes. Repeat for each of the other types.
When you are through viewing the function type options, click the Undo button
repeatedly until it is dimmed, indicating that the dataset has been restored to its original
state. Re-lock the dataset.
4. Use the Libraries menu to go to the Powertrain: Engine library. This name is part of the
submenu Powertrain. The Powertrain: Engine screen (Figure 96) shows a configurable
function in which an output (engine torque) is calculated from two known variables (engine
speed and throttle position). In this case, the calculation method is specified as 2D linear
interpolation and extrapolation . Multiple plots are shown and the table includes
multiple columns, each associated with a different throttle position . To help adjust the
view for the table, a vertical splitter control can be moved horizontally.
5. Click the View 3D Map button at the bottom of the screen for a 3D view of the data
(Figure 97). Use the left mouse button to rotate the view; use Ctrl plus the mouse to zoom.
Exit the viewer (Alt+F4 or close the window) when you are done.
— 62 —
Chapter 5 Managing Data
— 63 —
Chapter 5 Managing Data
— 64 —
Chapter 5 Managing Data
— 65 —
Chapter 5 Managing Data
Note The Dataset References window remains visible until you manually
close it. It is sometimes convenient to keep the window in view when
multiple datasets are displayed; this allows quick access to any of them.
6. Click the Video button to view the simulation results involving this vehicle. Close VS
Visualizer when you are done.
Review You have almost completed the hands-on part of this guide for using
the software. The concluding chapter has just a little more, this time
involving more documentation that is included in CarSim.
— 66 —
6. Learning More About CarSim
Now that you have finished the hands-on introduction, you are in a better position to explore
more CarSim features.
Figure 102. Information available from the Help menu and View button.
All of the documentation has been indexed to provide a rapid search capability. The second item
on the Help menu is Search Help. Select this item to bring up a search window (Figure 103)
from your installed PDF browser (typically Adobe Reader). In the figure, the window confirms
that the index file was set automatically to CarSim_Help.pdx . Enter a word or phrase as
search criteria (e.g., tire models ). Click the Search button to bring up all occurrences
— 67 —
Chapter 6 Learning More About CarSim
of the phrase (Figure 104), and click on any of the results to view that occurrence in your PDF
reader.
Figure 103. The Search window for PDF files (access with the Help menu item Search Help).
— 68 —
Chapter 6 Learning More About CarSim
Figure 105. View button in the lower-right corner of the CarSim Run Control screen.
1. Use the drop-down list to select the item Outputs from math model (text) , then
click View to see the text file in the editor (Figure 106). The variables are listed in
alphabetical order, based on the unique short names used to identify each variable.
2. Use the search feature in the text editor to search for “Jnc_”. (Use the Edit menu item Find
or type Ctrl-F to bring up the search dialog box.) You should find the variables that you
located in the CarSim Plot Setup screen to create a new custom plot (Chapter 5).
Close the text editor when you’re done.
3. If you have Excel or another spreadsheet program on your computer, use the drop-down list
next to the View button (Figure 105) to select the item Outputs from math model
(Excel), then click View . The same information shown before in a text file is now shown
in a spreadsheet. The original sequence is in alphabetical order, as with the text version.
However, the spreadsheet includes other labels such as component, units, and type, and can
be sorted using any of those alternate labels.
For example, Figure 107 shows the names of the output variables sorted by component. The
figure shows how all variables related to suspension are grouped together, making it easier
to find the names of all suspension-related variables available for plotting.
Close the spreadsheet when you are done.
— 69 —
Chapter 6 Learning More About CarSim
Figure 106. Text file listing all output variables available from a CarSim Math Model.
Figure 107. Spreadsheet showing output variables available from a CarSim Math Model.
— 70 —
Chapter 6 Learning More About CarSim
4. Use the drop-down list (Figure 105) to select the item State variables in the math
model , and then click View . This brings up a description of the CarSim Math Model,
listing all state variables.
When you are through viewing the text files, close the text editor.
Note Your email is used on the web site only as a password: it is not saved or
recorded.
It will only work if it is listed in the Mechanical Simulation license
database with your other license information. If it doesn’t work, contact
Mechanical Simulation by sending an email to
licensecontrol@carsim.com with your key ID and contact information.
— 71 —
Chapter 6 Learning More About CarSim
This email address is initially set for the person who purchased the
software.
Once logged in, you will see a user section with backup copies of the software, updates, bug
reports, fixes, and other resources that are added as part of normal maintenance.
2. If you will be working with Simulink, you should read the tech memo Example: Running
with Simulink.
3. The VS Solver Programs manual (in the Reference Manuals submenu of the Help
menu) gives reference information about the solver programs such as input files, output
files, and basic format rules.
4. Details about the vehicle model are covered in Help documents linked to the relevant data
screens. Depending on your interest and expertise, you can read the documentation
concerning the parts of the vehicle that are of greatest interest to you.
Another option for quickly learning about CarSim and its more advanced features is to take a
training course from Mechanical Simulation. This is highly recommended if you are new to
CarSim. The classes expand upon the material learned in this manual by introducing new
examples and teaching many tips for using the software. Please see www.carsim.com for
details. For example, see www.carsim.com/events/ for upcoming webcasts, or subscribe
to our free newsletter at www.carsim.com/forms/newsletter.php.
— 72 —
Chapter 6 Learning More About CarSim
— 73 —
Mechanical Simulation
755 Phoenix Drive, Ann Arbor MI, 48108, USA
Phone: 734 668-2930 • Fax: 734 668-2877 • Email: info@carsim.com
carsim.com