0% found this document useful (0 votes)
2K views233 pages

Carsim Educational User Refence Manual

carsim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views233 pages

Carsim Educational User Refence Manual

carsim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 233

CarSim Educational

User Reference
Manual

July 1998
NOTICE
This manual describes the CarSim Educational software.
© 1996 - 1998, Mechanical Simulation Corporation
© 1995, The Regents of the University of Michigan. All Rights Reserved.

CarSim™ is a trademark of Mechanical Simulation Corporation.


Table of Contents
1. Introduction ............................................................................................. 1
About This Manual .......................................................................................1
What CarSimEd Is ........................................................................................1
What CarSimEd Does ....................................................................................3
What CarSimEd Does Not Do ..........................................................................4
How CarSimEd Works...................................................................................5

2. Database Organization............................................................................... 7
Introduction to the CarSimEd Database ...............................................................7
Data Screens...............................................................................................8
On-Line Help............................................................................................ 10
A Map of the CarSimEd Libraries and Screens..................................................... 10

3. How to Use CarSimEd .............................................................................13


About the Runs Screen................................................................................. 13
How to Get to a Runs Screen.......................................................................... 14
How to Make a New Run.............................................................................. 15
How to Replace a Run ................................................................................. 17
How to View an Animation ........................................................................... 17
How to View a Single Predefined Plot............................................................... 18
How to View Several Predefined Plots .............................................................. 19
How to Overlay Plots for Several Runs.............................................................. 19
How to Define Plots Interactively .................................................................... 20
How to View All Model Parameters and Inputs.................................................... 21
How to Print a Data Set ................................................................................ 21
How to Make a New Vehicle Input .................................................................. 21
How to Modify an Existing Vehicle Input .......................................................... 23
How to Go Directly to Any CarSimEd Library..................................................... 24
How to Lock Your Data ............................................................................... 25
How to Delete Data Sets ............................................................................... 26
How to Set Up Five or More Plots ................................................................... 27
How to Overlay Plots for Four or More Runs ...................................................... 28
How to Make Many Plots in Batch Mode ........................................................... 29
How to Set Up Multiple Runs......................................................................... 29
How to Make New Plot Descriptions ................................................................ 30
How to Change Plot Formatting ...................................................................... 32
How to Assign the Default Text Editor .............................................................. 32
How to Improve the Appearance of the CarSimEd Screens ...................................... 33
How to Install CarSimEd in a New Directory ...................................................... 35
How to Import Data from Another Copy of CarSimEd ........................................... 38
How to Convert Units for Tabular Data ............................................................. 39

i
4. The Simulation Solver Programs................................................................41
Overview of Program Operation...................................................................... 41
File Types................................................................................................ 42

5. The Animator..........................................................................................46
Updates................................................................................................... 46
Overview of Operation................................................................................. 46
Reference Frames....................................................................................... 47
Files....................................................................................................... 48
Units ...................................................................................................... 49
File Menu ................................................................................................ 49
Edit Menu................................................................................................ 51
Animation Menu ........................................................................................ 53
Coordinates Menu ...................................................................................... 53
Options Menu ........................................................................................... 55
Help Menu ............................................................................................... 58
Pop-Up Menu............................................................................................ 58
Time Control Slider .................................................................................... 59
Testing Animator Data Sets ........................................................................... 59

6. The Plotter..............................................................................................62
Updates................................................................................................... 62
Overview of Operation................................................................................. 62
Batch and Interactive Operation ...................................................................... 63
Zooming.................................................................................................. 64
Tool Bar.................................................................................................. 66
File Menu ................................................................................................ 66
Edit Menu................................................................................................ 68
Format Menu ............................................................................................ 70
Data Menu ............................................................................................... 76
View Menu .............................................................................................. 84
Windows Menu ......................................................................................... 86
Help Menu ............................................................................................... 88

7. Design of CarSimEd Data Screens .............................................................89


The Ribbon Bar ......................................................................................... 89
Data Links ............................................................................................... 94
Tabular Data............................................................................................. 96
File Menu ................................................................................................ 97
Edit Menu................................................................................................ 99
Text Menu ..............................................................................................100
Page Menu ..............................................................................................102
Tools Menu .............................................................................................103

ii
8. Alphabetical Library Screen Reference .................................................... 106
Conventions in This Chapter .........................................................................106
Animator Camera Setup ..............................................................................108
Animator Groups.......................................................................................111
Animator Reference Frames..........................................................................113
Animator Shapes.......................................................................................116
Animator Wheels ......................................................................................118
Calculator ...............................................................................................120
Cars ......................................................................................................126
CarSimEd Startup......................................................................................129
Computation Parameters..............................................................................133
Input: Braking ..........................................................................................136
Input: Road Profile ....................................................................................137
Input: Steering Wheel Angle .........................................................................139
Input: Wheel Height Above Ground ................................................................140
Library Editor ..........................................................................................141
Link Type Independent Suspension .................................................................143
Plot Format .............................................................................................145
Plot Setup: Batch.......................................................................................148
Plot Setup: Single ......................................................................................150
Plot Transforms ........................................................................................153
Runs .....................................................................................................154
Runs: Batch.............................................................................................161
Suspensions.............................................................................................163
Tires: CarSimEd “Classic” ...........................................................................166
Tires: Cornering Stiffness ............................................................................169
Tires: Pneumatic Trail.................................................................................171

Appendix A — Glossary ............................................................................ 174

Appendix B — ERD File Format.................................................................171


The Header..............................................................................................171
The Data Section.......................................................................................175

Appendix C — Plotter Files and Keywords................................................... 177


The RunWinEP Program .............................................................................177
PLT Batch Control Files ..............................................................................177
Plot Template Files ....................................................................................178
Plot Format Files.......................................................................................179
Preference File Format ................................................................................182

Appendix D — Animator Files and Keywords .............................................. 183

Appendix E — Model Files and Keywords ................................................... 188

iii
File Types...............................................................................................188
Keywords ...............................................................................................191
Data for the 3D Braking and Handling Model.....................................................191
Data for the 2D Ride Model..........................................................................196
Data for the 3D Suspension Kinematics Model ...................................................197

Appendix F — 3D Vehicle Handling Model ................................................. 200


Introduction.............................................................................................200
Nomenclature...........................................................................................201
Overview of Factors Affecting Vehicle Behavior.................................................203
Rigid body kinematics ................................................................................203
Masses and inertias ....................................................................................205
Suspension Force Effects .............................................................................205
Tires .....................................................................................................207
Comparison Using Benchmark Model..............................................................214
Closure ..................................................................................................216
References ..............................................................................................217

Appendix G — Model Output Variables....................................................... 219


Output Variables for the 3D Handling Model .....................................................219
Output Variables for the 2D Ride Model ...........................................................222
Output Variables for the 3D Suspension Kinematics Model.....................................222

iv
1. Introduction
This chapter introduces the CarSim Educational software, called simply CarSimEd in this
manual. It provides an overview of what the software can do for you and how it works.

About This Manual


This manual is written to help you understand and use CarSimEd. It covers several
themes:
• The first two chapters provide an overview of CarSimEd and its use.
• Chapter 3 provides a summary of how to perform common operations in
CarSimEd.
• Chapters 4 through 8 provide reference material for CarSimEd features.
Chapter 8, the largest in the manual, describes the data screens in alphabetical
order.
• The appendices provide technical details such as a glossary, file formats,
model parameter definitions, output variable names, and assorted modeling
details.
Although we would not discourage you from reading this manual from beginning to end,
we recognize that your time is valuable and that you might start by reading only what you
think is absolutely necessary. Please read Chapters 1 through 3. These chapters provide
an overview of how you use CarSimEd. Other chapters can be read as needed or for
reference.
The most recent version of this manual can be obtained (free) from the web site:
www.trucksim.com.

What CarSimEd Is
CarSimEd is a free software collection available from the web site of Mechanical
Simulation Corporation (MSC): www.trucksim.com
It is an easy-to-use software package for simulating and analyzing the braking and
handling behavior of vehicles with four-wheel independent suspensions. CarSimEd
performs virtual tests, replacing an instrumented test vehicle with a computer model. It
has several separate simulation programs. Each solves equations of motion numerically
for a mathematical model designed to predict vehicle behavior.

—1—
Chapter 1 Introduction

1. A comprehensive 3D handling model that computes response time histories for


steering, braking, and throttle inputs.
2. A 2D pitch-plane model for simplified ride analyses.
3. A 3D kinematics model (no dynamics or compliance) of a 5-link suspension.
Simulation results can be viewed as wire-frame animations or as plots of output variables.
These plots can be generated automatically for any combination of the many variables
calculated during the simulation.
The software runs on Intel PC’s equipped with Windows or Windows NT.
The simulations run much faster than you might expect for such detailed models. On
almost any Pentium computer, the programs run faster than real time. On new (1998)
Pentium desktop computers, the most detailed model runs nearly 10 times faster than real
time. In other words, a run simulating a 100-second test will finish in less than 10
seconds.

3D Braking and Handling Model


The main simulation program in CarSimEd is a handling model with 31 state variables,
covering 18 degrees of freedom in the mechanical system. The kinematical and
dynamical equations are valid for full nonlinear 3D motions of rigid bodies. The
simulation uses a nonlinear tire model and includes the major kinematic and compliance
effects in the suspensions and steering systems in passenger vehicles.
For control inputs, CarSimEd accepts time histories of brake input, throttle input, and
steering wheel angle (open-loop control). CarSimEd also has a closed-loop controller to
maintain constant speed in the absence of braking inputs.
Three versions of the 3D handling model are available:
1. The original CarSimEd program. This is a stand-alone EXE file that requires no
other software to run. It is a fully parametric model that contains the equations of
motion and reads parameters as inputs.
2. A C-MEX version that runs under SimuLink, a simulation environment that can
be licensed from the MathWorks, Inc. This version contains the same equations as
the standard EXE and uses the same parameters. The C-MEX version will not run
without SimuLink.
3. A tire plug-and-play (PnP) version. This is another stand-alone EXE file,
provided by Robertson and Robertson Consultants, Inc. (RRCI) It has the same
vehicle dynamics equations, but instead of a built-in tire model, it has PnP
capability that lets users provide new tire equations at run-time.
This manual fully covers the use of the standard program. Use of the C-MEX version
requires some familiarity with SimuLink. Use of the PnP version requires some
familiarity with the PnP Tire interface. For the latest information, see the RRCI web site:
http://www.rrci.com.

Rev: July 28, 1998 —2—


Chapter 1 Introduction

2D Ride Model
The ride model uses a subset of the input parameters required for the more detailed 3D
model. Information related to roll or yaw motion is ignored. This model can be used to
determine how basic ride parameters (wheelbase, mass center, spring and damper rates,
etc.) affect the behavior of a car going over bumps.

3D Suspension Model
The suspension model is of a 5-link design, as described in the IAVSD benchmark (M.
Hiller and S. Frik, “Five-Link Suspension,” from Multibody Computer Codes in Vehicle
System Dynamics, Supplement to Vehicle System Dynamics, vol 22, 1993. pp 254 - 262).
The model can simulate short-long-arm (SLA) wishbone suspension, and also the 5-link
rear suspensions used in some Daimler-Benz automobiles.

What CarSimEd Does


CarSimEd simulates tests on the computer, producing the same kinds of outputs that
might be measured with physical tests involving an instrumented vehicle. It can be used
to learn about the effects of vehicle design parameters on vehicle behavior.
With CarSimEd, you work in the same way that you would approach a vehicle dynamics
problem with actual hardware. First you specify the vehicle to test, including selection of
components (springs, tires, etc.) that would be installed. Then you design a test maneuver
that will produce the type of behavior to be analyzed. In lieu of the physical “test,” you
run the simulation program. Time histories of all the relevant variables are recorded in
output files. You can examine the results from the output files through animation or by
viewing engineering plots of motions, forces, etc.
You can use the suspension kinematics model in CarSimEd to see how changes in
suspension geometry determine how steer and camber change with suspension deflection.
The basic operation of CarSimEd involves the following sequence:
1. As required, modify the vehicle parameters (dimensions, mass properties, etc.)
and the parameters (dimensions, stiffness coefficients, etc.) of the vehicle
components (brake system, steering system, shock absorbers, springs, etc.).
2. Specify the control inputs for steering, braking, and throttle.
3. Run the simulation.
4. Animate the simulation output to get an overall view of the vehicle behavior.
5. Make plots to analyze behavior in more detail.
With practice, you will be able to evaluate how component and vehicle designs affect
critical aspects of behavior such as directional stability, load transfer, and rollover.

Rev: July 28, 1998 —3—


Chapter 1 Introduction

What CarSimEd Does Not Do


CarSimEd is not a general-purpose simulation tool. It is customized for the kinds of
simulations described above. Simulations with other models are not possible without
adding programs.
Some limitations of CarSimEd are:
• The handling model does not support closed-loop steering control to follow a
prescribed path, nor does it support closed-loop speed control for variable
speed.
• The suspension springs, dampers, compliance, and kinematics are modeled
with linear coefficients. There are no bump stops.
• The handling model assumes constant steer ratios (no Ackerman effect.)
• The brakes are modeled with linear gains between brake torque and brake
input.
• The standard tire model does not allow specification of forces and moments
for large slip angles. Large slip is handled using built-in functions that are
reasonable, but which cannot be adjusted by the user. (However, the PnP
version has almost unlimited tire modeling capability.)
• The road surface is smooth and level with a constant friction coefficient.
• CarSimEd has no drive line dynamics. Throttle inputs are related to drive
torque by constant coefficients. The ride model runs at constant speed always.
• The vehicle models do not have aerodynamic effects.
• The five-link suspension model does not include compliance.
A commercial version of the software is available with more extensive modeling. The
braking and handling model has nonlinear steering geometry, nonlinear brake torque vs.
pressure, nonlinear suspension geometry (toe and camber), nonlinear springs, and
nonlinear dampers. A more detailed tire model is built-in that can match experimental
data over a wide range of conditions. Aerodynamic effects are included, and closed-loop
controllers are available for variable speed and steering to follow a prescribed path. A 3D
road surface is in development, along with variable surface friction. Also in development
is a detailed driveline model.
To obtain information about the commercial version of CarSim, please contact MSC:
Mechanical Simulation Corporation
709 West Huron Street, Suite 50
Ann Arbor, MI 48103
tel. (734) 668-2930 fax (734) 668-2877
email: info@trucksim.com
web: http://www.trucksim.com

Rev: July 28, 1998 —4—


Chapter 1 Introduction

How CarSimEd Works


CarSimEd includes a database with vehicle and suspension data, simulation data, and
control input data. The information in this database is presented through a collection of
data screens. Data screens are used for these purposes:
1. to define the vehicle and maneuver
2. to control the simulation, and
3. to present the output in animated or plotted format.
CarSimEd combines information from the data screens with vehicle dynamics programs
to simulate the vehicle behavior. CarSimEd also links the simulation results with
animation and plotting programs. The entire package is made up of four tightly integrated
types of software, shown schematically in Figure 1.1

Vehicle Dynamics
Solver Programs

CarSimEd Data Screens

Wire frame animator Engineering Plotter


Figure 1.1. Four parts of CarSimEd.

Rev: July 28, 1998 —5—


Chapter 1 Introduction

1. Data screens serve as your primary interface to CarSimEd. They contain vehicle
model parameters, control inputs, and run settings. The data screens are part of a
database that maintains libraries of related data sets.
2. Simulation programs numerically solve equations of motion (i.e., mathematical
vehicle models) to calculate output variables. The process of performing these
calculations is called making a “simulation run.”
3. An animator shows the computed vehicle motions using wire-frame shapes. You
can view the simulated motions, zoom in and out with a simulated camera, and
interactively move around the simulated vehicle to change your point of view.
4. The Windows Engineering Plotter (WinEP) creates plots of vehicle variables as
functions of time or as cross plots of output variables. Use this tool to view any of
the hundreds of variables computed by the simulation models. Plot any
combination of variables, and overlay plots from different runs.

Rev: July 28, 1998 —6—


2. Database Organization
Figure 1.1 in the previous chapter gave an overview of how the various parts in
CarSimEd work together. Although the most essential part of CarSimEd is the collection
of simulation programs, as a user you will spend most of your time interacting with the
database. This chapter provides an overview of how the database is organized.

Introduction to the CarSimEd Database


Most of your interactions with CarSimEd will involve preparing data sets for simulation
runs, or viewing outputs of simulation runs. In either case, you will be dealing
extensively with the CarSimEd database.

Data set #3
Data set #2
Data set #1

Individual data sets in the


library

Data Screen:
A view of one data set
though the graphical user
interface

Contents of a CarSimEd Library

Throughout this manual, the database is considered at four levels. Starting with what you
see on the screen, the levels are:

—7—
Chapter 2 Database Organization

1. Data screens. Any screen display in CarSimEd that has editable fields or other
forms of user settings is called a data screen.
2. Data sets. A data set is the information you provide and can edit in a data screen,
minus the screen itself. The data screen is a view of a data set as seen through the
SGUI (the CarSimEd graphical interface).
3. Libraries. A library is a collection of one or more data sets, plus the information
needed to provide a view in the user interface. The next figure shows the contents
of a library: multiple data sets, plus a graphical view of one data set at a time.
4. The CarSimEd database. CarSimEd includes about thirty libraries.
CarSimEd automatically handles the transfer of information between the libraries and
solver programs. Thus, you do not have to know where the libraries are or what they
contain. However, it is important to understand the distinction between data screens, data
sets, and libraries. Specifically, you should understand that:
• Each CarSimEd screen shows one data set from within one library.
• Changes made on a data screen affect the one data set, but all other data sets
in the library are unaffected.
• Data sets are used in a simulation run only if they are linked to the run.
• Links between data sets can be made and broken as you see fit, to rapidly
swap vehicles, components, inputs, etc.
• When a data set is changed, simulation results will be affected if the
simulation inputs include data sets that are linked to it directly or through a
series of links.

Data Screens
Figure 2.1 shows an example screen with some of the common elements in CarSimEd.
Each data screen has three kinds of elements that you use:
1. Yellow fields. These contain data that you can edit directly. For example, to
change the vehicle wheelbase, find the yellow field 3 with the current wheelbase
value, click on the field, and change the value using the mouse and keyboard.
2. Buttons. All of the library screens include buttons at the top to quickly navigate
through the data sets in the library, and to go to other libraries and programs in
CarSim (see the buttons near 2 ). In addition, some of the libraries have special
buttons for functions such as running a simulation, running an animation, etc.
3. Pull-down menus. Some of the buttons are marked with a triangle . This
indicates that if you click over the button with the left mouse button then a pull-
down menu will appear.

Rev: July 28, 1998 —8—


Chapter 2 Database Organization

2
1

Figure 2.1. Example data screen.

The yellow field in the upper-left corner of the screen is the title of the data set: Generic
1 . The title is simply text that you choose to identify this data set in the library. It has no
significance to the simulation.
Blue fields with adjacent triangle buttons are common in CarSimEd. Each represents a
link to another data set. The name of the data set is shown in the blue field, and the
triangle button is used to display a pull-down menu. For example, click the triangle
button 4 to view the following menu.

The menu can be used to select a different data set in the linked library (choose the data
set of interest from the list displayed at the bottom of the menu). It can also be used to go
to the linked data set (choose the menu option to Go To Data Set).

Rev: July 28, 1998 —9—


Chapter 2 Database Organization

After using Go To Data Set to go to a different library, you can return to the previous
screen using the Back button located in the upper-right corner of each data screen.

The standard elements in a data screen, such as the ribbon bar at the top, and the blue
links, are described in more detail in Chapter 7.

On-Line Help
Every CarSimEd screen includes a status bar at the bottom of the screen. Move the cursor
over an object to read a 1-line description of its function in the status bar.

A Map of the CarSimEd Libraries and Screens


Nearly all control of CarSimEd is made through the CarSimEd data screens. Each screen
design is associated with a separate library file. CarSimEd includes the following types of
libraries:
• Vehicle parameters
• Inputs for Simulation runs
• Run setups including simulation and post processing control
• Plot setups
• Animation setups
• Batch controls
The top level of CarSimEd is shown graphically in Figure 2.2.
You normally start CarSimEd at the Startup screen. Clicking the Start button on that
screen takes you to one of three Runs screens. Each Runs screen is the window to a
library of many run descriptions, each of which has many links to vehicles, inputs, and
various settings.
The Runs screen also has three buttons for:
1. Running new simulations
2. Using the plotter to view simulation results
3. Using the animator to view simulated motions

Rev: July 28, 1998 — 10 —


Chapter 2 Database Organization

Post-Processing
Programs
Start Screen Animator

X-Y Plotter
Runs Screen:
Simulation Setup

Inputs Vehicles Solver Programs


Figure 2.2. Role of Runs screen in CarSimEd.

Figure 2.3 shows a more detailed map of the various libraries (screens). The map is a
little complicated, because it shows the libraries for all three types of simulation (3D
braking/handling, 2D ride, 3D suspension). Libraries that are used for more than one of
the simulations are shown in italics.
Note: In order to create the detailed map at a reasonable size, the names
were shortened from the full screen titles.
For example, from the Startup screen, you can go “down” to one of three possible Runs
screens (one for each type of simulation). For any of the Runs screens, you select the
various inputs (brake, steer, etc.), the vehicle or suspension description, the plot and
animation setup, and the parameters that control the numerical solution methods used to
make a simulation.

Rev: July 28, 1998 — 11 —


Chapter 2 Database Organization

CarSimEd Startup

Runs 3D Runs 2D Runs Susp.

Brake Input
Steer Input Cars Road Input Suspension data
Groups
Plot Setup Cameras
Spindle input

Groups Suspension Tire Filters Wheels


Format Ref. Frames
Shapes Ky Trail

Ref. Frames Wheels


Figure 2.3. Map of the CarSimEd libraries.

In the map, data sets from different libraries are connected with links. For example, here
is a link between a Runs library and a vehicle library:
Type of vehicle to be simulated

Name of specific vehicle data set


In general, libraries shown near the top of the map are more systems-oriented, and
libraries shown near the bottom are more component-oriented.
You can traverse the map, starting at the top, by following the links down. For example,
starting at the 3D Runs screen, you can follow a link “down” to a car. From there, follow
a link down to a tire. From the tire library, you can go down to data for cornering
stiffness and pneumatic trail.
Travel back up by clicking the Back button on each data screen.

Rev: July 28, 1998 — 12 —


3. How to Use CarSimEd
This chapter contains “how to” lists for accomplishing common tasks in CarSimEd.

About the Runs Screen


The Runs screen is central to the operation of CarSim. The diagram in on page 11 shows
that it provides access to vehicle data, input data, post-processing programs, and solver
programs. Figure 3.1 shows the Runs screen for a typical data set. The circled numbers
will be used in the next few sections to describe common actions.

1 2 3

4
7 10
5 11
8 9
6
12
14
13
15
16

Figure 3.1. The Runs screen.

— 13 —
Chapter 3 How to Use CarSimEd

How to Get to a Runs Screen


Most operations begin with one of the three Runs screens in CarSim Ed.

When Starting
1. Start CarSimEd to get to the Startup screen.
• Use the Windows Start menu, or
• open the file Startup.tbk

Choose a type of
simulation

Start Screen

Click Here to go
to a Runs screen

Runs Screen:
Simulation Setup

2. Use the triangle button next to the data set title in the ribbon bar to go to the start point
for the type of simulation you are interested in (see the figure below).
• 2D Ride, or
• 3D Braking and Steering, or
• 3D Suspension Kinematics

Rev: July 28, 1998 — 14 —


Chapter 3 How to Use CarSimEd

3. Click the Start button in the lower-right corner of the screen.

After Starting
All CarSimEd screens include a standard ribbon bar with navigation buttons. The GO
button displays a pull-down menu when clicked.
1. Click the GO button in the ribbon bar ( ) to display a pull-down menu.

2. Select the desired Runs screen from the menu.

From the Plotter or Animator


The CarSimEd plotter and animator are independent programs. When you launch one of
them by clicking a button on the Runs screen, the Runs screen is still there. However,
the windows of the other programs might cover it, especially if you are not using a large
computer monitor.
The recommended way to return to the Runs screen from the plotter or animator is to exit
the program.

1. Click the X box in the upper-right corner of the WinEP or Animator screen:

How to Make a New Run


Use this method to make a new run in CarSimEd. Existing runs are left intact and their
output can still be viewed with the plotter and animator.
Start from a Runs screen (see Figure 3.1 on page 13).
1. Find an existing data set that is close to what you want using the navigation buttons 2 .

Rev: July 28, 1998 — 15 —


Chapter 3 How to Use CarSimEd

2. Click the New button 3 in the ribbon bar.


3. Inspect and edit the simulation inputs.
a. Select the vehicle of interest from the linked vehicle library 4 .
b. Select a steering input from the linked library 5 .
c. Select a braking input from the linked library 6 .
d. Enter a speed into the yellow field 8 .
e. Enter the simulation stop time 9 .
4. Click the Run Simulation button 7 .
A console application window (DOS-style) appears while the simulation runs. A bar
graph at the bottom of the window indicates the progress. When the simulation finishes
the DOS window disappears and you are returned to the Runs screen.

Console display when solver program is running.

Notes: If the vehicle comes to a complete stop, or rolls over, the normal
settings cause the program to quit after updating all output files.
There are a few other occasions when the CarSimEd solver
program will not run, or will quit prematurely. Among them are:
1. The output file cannot be written if it is in use by the plotter or the
animator (this can happen if you are replacing a run, as described
in the next section).

Rev: July 28, 1998 — 16 —


Chapter 3 How to Use CarSimEd

2. In rare circumstances, a bad input parameter will cause the


program to quit before it can create any output files. However, in
most cases, the program will generate the output files even if it
quits suddenly.

How to Replace a Run


Use this method to replace an existing run. Start from the Runs screen (see Figure 3.1 on
page 13).
1. Find the existing data set in the Runs library that you want to replace. Use the navigation
buttons 2 next to the Data Set (title) box 1 .
2. Inspect and edit the simulation inputs.
a. Select the vehicle of interest from the linked vehicle library 4 .
b. Select a steering input from the linked library 5 .
c. Select a braking input from the linked library 6 .
d. Enter a speed into the yellow field 8 .
e. Enter the simulation stop time 9 .
3. Click the Run Simulation button 7 . A run is made, as described in the previous section,
except that in this case the previous run (selected in step 1) is over-written.

How to View an Animation


Start from the Runs screen (see Figure 3.1 on page 13). The simulation run must have
already been made in order to view an animation.
1. Choose a camera setup using the blue link 11 .
2. Click the Animate button 10 .
3. If there is no motion, use the menu item Start from Beginning (Ctrl-S), under the
Animation menu in the Animator screen.
4. After viewing the animation, exit the animator by clicking the in the upper-right
corner of the screen.

Rev: July 28, 1998 — 17 —


Chapter 3 How to Use CarSimEd

10

11

How to View a Single Predefined Plot


Start from the Runs screen (see Figure 3.1 on page 13). The simulation run must have
already been made in order to view a plot.
1. To avoid making multiple plots, un-check the box Multiple Plots 14 .
2. To avoid overlaying plots from different runs, un-check the box Overlay Runs 15 .
3. Use the pull-down menu next to the blue field labeled Plot #1 Setup and select the plot
of interest.
13 14

15

1. Click the Plot button 13 .


2. After viewing the plot, exit the plotter by clicking the in the upper-right corner of the
screen.

Rev: July 28, 1998 — 18 —


Chapter 3 How to Use CarSimEd

How to View Several Predefined Plots


Start from the Runs screen (see Figure 3.1 on page 13). The simulation run must have
already been made in order to view a plot.
1. Check the box Multiple Plots 14 .This reveals three more links to plotter data sets 17 :

14
13
15 16

17

17

17

18

18

2. Select up to four plot setups, using the different links 16 and 17 .


3. Click the Plot button 13 .
Note: Multiple plots can be viewed in WinEP in several modes. The
WinEP Windows menu can be used to locate any existing plot
window. All of the plots can be viewed simultaneously by using
the vertical or horizontal tiling options from the Windows menu.
4. After viewing the plots, exit the plotter by clicking the in the upper-right corner of the
screen or by using the File menu or by typing Ctrl-Q.

How to Overlay Plots for Several Runs


Start from the Runs screen (see Figure 3.1 on page 13). Several simulation runs must
have already been made in order to view plots involving them.
1. Check the box Overlay Runs 15 . This reveals two links labeled Overlay Run #2 and
Overlay Run #3 18 .
2. Select another run of interest from the pull-down menu next to Overlay Run #2 18 .
3. If you want to overlay three runs, link to another run of interest using the link labeled
Overlay Run #3. On the other hand, if you only want to compare two runs, choose {No
Data Set} for Overlay Run #3.
4. Select up to four predefined plots using links 16 and 17 .

Rev: July 28, 1998 — 19 —


Chapter 3 How to Use CarSimEd

5. Click the Plot button 13 .


6. After viewing the plots, exit the plotter by clicking the in the upper-right corner of the
screen or by using the File menu or by typing Ctrl-Q.

How to Define Plots Interactively


Start from the Runs screen (see Figure 3.1 on page 13). The simulation run must have
already been made in order to view a plot.
1. Start the plotter program by clicking the Plot button. (See 13 in Figure 3.1.
2. From within the plotter, select the menu item Define New Plot… from the Data menu
(or type the keyboard command Ctrl-N). This brings up a window that lists all of the
variables in the simulation output file.

3 5
2

3. Select X and Y variable names from the X and Y lists 5 and 6 .


Note: You can select the names by clicking on them with the mouse. You
can also click in a list to make it active and then type the name. As
you type, the next match is highlighted.
4. Add the selected variables to the list of data to plot 1 by using the Add button 3 .
Note: You can also add a pair of variables by double clicking on the name
in either the X 5 or Y 6 lists.
4. Make the plot by clicking the Plot button 4 .
5. To make another plot, repeat steps 2 through 4. Clear the list of the data to plot with the
Clear button 2 .

Rev: July 28, 1998 — 20 —


Chapter 3 How to Use CarSimEd

See Chapter 6 for more information on using the plotter interactively.

How to View All Model Parameters and Inputs


Start from a Runs screen (see Figure 3.1 on page 13). The simulation run must have
already been made in order to view a list of all parameters.
1. Click the button View Echo File (All Parameters) 12 .
This loads a text file into the default text editor. The text file is created whenever a
simulation program is run, and lists all model parameter values, definitions, and units.
Notes: CarSimEd is installed with a built-in text editor. If you want to
make a different text editor your default, see the section “How to
Assign the Default Text Editor” on page 32.
2. Return to the Runs screen in CarSim with the text editor still active by pressing Alt-
Tab. Or, exit the text editor to return to the Runs screen.

How to Print a Data Set


You can print any screen in CarSimEd. Copies of the data screens are sometimes helpful
for showing model parameters as they appear when using the software. However, a more
efficient method is to view all of the parameters in a text editor, as described in the
previous section, and then print them from the text editor.
Start from the Runs screen (see Figure 3.1 on page 13). The simulation run must have
already been made in order to view a list of all parameters.
1. Click the button View Echo File (All Parameters) 12 .
2. Select Print from the File menu of the text editor.
3. Exit the text editor.

How to Make a New Vehicle Input


Use the following method to create a new vehicle input that can be used for future runs.
Using this process leaves existing vehicle descriptions intact.
The parameter values for a vehicle model are spread over many data sets. Typically, you
will want to change a few and leave most the way they are.
Note: In the following instructions, the concept of going “up” and
“down” is based on the map shown in Figure 2.3 on page 12.

Rev: July 28, 1998 — 21 —


Chapter 3 How to Use CarSimEd

Method
Start from the Runs screen (see Figure 3.1 on page 13).
1. Find an existing data set that involves the type of vehicle you are interested in. To
navigate through the Runs library, use the buttons 2 next to the Data Set (title) box 1 .
2. Go down to the linked vehicle data set.

3. Repeat step 2 as needed to go down to more detailed levels. To start, go down to the
linked data set for a vehicle. If you are interested in making a new component or
subsystem data set (tire, suspension, etc.), use the appropriate link to go down to it. As
indicated in the map shown in Figure 2.3 on page 12, it is possible to go down through
several levels of detail.
For the purpose of making changes, you are at the “bottom” when
• the current screen has no blue links, or
• the current screen has blue links, but the data sets available from the menus
associated with the links are not suitable for your purposes. In other words,
you do not have to modify or create any data sets that are further “down” in
the database.
4. Click the New button (in the ribbon bar) to copy the current data set.
5. Give the new data set an appropriate title in the yellow “Data Set” field 1 .
6. Modify the data set:
• Modify the values in the yellow fields as needed.
• Change the data sets in any blue links, using the adjacent pull-down menu.
Note: When you clicked the New button, you created a new data set that
is now available for use in CarSimEd. It is in the same library as
the original, and appears in pull-down menus that show the library
contents. However, it will not be used in any simulations until you
have linked to it from a higher-level data set.
7. Go back up one level, using the Back button in the ribbon bar.
8. Click the New button (in the ribbon bar) to copy the current data set.
9. Give the new data set an appropriate title (see the yellow field “Data Set” 1 ).
10. Go to the blue link that connects to the library in which you just added a data set, and
select the new data set.

Rev: July 28, 1998 — 22 —


Chapter 3 How to Use CarSimEd

11. Repeat steps 7 through 10 until you are back at the Runs screen. At this point, you can
make a new run or modify the current run. Either way, you will select the new vehicle
data set from the linked library of vehicles.

Example
Suppose you are going to change the spring in the front suspension of a vehicle. Starting
from the Runs screen, you would do the following:
a. Go down to the vehicle data set.
b. Go down to the front suspension data set.
c. Make a new suspension data set, and then change the spring rate.
d. Return to the vehicle data set. Make a new one, and change the suspension link to
use the data set created in step 3.
e. Return to the Runs data set. Make a new one, and change the vehicle link to use
the data set created in step 4.
f. Click the Run Simulation button.

How to Modify an Existing Vehicle Input


Use the following method to modify an existing vehicle description. Start from the Runs
screen(see Figure 3.1 on page 13).
1. Find an existing data set that involves the vehicle whose description you will modify.
2. Go down to the linked vehicle data set. Change any yellow fields or blue links as needed.
3. Repeat step 2 to go down more links and change other components as needed.
4. When all changes have been made, return to the Runs screen. If you are working with the
3D braking and handling model, return to the Runs screen by clicking the Runs button in
the ribbon bar ( ) or using the Tools menu. However, to return to the Runs screen for
the ride model or suspension kinematics, you must use the GO button (or click the Back
button repeatedly to retrace your steps back).
Warning: Almost every data set in the CarSimEd database is referenced
by other data sets (via the blue links). When you change values in a
data set, you have in effect also changed all data sets that reference
it. For example, if you change a spring rate, every vehicle data set
that is linked to the affected suspension data set with will use the
new spring rate in future simulation runs.
Hopefully, this is exactly what you intend. If not, then consider
using the New button to create a copy of the data set, then change
the copy and link to it in those places where you want to use the
new data.

Rev: July 28, 1998 — 23 —


Chapter 3 How to Use CarSimEd

How to Go Directly to Any CarSimEd Library


You can jump from any CarSimEd library to related libraries.
1. Press the GO button in the ribbon bar to display a menu of other libraries in CarSimEd.
Select a library from this menu to leave the current library and go to the selected one.

The menu typically contains more items than will fit on a monitor with VGA resolution
(640 x 480). In this case, the first item in the menu is More. Highlight it to view more
menu items.
Notes: After using the GO menu, you can return to the previous library
using the Back button from the ribbon bar.
When you go to a library using the GO menu, CarSimEd shows
you the most recently viewed data set. This data set is not
necessarily one that is used in the most recently made run.
Different menus are created for the GO button when you start the software, depending on
the simulation type. For example, when you start with the 3D suspension kinematics
simulation, most of the vehicle data sets are not shown in the GO menu because they
cannot be used with that simulation.
To run with a GO menu that includes all data sets in CarSimEd, start with the data set
Install (in the Startup library).

Rev: July 28, 1998 — 24 —


Chapter 3 How to Use CarSimEd

How to Lock Your Data


CarSimEd is designed to make it easy to answer “What if?” questions. Changing vehicle
parts, inputs, run conditions, etc. is simple and rapid. At some point, you might overwrite
some data you meant to keep, and you will no doubt conclude that changing parameters is
too easy! However, CarSimEd does have a means to protect your data from inadvertent
changes.

Protecting a Single Data Set


1. Check the Locked box in the upper-right corner of a data screen.

Click here
Notes: When the box is checked, try to modify a blue link or a yellow
field. You will find that all pull-down menus next to blue links
allow only the navigation option to go to the data set. You will also
find that clicking on a yellow field brings up a message telling you
that the data set is locked.
At any time, you can unlock the data set by clicking the box again
to un-check it.
The locked box protects only the data shown on the screen. Data sets in linked libraries
are not affected. For example, you might lock a run data set. However you could still go
to the vehicle data linked to the run and change the vehicle data set if it is not locked.

Automatically Locking All Data Sets As You Create Them


1. From any CarSimEd data screen, click the preferences button in the ribbon bar ( ) or
select the Preferences command from the Tools menu. This brings up a dialog box with
a few check boxes, as shown in Figure 3.2.
2. Check the box Auto Lock 1 .
3. Close the dialog by clicking the X 2 in the upper-right corner.
Notes: When the Auto Lock feature is enabled, every data set that you
view will be locked automatically when you leave it.
It does not change the status of any existing data sets. They are
locked after you visit them.
This feature can be disabled at any time by returning to the
preferences screen and un-checking the box.

Rev: July 28, 1998 — 25 —


Chapter 3 How to Use CarSimEd

2
1

Figure 3.2. Preferences window.

Automatically Locking All Data Sets in CarSimEd


You can extend the above method to make CarSimEd lock all data sets.
1. Follow steps 1 through 3 above.
Note: This will cause every data set to be locked once it is visited. Next,
we will have CarSimEd automatically visit every data set.
2. Use the GO button in the ribbon bar to go to the CarSimEd startup screen
(Startup.tbk).
3. Go to the data set named Install (this is a data set included in the software as
installed).
4. Click the button Change Settings 2 . This will hide the CarSimEd logo and reveal more
buttons, including those shown here.

5. Click the button Update All PAR Files 1 . Besides updating all PAR files, the Locked
buttons on every screen will be checked.

How to Delete Data Sets


CarSimEd has several methods for deleting data sets.

Rev: July 28, 1998 — 26 —


Chapter 3 How to Use CarSimEd

To Delete a Single Data Set


1. Click the Delete button in the ribbon bar. CarSimEd will display a warning, asking you to
confirm that you want to delete the data.
Notes: You can by-pass the warning message by holding the Control key
down when you click the Delete button.
The Delete button cannot be used if the Locked button is checked.
First, the data set must be unlocked.

To Delete All Data Sets Except One


1. Click the Delete button in the ribbon bar while holding down the Shift key. CarSimEd
will display a warning, asking you to confirm that you want to delete the data.

To Delete an Arbitrary Group of Data Sets


1. Click the Library Tool button in the ribbon bar ( ) or select the Library Editor menu
item from the Tools menu. This brings up a floating palette with controls for selecting
data sets by their titles, and then deleting the selected sets all at once.

How to Set Up Five or More Plots


The Runs screen has links to set up four plots. If you want to quickly generate five or
more plots, you can use the Plot Setup: Batch screen, shown in Figure 3.3. Start from
any CarSimEd data screen.
1. Click the Batch Plot button in the ribbon bar ( ) 16 or use the Batch Plotting command
from the Tools menu. This takes you to the Plot Setup: Batch library.
2. Go to a data set in the library that is linked to the current Runs library. (As installed, the
library contains three data sets, with each linked to a different Runs library.)
Note: If the batch data set is not linked to a current runs library, you have
to make the link using the pull-down menu with the triangle button
1 .

3. Click the New button 15 to create a new data set for your new combination of plots and
runs.
4. Using the Add 3 and Remove 4 buttons for the Data Files , put the name of the run of
interest into the field with Selected Data Files 6 .
5. Using the Add 9 and Remove 10 buttons for the Plots, put the name of all plots of
interest into the field named Selected Plots 13 .
6. Click the Make Plots button 14 . This starts the program WinEP and instructs it to make
one plot for each data set listed in the field Selected Plots 11 .

Rev: July 28, 1998 — 27 —


Chapter 3 How to Use CarSimEd

7. After viewing the plots, exit the plotter by clicking the button in the upper-right
corner of the screen.

15

16

1 7

3 4 5
9 10

12
6
13
11
14

Figure 3.3. Setup for batch plotting.

How to Overlay Plots for Four or More Runs


The Runs screen has links to overlay data from three runs. If you want to overlay data
from more runs, you can use the Plot Setup: Batch screen, shown in Figure 3.3.
The method is nearly identical to the one just described for making five or more plots.
Two additional steps are:
• In step 3, put more than one run into the field with Selected Data Files 6 .
• Be sure the One Plot for All Data Files button 13 is selected.

Rev: July 28, 1998 — 28 —


Chapter 3 How to Use CarSimEd

How to Make Many Plots in Batch Mode


You can generate a standard set of plots for many runs and send them directly to a
printer. Again, you will use the Plot Setup: Batch screen, shown in Figure 3.3 on page
28.
The method is nearly identical to the one just described for making five or more plots.
Two additional steps are:
• In step 3, put more than one run into the field with Selected Data Files 6 .
• Be sure the One Plot per Data File button 12 is selected.

How to Set Up Multiple Runs


It is possible to set up more than one run ahead of time. It is also possible to re-do a set of
runs with different conditions. Start from the Runs library.
1. Set up the runs of interest by creating a distinct data set for each combination of vehicle,
input, speed, stop time, etc. that is of interest. Do not click the Run Simulation button.
2. Go to the Runs: Batch library by clicking the button in the ribbon bar ( ) 9 or use the
Runs menu item from the Tools menu. This brings up the data screen shown in Figure
3.4.
3. Click the New button 10 to create a new data set for your combination of runs.
4. Using the Add 3 and Remove 4 buttons, put the name of the runs of interest into the
field named Data Sets to Run 5 .
5. Optionally enter parameters (with keywords) in the yellow fields 6 to override the
parameters that are specified in the selected Run data sets. For example to make all runs
with a simulation speed of 100 km/h, enter the line: speed 100
Note: See Appendix E for a complete list of keywords recognized by the
simulation programs in CarSimEd.
6. Optionally use Links 1, 2, and 3 7 to link to data sets that will override those specified
in the selected runs. For example, to make all the runs with no braking input, link to the
braking input library and select the data set No Braking.
7. Click the Make Runs button 8 to make the batch of runs.

Rev: July 28, 1998 — 29 —


Chapter 3 How to Use CarSimEd

1
6

2
7

7
3 4

6
5

8
7

Figure 3.4. Batch run screen.

Notes: You can view the results from the individual runs data sets, or use
the batch plot library.
If you specified any parameters or links in steps 5 and 6, then the
individual run data sets are modified such that the link with the
label Overriding Data (from Batch) is set to the batch data set.
That way, you can get back to this data set (batch run) to see what
parameters or links were applied when the run was made.
The echo files generated for each run show the model parameters
that were used in the run, regardless of whether they came from the
normal run data set or from the batch override.

How to Make New Plot Descriptions


CarSimEd comes with about 30 plot descriptions. It’s easy to make more. Start with any
data screen in CarSimEd.
1. Click on the plot setup icon in the ribbon bar ( ) 3 or use the EP Setup command from
the Tools menu. This takes you to the plot setup library shown in Figure 3.5.

Rev: July 28, 1998 — 30 —


Chapter 3 How to Use CarSimEd

1 2 9

5 8
4 7

Figure 3.5. The Plot Setup screen.

2. Use the navigation buttons 1 in the ribbon bar to find a plot setup similar to what you
want.
3. Click the New button 2 to make a new data set.
4. Select a run from the library labeled Source of Plot Variables 6 . When you select a
run, the output ERD file associated with the run is scanned and all of the variables are
listed in fields 7 and 8 .
Notes: The run must have been made in order for the ERD file to exist.
It doesn’t matter which run you use to build the file description, so
long as the ERD file contains the variables that you want plotted.
This is because when you click the Plot button from the Run
screen, the file name is replaced with the file associated with the
current run. The only reason an existing run is used to build the
description is because it is more convenient to click on names in a
list than to type in the names.
(Hoewever, if you prefer to type, you can in fact type the names
directly into the yellow field 4 .)

Rev: July 28, 1998 — 31 —


Chapter 3 How to Use CarSimEd

If the ERD file has more than about 150 variables, only the short
names are shown in fields 7 and 8 . If it has fewer variables,
more information is shown.
5. Clear the field called Data to Plot 4 . (Select the contents of the field and then press the
delete key.)
6. Select X and Y channels of interest from fields 7 and 8 . Add them to the list of data to
plot 3 using the button 5 or by double-clicking in either field 7 or 8 .
7. Continue to build the list of data to plot 4 .
8. To make another plot setup, repeat steps 2 through 7.
9. When you are through making new plot descriptions, leave the library by clicking the
Back button 9 .

How to Change Plot Formatting


Plot appearance is controlled by a format data set. You use the formatting to assign the
colors of lines, the size of text, whether a grid is shown, etc.
Each plot description is linked to a format data set (see 10 in Figure 3.5 on page 31). As
installed, every plot description is linked to a format data set with the title Default
Settings. If you change the default settings, all future plots will have a new
appearance.
1. Go to the Plot Setup library by clicking the plot setup icon in the ribbon bar ( ) 3 or
use the EP Setup command from the Tools menu.
2. Go to the Plot Format library by following the link 10 .
Note: Another way to get to the library is through the GO menu. Look
for the menu item Plot\Format\Format.tbk.
3. Refer to the description of the Plot Format screen in Chapter 8 for information about
how you can control the plot appearance from the these settings.
4. Modify the data set whose title is Default Settings.

How to Assign the Default Text Editor


The View Echo File (All Parameters) button on the Runs screen automatically loads a
text file into an editor. You can choose the editor that is used.
As shipped, the default text editor is program called QLPad. You can replace the default
with a a different Windows editor if you prefer.
To assign a new editor, start with any data screen in CarSimEd.

Rev: July 28, 1998 — 32 —


Chapter 3 How to Use CarSimEd

1. Control-click on the text icon in the ribbon bar.

Control-Click here
This should bring up the following dialog box.

2. Link to a text editor using the above dialog box.


3. Click the OK button after you have selected an EXE file.

How to Improve the Appearance of the CarSimEd Screens


Windows has many settings for screen size, number of colors, and default font size.

Font Size
The CarSimEd data screens look best when the system display properties are set for
Small Fonts. However, the screens should be readable for any setting.

Colors
The CarSimEd screens look best when 256 or more colors are supported. If your machine
is set to support 16 or fewer colors, CarSimEd has a setting to produce yellow and blue
fields using dot patterns rather than solid colors. A global setting is used to control
whether CarSimEd uses solid colors or patterns.

Rev: July 28, 1998 — 33 —


Chapter 3 How to Use CarSimEd

1. From any CarSimEd data screen, click the preferences button in the ribbon bar ( ) or
select the Preferences command from the Tools menu. This brings up the Preferences
dialog box.

2. If your machine is set up to support 256 or more colors, Check the box Have 256 or
more colors on monitor 1 . Otherwise, un-check the box.
3. Close the dialog by clicking the X 2 in the upper-right corner.

Size of CarSimEd Data Screens


The CarSimEd data screens are designed to fit on a VGA display (640 x 480).
1. The upper-right corner of the window has three Windows-standard buttons: .
The middle button “maximizes” the window to fill the monitor screen (see Figure 3.6). If
your monitor has a larger display area than VGA, the result is that the menu bar is put at
the top of the total screen, the main part is centered, and the space around the main part is
filled with gray.
Note: In maximize display mode, pull-down menus associated with
triangle buttons do not appear in the correct locations when the
buttons are pressed. The offset depends on the screen size, and is
due to a bug in the ToolBook runtime program.
2. To return to the normal CarSimEd display, press the F11 key or use the Size to Page
command from the Page menu.
Note: If you have modified the window size by dragging the window
borders, the F11 key (or Page menu) is the only way to restore the
size.

Rev: July 28, 1998 — 34 —


Chapter 3 How to Use CarSimEd

Figure 3.6. Appearance of a data screen that has been maximized.

How to Install CarSimEd in a New Directory


You can move CarSimEd to a new place in your file system, so long as you do not
modify the structure within the CarSimEd directory. For example, you can move the root
CarSimEd folder from drive C to drive D. If you move the CarSimEd files after the initial
installation, you must make two additional changes:
1. Inform Windows of the new location, in order to start CarSimEd using the
runtime ToolBook software.
2. Cause CarSimEd to regenerate text files used to communicate with the plotter,
animator, and solver programs.

Runtime ToolBook
The CarSimEd database is managed by a program called Tb40run.exe, located in the
Tb40 folder in CarSimEd. As part of the CarSimEd installation, the Tb40run program
is registered with the file extension TBK. If you move the folder containing Tb40run,
then you must inform Windows of the new locations.

Rev: July 28, 1998 — 35 —


Chapter 3 How to Use CarSimEd

Your objective is to associate the file type TBK with the file Tb40run.exe. If you
know how to do this, go ahead and do it. If not, the following steps describe a method
that will work.
1. From the desktop or Windows Explorer, find the file Startup.tbk in the CarSim
folder. Double-click the file to try to open it. If CarSim launches, congratulations! No
work is needed.
However, more likely, Windows will not know how to open the file, and will bring up the
following dialog:

2. Click the button Other. This brings up the next dialog, to locate a file.

Rev: July 28, 1998 — 36 —


Chapter 3 How to Use CarSimEd

3. Locate the file TB40run.exe, in the folder Tb40 in CarSimEd. After selecting the file,
click the Open button to complete the selection and close the dialog box. The previous
dialog should now show the program.

4. Make sure the box “Always use this program to open this file” is checked.
5. Click the OK button to close the dialog.
You have now associated the file type TBK with the program Tb40run in its new
location.

Update Pathnames in PAR Files


The solver programs require absolute pathnames, and CarSimEd creates them “behind the
scenes” using PAR text files. When CarSimEd is installed, it “looks” at its location and
generates many files using that location to create pathnames. For example, if it is in a
folder c:\mycar, then all pathnames are automatically set to begin with “c:\mycar”.
If you move the CarSimEd directory, you must instruct CarSimEd to regenerate all of the
absolute pathnames in the PAR files.
After you have moved the root CarSimEd folder to a new location, do the following:
1. Use the GO button in the ribbon bar to go to the CarSimEd startup screen
(Startup.tbk).
2. Go to the data set Install.

Rev: July 28, 1998 — 37 —


Chapter 3 How to Use CarSimEd

Figure 3.7. Lower-right corner of Startup screen.

3. Click the button Change Settings 2 . This will hide the CarSimEd logo and reveal more
buttons, including those shown in Figure 3.7.

4. Click the button Update All PAR Files 1 .


Note: The process of updating all PAR files to generate new absolute
pathnames can take several minutes on some computers. The time
required depends on the speed of your computer and the number of
data sets you have in the CarSimEd database.

How to Import Data from Another Copy of CarSimEd


There are several occasions where you may want to import data from another copy of
CarSimEd. If you obtain an update for CarSimEd, this is how you save data entered in the
older version. Another reason might be that CarSimEd is installed on several computers,
and you want to import data from one installation into the other.
To import data, both installations of CarSimEd must be accessible from the same
computer.

To Import Data from One Library


1. Go to the library in CarSimEd from which you want to receive the imported data. Any
data screen in that library will do.
2. Select the menu item Import Data Library from the File menu. CarSimEd will bring up
a file browser dialog box.
3. Select a library TBK file of the same type as the current one. For example, if the current
library contains tire data, you should open another tire library file. Often, the two files
have the same name but are in different folders.

Rev: July 28, 1998 — 38 —


Chapter 3 How to Use CarSimEd

4. Click OK. CarSimEd will copy each data set of the old library and paste the contents into
the new one. If a data set already exists with the same name, the copy is given a unique
name by appending a number.
Note: This method is reliable for libraries with only yellow data fields.
For libraries with blue links, the names of the linked data sets are
copied. However, if the data sets do not exist in the new CarSimEd
installation, then the links are not valid and must be reset by hand.

To Import All Data


1. Go to Startup screen, to the data set named Install.
2. Select the menu item Import Data Library from the File menu. CarSimEd will bring up
a file browser dialog box.
3. Select the Startup library file Startup.tbk for the other copy of CarSimEd.
4. Click OK. CarSimEd will recursively copy each data set of the old library and paste the
contents into the new one.
Note: This method works well when the directory structures of the two
versions of CarSimEd are identical. If the structures differ in any
way, then some of the links will not be valid and must be set by
hand.

How to Convert Units for Tabular Data


You may have occasion to import measured tabular data into CarSimEd. If the units used
for the data do not match the requirements for the CarSimEd data screen, you can use a
built-in calculator tool to convert the units. The process is as follows.
1. Copy the tabular data to the clipboard.
2. From any CarSimEd data screen, click the calculator tool button in the ribbon bar or
select the Calculator command from the Tools menu.

Click here
3. Paste the tabular data into the tabular data field 1 of the calculator data screen.

Rev: July 28, 1998 — 39 —


Chapter 3 How to Use CarSimEd

3 4

4. Type definitions for the transformed X and Y values into the definitions field 3 . The
definitions should have the form: A*X, B*Y where A and B are numerical scale factors.
For example, suppose the X values are in inches and Y values are in pounds. To convert
to a table where the X values are in millimeters and the Y values are in Newtons, use the
definition: 25.4*X, 4.4482216152605*Y.
5. Click the Transform Series button 4 to perform the conversion.
6. Click the Plot button 2 to confirm that the conversion was performed as you would
expect.
7. Optional. If the data should not be separated with commas, click the button Remove ‘,’.
8. Select the entire contents of the tabular data field. The menu command Select All, under
the Edit menu (Ctrl-A) is helpful for doing this.
9. Select the Copy command from the Edit menu (Ctrl-C).
10. Go to the data screen where the tabular data will be stored.
11. If a data set does not exist for the transformed data, create one using the New button and
give it a name.
12. Paste the clipboard contents into the field used to store the numbers.
See Chapter 8 for details on using the calculator data screen.

Rev: July 28, 1998 — 40 —


4. The Simulation Solver Programs
CarSimEd contains programs that solve the equations of motion for vehicle models,
predicting motions, forces, and other variables. A solver programs is run automatically
whenever you click the Run Simulation button from the Runs screen. CarSimEd allows
you to set up inputs to the programs and view their outputs without ever dealing with the
details of how these programs work. However, it can sometimes be useful to understand
how they read and write files.

Overview of Program Operation


The solver programs are so-called console applications. Each behaves as a terminal
console, with no user interface other than the display of text and the acceptance of
keyboard entries. They have the same appearance as a plain DOS text program, although
they are technically 32-bit Windows programs.

Screen display when solver program is running.

When the program starts, it creates a window in which text is displayed. The name of the
program file is typically shown as the window title.

— 41 —
Chapter 4 The Simulation Solver Programs

You can run the solver programs interactively or in batch mode. The mode is determined
by the existence of a batch control file with the name Simfile (created automatically by
CarSimEd): if this file exists, the program runs in batch mode; otherwise, it runs
interactively.
If the file Simfile does not exist (in the folder in which the program is located) then the
program runs in interactive mode. It prompts you for an input file, an output ERD file,
and two output echo files. After the last file is written, the program quits.
If the file Simfile does exist, then all filenames are read from it. It quits when the
Simfile is fully processed and the solver program writes the last output file.
Properties of the window created by the solver program can be adjusted by selecting the
solver program (extension EXE, found in the folder CarSimEd\Programs), right-
clicking to display a pop-up menu, and selecting Properties from the menu.
As installed, the solver programs close their windows when they finish. When the
window is closed, the most recently accessed program comes to the top. When run
normally from within CarSimEd, the most recent program is ToolBook, which was
showing the Runs screen from which the run was initiated. Therefore, the normal
behavior is that the Solver program brings up a window, runs for the time needed to
perform the simulation calculations, then quits and closes the window, leaving you back
at the Runs screen.

File Types
When run from the graphic interface in CarSimEd (i.e., by clicking the Run Simulation
button from a Runs screen), all files associated with a run have the same base name and
differ only in their extensions. The base name is the current ID number displayed in the
upper-right corner of the Runs screen.
Table 4.1 shows the files and their extensions.
Details of the six file types are provided in Appendix E, along with some examples. Short
summaries are provided below.

Simfile
As noted earlier, Simfile is a batch control file. Whenever you click the Run button, a
new Simfile is created in the same folder as the simulation program (by convention,
this is the folder Programs). If a file named Simfile already exists, it is overwritten.
Because Simfile is automatically re-generated before each run, it can be deleted at any
time without loss of information.

Rev: July 28, 1998 — 42 —


Chapter 4 The Simulation Solver Programs

Table 4.1. Standard files created when a simulation is run.


Name Location Creator Description
Simfile Programs SGUI Batch control file.
<id>.PAR Runs SGUI List of parameters, read as input by program.
<id>.LPO Runs Program List of parameters, written as output by program.
Also contains initial conditions. Can be used to
repeat a run.
<id>.LPF Runs Program List of parameters and final conditions, written
as output by program. Can be used to continue a
run.
<id>.ERD Runs Program Header for ERD file, needed by plotter and
animator programs.
<id>.BIN Runs Program Numerical values of output variables, stored in
binary form, and used in association with ERD
files.
<id>.LOG Runs Program Log of all input files, including nested PAR files.

The Programs folder contains the Simfile used for the most recent run. Therefore, if
you run a solver program independently of CarSimEd, it will repeat the last run made.
To run a program in the interactive mode, you must delete or rename Simfile.

PAR Files
The PAR file lists the input parameters for the simulation program.
When you click the Run Simulation button, a new PAR file is created in the folder
containing the Runs library (e.g., Runs). The PAR file contains information from the
Runs screen such as the title of the run, and pathnames for the data sets linked to the run
(vehicle, steer input, etc.).
The PAR file also includes references to other PAR files. Every data screen in CarSimEd
has an associated PAR file, including the Runs screen. When the simulation program
runs, it read the PAR file generated from the Runs screen, and all other PAR files
referenced within it. The files can be thought of as forming a tree. The “tree” associated
with any screen in CarSimEd can be viewed by clicking the Parstree icon in the ribbon
bar: . Clicking the button launches a program called Parstree, using the PAR file
associated with the current data screen. Figure 4.1 shows an example display window
from the Parstree program. Note that most of the input lines start with the word
parsfile, and are followed by pathnames to other files with more data.

Rev: July 28, 1998 — 43 —


Chapter 4 The Simulation Solver Programs

Figure 4.1. An example Parstree for a Runs data set.

LPO and LPF Echo Files


When a simulation program runs, it creates summary files that list each and every
parameter value. One of these files is created before the run (LPO), and the other is
created at the end of the run (LPF). Both contain all parameter values. In addition, the
LPO file contains the initial conditions for the state variables in the simulation. The
information in the LPO file is sufficient to exactly repeat a run.
The difference between the PAR and LPO files is that LPO file contains every parameter
value in one file, whereas the PAR file contains pathnames of other files that contain the
data. Also, the PAR file may not reference every parameter used by the simulation
program. For example, the initial conditions listed in the LPO file are normally not
specified on input (they are assigned default values by the simulation program).
The LPF file is nearly identical, except that instead of initial values, it contains final
values of the state variables. By modifying the start and stop times, an existing run can be
continued.

ERD and BIN Files


The main purpose of each simulation program is to calculate time histories of variables of
interest. Those time histories are stored in a binary data file with the extension BIN. The

Rev: July 28, 1998 — 44 —


Chapter 4 The Simulation Solver Programs

BIN files contain numerical data organized by channel number and sample number,
similar to test data recorded on a multi-track recorder. A companion file, with extension
ERD, describes the layout of the BIN file and also contains labeling information for each
variable. It also contains the information that would normally be put into a log sheet
summarizing the data, including text needed for preparing graphical plots of the data.
By itself, a BIN file is useless. It has no structure, and cannot be easily understood
without the layout information contained in the ERD header file.
By convention, ERD and BIN file pairs are simply called ERD files. The name ERD is
used because the Engineering Research Division at UMTRI designed the format.
Data processing programs for ERD files obtain most of the information needed from the
file itself. For example, the high level of automation in the animator and plotter exists
because both were designed to work with ERD files.
The format of an ERD file is described in Appendix B. Appendix G contains a list of all
of the variables in the ERD and BIN files for one of the CarSimEd models.

Text Output Files


CarSimEd can be made to produce text-only ERD files. In this case, the header
information in the ERD file is followed immediately by the numbers, written in text and
there is no BIN file.
You can also use CarSimEd to produce simple text output files, for export to spreadsheet
programs and other analysis software.
See the section Computation Parameters in Chapter 8 for details of how to generate
text output files.

Log Files
The input parameter files (extensions = PAR) can reference other PAR files, much like an
INCLUDE directive in C or Fortran. As the simulation processes the parameter files, it
writes the names into a LOG file. The LOG fileprovides the same information as can be
obtained using the Parstree program.
Most users will never have occasion to look at the LOG files. They exist because they
can help to debug problems involving parameters not getting through, such as when
changes are made to the directory structure of the CarSimEd libraries.

Rev: July 28, 1998 — 45 —


5. The Animator
CarSimEd includes a program for animating wire-frame figures to visualize vehicle
motions. The animation is accomplished by drawing images similar to what would be
seen with a video camera, and updating the images many times per second to show
motion.

Updates
The animator program is used in a number of software packages. The latest version is
always available from the Internet at:
http://www.trucksim.com/animator.html
If you download a newer version, simply replace the file Animator.exe in the
Animate folder in CarSimEd.

Overview of Operation
To help understand the animator, imagine that you are aiming a video camera at a vehicle
as it moves down the road. Thirty times per second, the camera records an image of the
vehicle and ground as seen from your point of view. By playing back those images at the
same rate (thirty times per second), you see the vehicle move relative to its surroundings.
If the camera has a zoom lens, you can zoom in to fill the screen with the vehicle. Or, you
can zoom out to shrink its apparent size.
What you see depends in part on where you are located. You could be standing on the
ground, in which case your position would not change. Or, you might be in another
vehicle that moves with the vehicle. In the animator, your location is defined as the
“camera point.”
Your view is also determined by how you aim the camera. You might have the camera
aimed at a fixed point in space. The vehicle would only be visible while it is in camera
view. More likely, you would move and aim the camera as needed to keep the vehicle in
view. In the animator, the camera is aimed directly at a “look point.”
Figure 5.1 shows the basic geometry and the relationships between the camera point, a
look point, the 3D system being animated, and the 2D image that is recorded.
The animator allows you, the user, to build and modify descriptions of the system to be
animated. In order to use the program effectively, it is helpful to understand the concept
of a moving reference frame.

— 46 —
Chapter 5 The Animator

Reference Frames
The animator creates images based on a set of visible objects that includes a grid, wheels,
and arbitrary wire-frame shapes defined by a sequence of connected lines. Some of the
wire-frame objects are organized into groups that move together (for example, the body
of the vehicle).

Origin of global
coordinate system

Look point

Origin of moving
coordinate system 2D projected image

Camera
point

Foc
al le
ngth

Figure 5.1. Geometry of the camera point and the look point.

A group of points and objects that maintains a fixed relationship (i.e., that constitute a
rigid body) is called a reference frame. Although the reference frame might move and
rotate, the spatial relationships between objects in the reference frame do not change
relative to each other. In the animator, all motions are associated with reference frames.
Each reference frame has a rectangular coordinate system that is used to describe 3D
locations of points within that reference frame. For example, Figure 5.1 shows the
origins and axes for two reference frames: a global non-moving frame, and a frame that
moves with a vehicle body.
In general, it is not possible to tell how many reference frames exist by looking at a single
image. However, by observing an animation, it is sometimes possible to visually see the
effects of all reference frames. For example, the system shown in Figure 5.1 includes six
reference frames:
• A fixed global reference frame is used to locate a fixed grid that shows the
ground plane. The three axes of a coordinate system fixed in this reference
frame are shown in the figure.

Rev: July 28, 1998 — 47 —


Chapter 5 The Animator

• A moving frame is associated with the vehicle body. The body is simply a
series of lines drawn in this reference frame. The three axes of a coordinate
system fixed in this reference frame are shown in the figure. Given that the
coordinate system is fixed in a moving reference frame, then it follows that
the coordinate system moves.
• Each of the four wheels is associated with a separate reference frame.
Wire-frame shapes are all defined using local X-Y-Z coordinates. The animator
transforms the local X-Y-Z values to global X-Y-Z values in order to draw the shape. To
perform the transformation, the animator must know the location and orientation of the
reference frame relative to the global reference frame. This is defined by six variables:
three coordinates (global X-Y-Z) and three rotation angles that are called Euler angles.
The six variables needed to locate and orient the reference frame for the vehicle bodies
and wheels are all computed as part of the simulation. It is also possible for you, the user,
to define new reference frames using combinations of the variables computed in the
simulations. Details for specifying reference frames are provided in Chapter 8 in the
section Animator Reference Frames. That section also provides more information about
Euler angles.

Files
When the animator is started from a CarSimEd Runs screen, the necessary files are
automatically opened. Therefore, it is not necessary to know the names of the input files.
However, an understanding of how the animator reads the necessary information from
files might be helpful in understanding its operation.
The animator program reads two kinds of input files (see Figure 5.2). As noted above, all
motion is due to movements of reference frames, as defined by up to six variables. Those
six variables are read from an ERD file, created by the simulation programs whenever a
run is made. Appendix B provides details of the ERD file format, and Appendix G shows
a list of variables contained in a typical CarSimEd ERD file.
Other information such as program settings, definitions of parts, shape information, etc. is
described with keyword-based text files, typically with the extension PAR. These files,
called PARSFILEs, have the same general design as the input files read by the simulation
programs. A single top-level PARSFILE contains the names of other PARSFILEs with
camera information, vehicle information, reference frames, etc.
Appendix D describes the keywords used in the animator PARSFILEs. The keywords are
also mentioned in the documentation for the six animator library screens contained in
Chapter 8.

Rev: July 28, 1998 — 48 —


Chapter 5 The Animator

PAR files ERD file


Animator set up and shape Motion information from
information from data base a simulation program

Animator

Figure 5.2. Animator input files.

Units
The animator requires all angles to be in degrees, and all coordinates to be in the same
units of length. CarSimEd uses meters for animation length units. The animator allows
user-defined scale factors for all coordinates and variables. This means that a mixture of
units can be accommodated. For example, if some coordinates have units of meters and
others millimeters, the values in millimeters can be associated with a scale factor of 0.001
to convert them to meters.
See the sections Animator Reference Frames, Animator Shapes, and Animator
Wheels in Chapter 8 for details on how to set scale factors.

File Menu
The file menu is used to read files, write files, and exit the program. Printing is not
functional in the current version. To print a graphic, you can (1) copy it to the clipboard

Rev: July 28, 1998 — 49 —


Chapter 5 The Animator

and paste it into another application (e.g., QLPad), and (2) print from the other
application.

Open Simulation (ERD) File…


Select this command to open an ERD file with the Windows file browse dialog. Recall
that the six variables needed to define each reference frame are obtained from the ERD
file produced by a simulation programs. If you read a new ERD file, the animator will
show motions from that simulation, using the same camera point of view, shape
descriptions, etc. The keyboard command is Ctrl-E.

Open Parsfile…
Select this command to open a PARSFILE (extension = PAR) with the Windows file
browse dialog. If you read a new PARSFILE, the animator will show the same motions
as before, using the new camera point of view, shape descriptions, etc. as defined in the
new PARSFILE. The keyboard command is Ctrl-O.

Reload Current Files


Use this command to restore the original settings by reloading the current ERD file and
PARSFILEs. The keyboard command is Ctrl-R.
Besides restoring settings, this menu command can speed up the process of creating new
shapes or other animator inputs, as described later in this chapter in the section Testing
New Shapes and Animator Data Sets.

Save Parsfile As
Select this command to save most of the animator settings. The animator data from the
CarSimEd SGUI are spread over the six animator libraries described in Chapter 8.
Multiple shapes and reference frames are commonly used, which means that the animator
program might read 20 or more PARSFILEs when it runs. This menu command creates a
single PARSFILE with all of the information consolidated.
The PARSFILE can be used later as an input to the animator, to exactly recreate the
current settings. The file can also be viewed in a text editor to debug inputs that cause
problems, or to obtain camera and look-point coordinates that were set interactively using
the Coordinates menu.
When you select the command, it displays the following dialog box. The numbered items
in the dialog box are described below.

Rev: July 28, 1998 — 50 —


Chapter 5 The Animator

2 3
1
4
5
6
7
8

1 Pathname for file to be created. The default is echo.par, in the same folder as the
animator program. You can type a new pathname in this field or use the browse
button 2 .
2 Browse button. Click to bring up the Windows file browse dialog to search your
directory system for a suitable folder. If you select a folder using the browse dialog,
the resulting pathname is automatically entered into the file field 1
3 Save button. Click to create the Parsfile.
4 Cancel button. Click to exit the dialog without creating a file.
5 Check box for shape and frame definitions. If checked when you click the Save
button, all vehicle shape and frame data will be included in the file.
6 Check box for grid definitions. If checked when you click the Save button, the
current grid information will be included in the file.
7 Check box for Camera definitions. If checked when you click the Save button, the
current camera reference frame and point coordinates will be included in the file.
8 Check box for Look-point definitions. If checked when you click the Save button,
the current look-point reference frame and coordinates will be included in the file.
Exit — exits the animator program. To use the keyboard, type the Windows-standard
sequence: Alt-F, X. Ctrl-Q also works.

Edit Menu
The Edit menu exists to support the clipboard and to set preferences.

Image Copy
Select this command to copy the screen display to the clipboard as a bitmap. The
keyboard command is Ctrl-C.

Rev: July 28, 1998 — 51 —


Chapter 5 The Animator

Preferences...
Select this command to set a few options for the animator that are saved when you quit
the program. The preferences are stored in a file Prefs.txt, described in Appendix D.

1 6

2 7
3

The numbered items in the dialog box are described below.


1 Check box to display warnings. When checked, the animator will print messages to
help diagnose errors in the input files.
2 Check box to run after loading files. When checked, the animator starts running as
soon as the files have been read. If the box is not checked, the animation must be
started by typing Ctrl-S or using the Animation menu.
3 Default frame rate. Frame rate can be set to be smaller than that rate defined by the
time step in the ERD file generated during a simulation run. This value will be used
when the animator is started. Frame rate can also be modified interactively (see
Figure 5.3 on page 56).
4 End of run pause. The animator delays this amount of time at the end of a run
before looping to start over. A pause of 0.5 sec or more gives a visual indication
that the run has ended.
5 Log file. Enter a name for an optional file written by the animator as it processes the
inputs (use the adjacent button to select a destination folder). The log file is
sometimes helpful for debugging, but it is not needed for normal operation.
6 OK button. Click to apply the new preferences.
7 Cancel button. Click this to close the dialog box without changing anything (keep
the previous preferences).

Rev: July 28, 1998 — 52 —


Chapter 5 The Animator

Animation Menu
The animation menu exists mainly to remind you of keyboard commands that control
animation. Although the menu items are functional, you will usually find it quicker to
press the indicated keys.

Start From Beginning


Select this command to restart the animation from the beginning of the simulation run.
The keyboard command is Ctrl-S.

Continue From Current Position


Select this command to continue the animation if it has been stopped. The keyboard
command is Ctrl-D.

Stop
Select this command to stop (pause). This is like being able to freeze time. While
stopped, you can still use the Coordinates menu to move the camera around, zoom in
and out, and change the look-point. The keyboard command is the space key.

Step Forward
Select this command to step forward one increment in time, like a frame advance on a
VCR. The keyboard command is the ‘s’ key.

Step Backward
Select this command to step backward one increment in time. The keyboard command is
Shift-S.

Coordinates Menu
This menu exists mainly to remind you of keyboard commands that control the camera
viewpoint. Although the menu items are functional, you will usually find it quicker to
press the indicated keys.

Rev: July 28, 1998 — 53 —


Chapter 5 The Animator

The first six items are used to change the position of either the camera point or the look
point, depending on which is checked further down in the menu. The currently affected
point is checked in the menu, and is written in the animator status bar (at the bottom of
the animator window).
The camera and look points are shown in Figure 5.1 on page 47. The camera point
defines where the camera is located, and the look point defines where the camera is
looking. For example, consider changing the Z coordinate (height) of either point.
Increasing the Z coordinate of the camera has the effect of raising the camera, as if you
are viewing the vehicle from a helicopter that rises. On the other hand, increasing the Z
coordinate of the look point has the effect looking up. When you look up, everything in
view shifts down.

X-Coordinate Plus
Select this command to increase the X coordinate of the camera or look point. The
keyboard command is the ‘x’ key.

X-Coordinate Minus
Select this command to decrease the X coordinate of the camera or look point. The
keyboard command is Shift-X.
Note: The keyboard commands are assigned so plain key commands
increase things, and using the shift key decreases things. For
example, 's' steps forward, Shift-S (S) steps backward; 'x' increases
an X coordinate, Shift-'x' (X) decreases it.

Y-Coordinate Plus
Select this command to increase the Y coordinate of the camera or look point. The
keyboard command is the ‘y’ key.

Y-Coordinate Minus
Select this command to decrease the Y coordinate of the camera or look point. The
keyboard command is Shift-Y.

Rev: July 28, 1998 — 54 —


Chapter 5 The Animator

Z-Coordinate Plus
Select this command to increase the Z coordinate of the camera or look point. The
keyboard command is the ‘z’ key.

Z-Coordinate Minus
Select this command to decrease the Z coordinate of the camera or look point. The
keyboard command is Shift-Z.

Camera Coordinates
Select this command to cause the camera position to be controlled by the first six menu
items. The keyboard command is the C key.

Look-Point Coordinates
Select this command to cause the loop point position to be controlled by the first six
menu items. The keyboard command is the L key.

Increase Focal Length


Select this command to increase the camera focal length. This is the same as zooming in.
The keyboard command is the ‘f’ key.

Decrease Focal Length


Select this command to increase the camera focal length. This is the same as zooming
out. The keyboard command is Shift-F.

Options Menu
This menu has commands for setting several options in the animator operation.

Grid On
Select this command to toggle the grid display.

Modify Grid
Select this command to display a dialog box for setting properties of the grid.

Rev: July 28, 1998 — 55 —


Chapter 5 The Animator

Set Frame Rate


Select this command to display the following dialog box and control the rate at which the
animator can play back a simulation run. The keyboard command is Ctrl-F. The items
numbered in Figure 5.3 are described below.

1 2

3 4

5
7 8
6

Figure 5.3. Setting the frame rate.

1 Maximum frame rate possible, given the data in the ERD file. The frame rate is the
reciprocal of the time step 2 .
2 Time interval between stored data points from the ERD file header. This value is
specified in line 2 of the header of the ERD file. This is the minimum time possible
between animation frames.
3 Target frame rate for animation. If the animation is running too slowly, you can
specify a lower frame rate to speed it up. Typically, frame rates of 10 to 30 frames
per second can run in real-time on Pentium computers. If the target frame rate is
very high (more than 100), the computer will not be able to refresh the screen in
real time and the animation will run in slow motion. If you change this value, the
animation time step 4 is automatically changed (the frame rate is the reciprocal of
the time step).
The default frame rate is specified under the Preferences option in the Edit menu
(see page 52).
4 Animation time step. If the animation is running too slowly, you can specify a
larger time step to speed it up. If you change this value, the animation frame rate
3 is automatically changed (the frame rate is the inverse of the time step).

Note: If you specify a time step that is smaller than the value in the file
2 , the value in the file is used. To run with the minimum time
step (show every frame possible), you can enter a value of 0 and
the animator will replace it with the value from the ERD file.
5 Check box for real time animation. If the animation is running too quickly, check
this box to slow it down to real-time. When this box is checked, the animator
accesses the computer clock and waits if necessary to avoid running the animation
faster than real time.
Notes: The process of checking the computer clock introduces a small
delay. The delay depends on the computer and how your system is

Rev: July 28, 1998 — 56 —


Chapter 5 The Animator

set up. It is because this delay exists that the check box is provided.
When you check the box, the delay is eliminated.
If the animation is already running slower than real-time, checking
the computer clock will slow it down even more. If the animation
is running slower than real time and you want to speed it up, you
must decrease the frame rate 3 or increase the time step 4 .
6 Check box for maximum speed animation. When checked, the animator does not
access the computer clock, allowing maximum display speed. Check this box if the
animation is running slower than real time.
7 OK button. Click to exit the dialog box and apply the new settings.
8 Cancel button. Click to exit the dialog box without changing the settings.

Superimpose Vehicle
Select this command to toggle an option to draw new images without erasing old ones.
This mode is useful with some configurations to show trajectories of vehicle motion, or
to show amplitudes of oscillations.

Modify Camera Locations


Select this command to display the following dialog. The numbered items are described
below.

2
3

4 5

Notes: These settings are similar to those contained in the Animator


Camera Setup library, described in Chapter 8.
Units of length should be compatible with coordinates used for
shapes and reference as described in the section Units on page 49.

Rev: July 28, 1998 — 57 —


Chapter 5 The Animator

1 Focal length. This is the distance from the camera point to the 2D plane used to
project the 3D objects. See Figure 5.1 for the geometry.
2 X, Y, and Z coordinates of camera point, in its reference frame.
3 X, Y, and Z coordinates of look point, in its reference frame.
4 Cancel button. Click to exit the dialog box without changing the camera settings.
5 OK button. Click to exit the dialog box and apply the new settings.

Help Menu
This menu is standard in Windows for providing information about a program.

About Engineering Animator


Select this option to display the current animator version and creation date.

Pop-Up Menu
Click on mouse right button to display following menu. All items on this menu are copies
of items on the main menus and perform the same function when applied from the right-
click pop-up menu. The menu is provided so you don’t have to move the mouse as much
to perform common actions.

Rev: July 28, 1998 — 58 —


Chapter 5 The Animator

Time Control Slider


Under the animator window there is a time-control slider that provides random access
into the animation. You can use this to jump to any point in a run. This can be convenient
with long simulation runs, because you can go right to an event of interest without
viewing the early parts.
1 4 2 3

1 Start time from the input file.


2 Finish time from the input file.
3 Current animation time. This is the simulation time associated with the currently
displayed animation view.
4 Slider control. The slider moves as the animation proceeds. Its relative position
indicates graphically the time associated with the currently displayed view. You can
use the left-button of the mouse to move the slider and change the current animation
time.

Testing Animator Data Sets


The animation setup information is contained in the CarSimEd database but is displayed
by the animator program. It is helpful to know how to use both the database and the
animator to test and debug new animator settings.

Viewing the PARSFILE Tree


As shown in Figure 5.2 on page 49, all information about shapes, camera position,
reference frames, etc. comes into the animator through PARSFILEs (files with extension
PAR). At a top level, the animator is given the name of an ERD file and the name of a
PAR file. Both have the same base name—the number appearing in the upper-right
corner of the Runs screen.

The top-level par file associated with the Runs screen includes references to other PAR
files. In fact, every blue link on the screen is represented in the PAR file with the
keyword PARSFILE followed by a full pathname to another PAR text file. If any of those
pathnames are not valid, the animator will generate an error message and quit without
showing an animation.

Rev: July 28, 1998 — 59 —


Chapter 5 The Animator

Bad pathnames can be quickly located by using the PARSTREE program in CarSimEd.
To run it, just click on the button with the tree icon: . Alternatively, go to the Tools
menu and select the item View Parstree. The PARSTREE program brings up a window
with two panes, similar to the Windows Explorer.

Figure 5.4. Pars Tree window.

For the example shown in Figure 5.4, the file 211.par is marked to indicate an invalid
reference. The panel on the right displays the contents of the selected PAR file, 212.par.
From reading the PAR file that references the nonexistant file, it is seen to be in the
animator FRAMES folder. Inspection of the FRAMES library should reveal that one of
the data sets has been deleted or renamed, causing the bad link.

Toggling Between the Database and the Animator


The basic method for editing shapes and testing animator data sets is as follows:
1. Create animator settings using the five animator libraries described in Chapter 8.
2. Link to the new settings in the Car screen (via the Animator Group link). (To test new
camera settings, link to the new settings from the Runs screen.)
3. Go to the Runs screen and click the Animate button. The run should use the Car data set
with the link to the new animator settings.

Rev: July 28, 1998 — 60 —


Chapter 5 The Animator

4. View the animation. When you are ready to modify the settings, stop the animation. Press
the space key or use the Stop command from the Animation menu.
5. Without quitting the animator, switch back to the CarSimEd Runs screen. (Use Alt-Tab
in Windows to switch between running programs.)
6. Within the ToolBook part of CarSimEd, navigate to the screen with the animator data to
be edited (e.g., an animator shape data set).
7. Edit the data in the CarSimEd data set. As soon as you modify any data, you will see a
red circle in the upper-right corner of the window.

Click Here

7. Click on the red circle in the upper-right corner. This causes CarSimEd to update the
PARSFILE using the new data from the screen.
Note: Normally, communication between the database and the animator
is transparent. All necessary files are properly updated when you
click the Animate button in the Runs screen. Here, you are
bypassing the normal operation, and must force the SGUI to
update the PARSFILE before it would normally do so.
8. Switch back to the animator (use Alt-Tab).
9. Select the menu item Reload Current Files under the File menu (or type Ctrl-R) to see
the effect of the new data.
10. Optionally switch back to the SGUI screen and repeat steps 6 through 9 as needed.

Rev: July 28, 1998 — 61 —


6. The Plotter
You view plots of the CarSimEd simulation results with a program called Windows
Engineering Plotter (WinEP). WinEP is a versatile tool you can use to plot any two
variables against each other. You can also overlay data from the same file or different
files.

Updates
The plotting program is used in a number of software packages. The latest version is
always available from the Internet at:
http://www.trucksim.com/winep.html
If you download a newer version, replace the file winep.exe in the Plot folder in
CarSimEd.

Overview of Operation
WinEP has a workspace defined by a main window with a menu bar. The main window
contains plot windows, each showing plots made with a single set of X-Y axes. Figure
6.1 shows the main WinEP window with four example plot windows.
Each plot window contains a graphical representation of one or more X-Y data sets. An
X-Y data set is a series of X and Y values obtained from a data file. The X-Y data sets
can come from the same file or from different files. The X values in each data do not
have to be the same, and the data sets do not have to contain the same number of points.
WinEP reads the data from ERD and text files and has completely automated scaling,
formatting, and labeling capabilities. However, labeling options are limited for non-ERD
text files.
Note: If a file is not in ERD format, it can be converted by adding several
lines of text to the beginning of the file. A description of the ERD
file format is provided in Appendix B.
Once a plot window is created, the X-Y data sets can be transformed by subtracting
offsets or by applying high-pass or low-pass filters. However, the data sets cannot be
deleted or replaced. If you create a plot with different data sets, the new plot will have a
new window.

— 62 —
Chapter 6 The Plotter

Figure 6.1. The WinEP workspace.

In addition to the X-Y data, each plot window has a set of formatting attributes, such as
the colors of the lines, the size of the labeling text, the type of grid, etc. You can show the
data points with connecting lines, symbols, or both. You can use linear or log scaling and
you can choose from several axis types. The formatting can be set independently for each
plot, and changed interactively at any time.
You can copy the WinEP plots to the clipboard and send them to a printer.
There are no built-in limits to the number of active plot windows that can be maintained
by WinEP. The only limits are imposed by computer memory.

Batch and Interactive Operation


WinEP can be started in one of two modes. When you click a Plot button from one of the
CarSimEd data screens, CarSimEd starts WinEP in batch mode. It sends WinEP a file
with information that you specified in the CarSimEd data screen. Based on the contents
of the file from CarSimEd, WinEP initially creates one or more plots. Once the initial
batch of plots is made, WinEP reverts to interactive mode. In the interactive mode you
can view the plots, print them, and change their formatting. You can also create new
plots.

Rev: July 28, 1998 — 63 —


Chapter 6 The Plotter

You can also run WinEP as a normal Windows application. Start in this mode by double-
clicking on the file Winep.exe. When started in this way, the WinEP workspace is
empty and you must use a menu command to define the data for the first plot. A better
way to start is by double-clicking on a file with the extension ERD. This starts the WinEP
program and automatically loads the selected ERD file. You must then pick X and Y
variables from the file to create the first plot.
Note: The file Winep.exe must be associated with the file type ERD if
you want to launch it by double-clicking on an ERD file. The
association is made automatically as part of the CarSimEd
installation. You would need to re-establish the association only if
you move the CarSimEd directory, or if you copy the WinEP
program to another computer that does not have CarSimEd on it.
Appendix C describes the batch control file for WinEP, created automatically by
CarSimEd, and the keywords that are recognized by WinEP.
The rest of this chapter covers the interactive use of WinEP.

Zooming
WinEP usually creates each plot window with the axes scaled to show all data points. To
zoom in, use the mouse to create a zoom rectangle. Press the left button to anchor one
corner at the current cursor location, then drag with the button still pressed to define the
rectangle. When the rectangle covers the desired range, release the button. WinEP will re-
draw the plot using the region of the rectangle as the new limits for the axes.
Figure 6.2 shows the appearance of a plot with a zoom rectangle drawn, just before the
mouse button is released. Figure 6.3 shows the same plot window immediately after the
button is released.
Note: WinEP rounds off the maximum and minimum values for the axes.
The new plot is drawn to include the full range of the rectangle you
drew with the mouse, plus some additional range to round off the
axes. For example, the maximum Y value from the zoom rectangle
shown in Figure 6.2 is about 3500. The maximum value in the
zoomed plot of Figure 6.3 is rounded up to 4000.
If you click in a plot window without drawing a rectangle, WinEP re-draws the screen
with the same scale as before.

Rev: July 28, 1998 — 64 —


Chapter 6 The Plotter

Figure 6.2. Plot before zooming.

Figure 6.3. Plot after zooming.

Rev: July 28, 1998 — 65 —


Chapter 6 The Plotter

Tool Bar
WinEP includes a toolbar with buttons for applying some of the most common
commands. Place the cursor over a button to read its function in a pop-up box and also in
the status bar.
All toolbar buttons provide actions that duplicate menu items. The actions are described
in the following descriptions of the menu items. When a menu item has an associated
toolbar button, the button is shown in the heading for the menu item.

File Menu
The file menu is used to read files, write files, print windows, and exit the program.

Load ERD File…


Select this command to open an ERD file with the Windows file browser dialog box.
After the file is opened, a dialog box appears that you use for selecting variables from the
file to plot. The keyboard command is Ctrl-E.

Load Batch File...


Select this command to process a batch plot file with the Windows file browse dialog.
When created automatically by CarSim, batch plot files have the extension PLT and are
located in the directory containing the library where the Plot button was clicked (either
Runs or Batch\Plot_bat). When loaded, the batch file will cause WinEP to generate
one or more plots. The keyboard command is Ctrl-B.

Rev: July 28, 1998 — 66 —


Chapter 6 The Plotter

Load Plot Format…


Formatting information for plots can be stored in files. These files can be created from
within WinEP using the Save Plot Format command (from this menu) and also from
within the CarSim data base (see the section Plot Format in Chapter 8).
Select the Load Plot Format command to load one of these format files. This command
brings up the Windows file browse dialog to open a file with the extension PAR. When
loaded, WinEP will redraw the current plot with whatever new formatting information
was loaded. The keyboard command is Ctrl-O.
Note: Format files created within the CarSim graphical user interface are
in the CarSim folder Plot\Format.

Close Top Window


This closes the top (active) plot window. The keyboard command is Ctrl-W.

Save Plot Format


Use this command to save the current plot formatting information. The default extension
is PAR. The formatting can be applied in the future using the Load Plot Format
command. When loaded, the formatting file will cause WinEP to redraw the current plot
with the new format. The keyboard command is Ctrl-S.

Save Plot Data


Use this command to save the current X-Y data set in a text file. It is a handy way to
extract data from an ERD file, two channels at a time. A similar option is available under
the View menu for viewing the data.

Save Channel List


This command creates a text file listing all of the channels in an opened ERD file. WinEP
brings up a dialog box for saving a text file with the list of channels. A similar option is
available under the View menu for viewing the channels.

Print
Use this command to make a hard-copy of the active plot using the current Windows
printer. The keyboard command is Ctrl-P.

Print Preview
This command opens a window showing how the active plot would be printed using the
current print settings.

Print Setup
This command brings up the Windows dialog box for changing printer information.

Rev: July 28, 1998 — 67 —


Chapter 6 The Plotter

Exit
Use this comand to exit WinEP. To use the keyboard, type the keyboard command Ctrl-
Q, or Alt-F4, or Alt-F, X.
Note: Alternatively, you can click the in the upper right hand corner
of this screen to return to the Runs screen.

Edit Menu
The Edit menu has commands to support the clipboard and to set preferences. When a
dialog box is in front, the Edit menu cannot be used with the mouse. However, the
keyboard commands are functional and can be used to cut, copy, and paste within text
fields

Undo
The keyboard command (Ctrl-Z) undoes the most recent entry in a dialog box.

Cut
The keyboard command (Ctrl-X) cuts currently selected text to the clipboard. This item is
only in effect when editing text in dialog boxes. Modification of the graphic display is not
supported.

Copy
This command copies the plot from the active plot window to the clipboard. The graphic
is copied as a bitmap. If a dialog box is active, this command copies currently selected
text to the clipboard. The keyboard command is Ctrl-C.

Paste
The keyboard command (Ctrl-V) pastes text from the clipboard into the current cursor
location. If text is selected, it is replaced by the contents of the clipboard. This item is
only in effect when editing text in dialog boxes.

Rev: July 28, 1998 — 68 —


Chapter 6 The Plotter

Preferences
This command brings up the Preferences dialog box. When you quit WinEP, the settings
from this dialog box are automatically saved to a file named epprefs.txt, which
stores the settings.

1 3

2 4

The numbered items in the dialog box are described below.


1 Toolbar display mode. When checked, the toolbar is displayed when the program
starts. Otherwise the toolbar is hidden and you must use the View menu to show it.
2 Startup window mode. This controls the initial appearance of the plot windows
when WinEP is started in batch mode. For the Cascade setting, the individual plot
windows are smaller than the WinEP workspace. For the Maximize setting, the
active plot window is maximized to fill the WinEP workspace. For the Tile settings,
multiple plots are tiled to fill the WinEP workspace.
3 OK button. Click this to close the dialog box and apply the new preferences.
4 Cancel button. Click this to close the dialog box without changing anything (keep
the previous preferences).
5 Folder where last format file was read. The next time the Load Plot Format
command (from the File menu) is used, WinEP will open the file browser starting
with this folder.
6 Folder where WinEP creates temporary files.
7 Folder where the last ERD file (with numerical data to plot) was read. The next
time the Load ERD File command (from the File menu) is used, WinEP will open
the file browser starting with this folder.
8 Folder where the last batch file was read. The next time the Load Batch File
command (from the File menu) is used, WinEP will open the file browser starting
with this folder.

Rev: July 28, 1998 — 69 —


Chapter 6 The Plotter

Format Menu
This menu has commands for controlling the appearance of the plots made.

Log X Axis
Use this command to toggle between linear and log scaling for the X axis of the active
plot. If the log axis is selected, the menu item has a check mark. The keyboard command
is Ctrl-H.
Note: WinEP will ignore the X axis log option and revert to the linear
option if there are one or more zero or negative X values in the
data set. However, if you zoom in to exclude the zero values, the
log option can be used for the data shown.

Log Y Axis
Use this command to toggle between linear and log scaling for the Y axis of the active
plot. If the log axis is selected, the menu item has a check mark. The keyboard command
is Ctrl-G.
Note: WinEP will ignore the Y axis log option and revert to the linear
option if there are one or more zero or negative Y values in the
data set. However, if you zoom in to exclude the zero values, the
log option can be used for the data shown.

Re-Draw Current Scale


Use this command to re-draw the active plot with the current formatting. It is
sometimes needed if the window display gets corrupted by another window being
in front. You can accomplish the same thing by clicking in the plot area with the
mouse.

Re-Draw Original Scale


Use this command to re-draw the active plot without any zooming. The current
scaling option is used, as specified with the Customize Plot Format option under
this menu. The keyboard command is Ctrl-R.

Customize Plot Format


Use this command to display a preferences dialog box for setting most formatting
options. The dialog is used for four sets of data, selected with tabs.

Rev: July 28, 1998 — 70 —


Chapter 6 The Plotter

The first tab, Axes 1 , controls the scaling of the X and Y axes.

2 2

3 3

4 4
5 5

6 7 8 9

You can use this dialog box to type in the desired ranges of X and Y values in the next
plot.
2 X, Y axis type. These controls define whether the axis will be drawn with a linear
or log scale. They duplicate the Log X and Log Y menu commands.
3 Autoscaling (X and Y axes). Check to cause WinEP to scan the data and size the
axis to include the full range of data. This setting is recommended for routine use.
4 Manual scaling (X and Y axes). Check to scale the axis according to the range
specified in the adjacent fields 5 . This setting is provided for situations in which
you wish to make many plots with the same axes, regardless of the range covered
by the data.
5 Range of data covered by axis. Specify minimum and maximum values for scaling
the axis. These are used only when the manual scaling button 4 is selected.
6 OK button. Click to close this dialog box and apply the settings as displayed.
7 Cancel button. Click to close this dialog box and revert to the previous settings.
8 Apply button. Click to apply the current settings without closing the dialog box.
This button is not functional in the current release.
9 Help button. Click to display on-line help. This button is not functional in the
current release.

Rev: July 28, 1998 — 71 —


Chapter 6 The Plotter

10

11

12 13

14

6 7 8 9

10 X-Y Data Set tab. Click to show the settings that control the display of a data set.
Note: An X-Y Data set is a set of X and Y values from a specific file.
Each data set is represented graphically in a plot. When multiple
data sets are shown in the same plot, they can be distinguished by
assigning them different display attributes.
11 X-Y Data set. Press the button to display a pull-down menu with the list of Y
variables for each data set. Select a data set to display and possibly edit its
attributes.
12 Symbol. This field shows the symbol currently associated with the data set 11 .
Press the button to display a pull-down menu of available symbols. Choose one
to change the current symbol.
13 Line type. This field shows the type of line currently associated with the data set
11 . Press the button to display a pull-down menu of permissable types, and
choose one to change the way connecting lines are drawn between the data points.
14 Color. This field shows the color currently associated with the data set 11 , in terms
of RGB values (24-bit color, composed of components of Red, Green, and Blue).
Press the button to display a palette of colors.

Rev: July 28, 1998 — 72 —


Chapter 6 The Plotter

After selecting a color, click the OK button to return to the format dialog box. The
RGB values for the selected color will be shown.

15

16 18 20

19
17

21

6 7 8 9

15 Plot Layout tab. Click to show the settings that control the display of the axes,
frame, and grid.
16 Axes. Press the button to display a menu with the choices: Axes or No Axes. The
No Axes option doesn’t work unless you also select No Grid 18 and No Frame 20 .
17 Max digits for Y axis. This is the number of digits set aside for the tick labels of the
Y axis. For example, if set to 3, WinEP draws the Y axis of every plot with enough
space for 3-digit labels for the Y axis. If set to 0, WinEP determines the spacing
automatically.

Rev: July 28, 1998 — 73 —


Chapter 6 The Plotter

A value of 0 is recommended unless you want all plots to be drawn in exactly the
same place relative to the left edge of the window.
18 Grid. Use this to choose between the options: No Grid, Course Grid (grid lines at
major tick marks), or Fine Grid (grid lines at minor tick marks).
19 Legend location. Use this to choose among five possible locations for the legend
used to identify the X-Y data sets in overlay plots. The options are Right of Plot, On
Plot Upper-Left, On Plot Upper-Right, On Plot Lower-Left, and On Plot Lower-
Right. The legend and other labels in the plot are shown below in Figure 6.4.

Title
Y axis label

Legend

Tick labels X axis label


Figure 6.4. Names of plot labels.

20 Frame. Use this to determine whether the plot area has an enclosing rectangular
frame. The options are No Frame, Frame, and Frame with ticks. The No Frame
option doesn’t work unless you also select No Grid 18 .
21 Size limit for legend. When WinEP draws the legend for overlay plots to the right
of the plot area, it uses whatever space is needed. If the labels are lengthy, or if the
window is small, this can limit the horizontal space available for the plot. Use this
field to set a maximum amount of the window space that can be taken for the
legend.
This setting does not affect the plots unless: (1) there are at least two X-Y data sets
being overlaid, (2) the specified position 19 is “Right of Plot,” and (3) the length of
the longest label exceeds the specified percentage.

Rev: July 28, 1998 — 74 —


Chapter 6 The Plotter

22

23

24

25

26
27

6 7 8 9

22 Font tab. Click to show the settings that control the text used to label the axes and
data in the plot. The four types of labels, controlled with items 23 - 26 , are shown
in Figure 6.5.
23 Plot title font attributes. Click the selector button to bring up a Windows font
selection dialog box, as shown in Figure 6.5. The properties selected in the box will
be applied to the plot title. After choosing the font properties, click the OK button to
make the change, or click the Cancel button to keep the original properties.

Figure 6.5. Font dialog box.

Rev: July 28, 1998 — 75 —


Chapter 6 The Plotter

24 Axes labels. This is similar to the plot title button 23 , except that the settings made
using the Windows font dialog box (see Figure 6.5) are applied to the text used to
label the X and Y axes.
25 Tick labels. This is similar to the plot title button 23 , except that the settings made
using the Windows font dialog box (see Figure 6.5) are applied to the text
associated with the tick marks.
26 Legend labels. This is similar to the plot title button 23 , except that the settings
made using the Windows font dialog box (see Figure 6.5) are applied to the text
used to label the individual data sets in the legend.
27 Apply to all check box. When this is checked, changing font properties using any of
the buttons ( 23 24 25 26 ) will change all of the text in the plot.

Data Menu
The Data menu has commands that involve the numbers to be plotted and the associated
labels from the data files. The commands involve the selection of X-Y data sets, possible
transformation of the numbers, labels for the plot, and the viewing of the numerical
values using a cursor.

Define New Plot…


Select this command to bring up the Channel Select dialog box. The keyboard command
is Ctrl-N. Use this dialog box to create a list of X-Y data sets to plot. Each data set
consists of three parts: (1) a Y channel, (2) an X channel, and (3) a file name. The
numbered items in the dialog box are shown in Figure 6.6 and are described below.

Rev: July 28, 1998 — 76 —


Chapter 6 The Plotter

2
4 5 6 7

8
9

10

Figure 6.6. Channel Select dialog box.

1 List of X-Y data sets to plot. This list shows the data sets that will be plotted. You
cannot edit it directly, but can modify it using the buttons below.
2 List of variables in the current ERD available for defining the Y coordinate in a
plot. To select a variable for plotting on the Y axis, click on its name. Double-
clicking in this list has the same effect as clicking the Add button 7 .
3 List of variables in the current ERD available for defining the X coordinate in a
plot. To select a variable for plotting on the X axis, click on its name. Double-
clicking in this list has the same effect as clicking the Add button 7 .
4 Delete button. Click this to delete a data set from the list of data to plot 1 . This
button has no effect unless a line is selected in the list 1 .
5 Clear button. Click this to delete all data sets from the list of data to plot 1 .
6 File button. Click this to bring up the Windows file browser dialog box to choose an
ERD file or text file with plot data. This button has the same effect as selecting the
command Open ERD File from the File menu.
Note: While the dialog box is displayed, the WinEP menus cannot be
used. Therefore, the File button is the only way to open a new file
from within this dialog box.
7 Add button. Click this to add a new X-Y data set to the list of data to plot 1 . The
new data set has the currently selected Y channel 2 , the currently selected X
channel 3 , and the currently open file (shown in 9 ).
8 Plot button. Click this to close the dialog box and make a new plot using the current
list of X-Y data sets 1 .

Rev: July 28, 1998 — 77 —


Chapter 6 The Plotter

9 File name. This field shows the current data file. The name can be copied to the
clipboard, but there is not a reason to edit it directly. To change the file, you must
click the File button 6 .
10 Title. This field shows the title from the data file, if (1) the file is an ERD file, and
(2) the optional TITLE keyword is used in the ERD header. All ERD files created
by CarSimEd models show the title of the corresponding Runs data set.

Offsets…
Select this command to bring up the Data Offsets dialog box. Use this dialog box to
specify offsets for up to 20 data sets laterally (X) or vertically (Y). The values you enter
in these field will be subtracted from the values obtained from the data file. For any fields
left blank, no offset is applied.

When you are finished specifying the offsets, click the OK button. These offsets will be
applied to the active plot.
To apply the offsets to the original data (rather than the data as modified already), check
the boxes associated with each data set.

Filters…
Select this command to bring up the Filters dialog box. Use this dialog box to filter the Y
values in the data sets of the active plot using a moving average. The numbered items in
the dialog box are described below.

Rev: July 28, 1998 — 78 —


Chapter 6 The Plotter

1
5
2
6
3
7
4

8 9 10

1 No filter button. When this button is selected the data are not modified.
2 High pass button. When this button is selected, the Y variables are processed with a
high-pass filter. The data are smoothed using the specified baselength 5 , and the
smoothed values are subtracted from the original. See the Help button 8 for details
on how the filter works.
3 Low pass button. When this button is selected, the Y variables are processed with a
low-pass filter. The data are smoothed using the specified baselength 6 . See the
Help button 8 for details on how the filter works.
4 Band pass button. When this button is selected, the Y variables are processed with a
band-pass filter. The data are processed by a high-pass filter using the high-pass
baselength 5 , and then by a low-pass filter using the low-pass baselength 6 . See
the Help button 8 for details on how the filter works.
5 High-pass baselength. This is a reference used to define the scope of a moving
average. It has the same units as the variable plotted on the X axis. For example, if
the X variable is time with units of seconds, the baselength is the number of
seconds covered by the moving average. This baselength is also used for band-pass
filtering.
6 Low-pass baselength. This is a reference used to define the scope of a moving
average. It has the same units as the variable plotted on the X axis. For example, if
the X variable is time with units of seconds, the baselength is the number of
seconds covered by the moving average. This baselength is also used for band-pass
filtering.
7 Check box: Filter using original data. When this box is checked, the specified filters
are applied to the original data — the values read from the file. When not checked,
the filters are applied to the data as modified by previous filtering. If this box is not
checked, the data are processed every time the filter dialog box is displayed and
exited with the OK button.
8 Help button. Click this to display the following information.

Rev: July 28, 1998 — 79 —


Chapter 6 The Plotter

9 Cancel button. Click this button to exit the dialog box without changing the data in
the active plot.
10 OK button. Click this button to exit the dialog box and apply the specified filter to
all Y variables in the active plot.

Statistics…
Select this command to display a dialog box with simple statistics for the plotted
variables. The numbered items in the dialog box are described below.

3
1

1 X-Y data set name. Use the pull-down menu to pick the data set in the active plot
whose statistics will be displayed.

Rev: July 28, 1998 — 80 —


Chapter 6 The Plotter

2 Statistics for specified data set. The field is sized to display the statistics for two
variables making up a single X-Y data set. If you choose to show the statistics for
all data sets in the plot, then the scroll bar can be used to view the statistics for the
data sets after the first.
3 OK button. Click this button to exist the dialog box.
4 Show All button. Click this button to display the statistics of all data sets in the
active plot.

Labels…
Use this command to display the Labels dialog box. Use this dialog box to edit the plot
title, Y axis, X axis, and legend labels for the active plot. Figure 6.7 shows the dialog box
along with the active plot. The circled numbers appear both in the plot and the dialog
box, to indicate the correspondence between the field in the dialog box and the plot.

3 1

5 6

2 7 8

Figure 6.7. Labels dialog box.

1 Title. The title is shown in the top of the plot and also in the title bar of the plot
window. It can be edited in the dialog box.
2 X Label. This is the label written underneath the X axis. It can be edited in the
dialog box.
3 Y Label. This is the label written above the Y axis. It can be edited in the dialog
box.

Rev: July 28, 1998 — 81 —


Chapter 6 The Plotter

4 Names list, used to identify the X-Y data sets in the legend. To change any of these
labels:
a. Select it from the Names list 5 .
6
b. Edit the name as it appears in the edit field .
c. Click the Set button 7 to apply the change.
5 Edit field used to change a name in the legend.
6 Set button. Click to set the name selected in the Names list 4 to match the text in
the edit field 5 .
7 OK button. Click to close the dialog and apply the new settings to the active plot.
8 Cancel button. Click to close the dialog without modifying the active plot.

Show Data Points


This command toggles the mode of showing a cursor on the plot and the associated
coordinates in the status bar. The keyboard command is Ctrl-D.
When you select this option, a cursor will appear at the first data point contained in the
data file. For time history plots, the first point is at the far left side of the plot. However,
for cross-plots, the first point may be located somewhere else.
The X and Y values associated with the cursor are displayed in the status bar. For
example, in the figure below, the cursor is at the point: time = 5.325 sec, Yaw velocity =
–3.453 deg/s.

Rev: July 28, 1998 — 82 —


Chapter 6 The Plotter

Note: When there are multiple plot windows, the cursor and X-Y values
are always associated with the active window.

Cursor Position Info


This menu item displays a sub menu whose main purpose is to remind you of keyboard
commands that move the cursor. Although the menu items are functional, you will
usually find it quicker to press the indicated keys.

All of the functions on the sub menu are also available as buttons on the tool bar. The
buttons are dimmed unless the option to Show Data Points is enabled. This is indicated
visually in the toolbar by the button being “pushed in” as shown below.

Forward by 1 — use the right arrow key (→) to move one point forward, based on the
order the X values are stored in the file. When the cursor is on the last point in the file,
this command has no effect.

Forward by 10 — use the right arrow key (→) plus the Shift key to move 10 points
forward, based on the order the X values are stored in the file. When the cursor is on the
last point in the file, this command has no effect.

Forward by 30 — use the right arrow key (→) plus the Shift key plus the Control key to
move 30 points forward, based on the order the X values are stored in the file. When the
cursor is on the last point in the file, this command has no effect.

Rev: July 28, 1998 — 83 —


Chapter 6 The Plotter

Backward by 1 — use the left arrow key (←) to move one point backward, based on the
order the X values are stored in the file. When the cursor is on the first point in the file,
this command has no effect.

Backward by 10 — use the left arrow key (←) plus the Shift key to move 10 points
backward, based on the order the X values are stored in the file. When the cursor is on the
first point in the file, this command has no effect.

Backward by 30 — use the left arrow key (←) plus the Shift key plus the Control key to
move 30 points backward, based on the order the X values are stored in the file. When
the cursor is on the first point in the file, this command has no effect.

Min Y Point — use the down arrow key (↓) to locate the point with the minimum Y
value for the points currently displayed.

Max Y Point — use the up arrow key (↑) to locate the point with the maximum Y value
for the points currently displayed.

Start of Data — use the Home key to find the first point. This is the same as pressing the
left arrow repeatedly.

End of Data — use the End key to find the last point. This is the same as pressing the
right arrow repeatedly.

Next Data Set — use the Tab key to move the cursor between currently displayed data
sets in overlay plots. If the active plot has only a single data set, then this command has
no effect.

View Menu
Use this menu to toggle the display of the status bar, the tool bar, and to generate
information about the data files.

Rev: July 28, 1998 — 84 —


Chapter 6 The Plotter

Toolbar
Toggle this item to display or hide the toolbar.

Status Bar
Toggle this item to display or hide the status bar.

Show Numbers
Select this item to view the currently plotted data in tabular form. Numbers shown in the
window can be copied to the clipboard, and the entire contents can be saved to file.

If the plot includes many numbers, it can take some time for the window to appear.

Show Numbers
Select this item to view all variable names from the current ERD file. Unlike the short
names shown in the Channel Select dialog (see Figure 6.6), these names are longer and
include the units.
Text shown in the window can be copied to the clipboard, and the entire contents can be
saved to file.

Rev: July 28, 1998 — 85 —


Chapter 6 The Plotter

Display Log
This displays an error message window sometimes used for debugging.

Windows Menu
Use this menu to control the appearance of the plot windows in WinEP.

New Window
Use this command to copy the active plot window, along with the data and all format
settings.

Rev: July 28, 1998 — 86 —


Chapter 6 The Plotter

Cascade
Use this command to arrange all plot windows in a cascade, as shown below for two.

Tile Horz.
Use this command to tile the plot windows with horizontal divisions, as shown below for
two. If there are four or more windows, they are arranged in columns and rows.

Rev: July 28, 1998 — 87 —


Chapter 6 The Plotter

Tile Vert.
Use this command to tile the plot windows with vertical divisions, as shown below for
two. If there are four or more windows, they are arranged in columns and rows.

Arrange Icons
Use this command to tidy any “iconized windows” in the WinEP workspace.

Next Window
Use this command change the active plot window (for cross-hair display). The keyboard
command is the PageDown key. If there are more than two plot windows, keep pressing
the PageDown key until the desired window becomes active.

Help Menu
This menu has a command to open the About WinEP dialog box. Use it to obtain the
version number and to obtain the current web site for updates.

Rev: July 28, 1998 — 88 —


7. Design of CarSimEd Data Screens
This section describes several standard elements in the CarSimEd design that are shared
in many of the data screens. All data screens have the same set of controls at the top in a
ribbon bar. All have the same menu bar. Also, data screens with tabular data have a
common layout.

The Ribbon Bar


Almost every screen in CarSimEd has a standard ribbon bar at the top. It contains the
name of the data sets, information about the last time the data set was modified, and a
number of navigational controls.

3 4 5 6 7 8 9 23 24
1
22 25
2
10 11 12 13 14 15 16 17 18 19 20 21 26

Fields
1 Data Set field. This field shows text entered by you, the user, to name the current data set.
There are a few restrictions on titles: (1) each data set in the library must have a unique
title; (2) the title cannot include a comma (the software will automatically replace it with
a semicolon); and (3) the length of the title is limited to 32 characters.
Note: On the Runs screen this is where you give a unique name to the
run of a specific vehicle, maneuver, and simulation model. In a
vehicle screen, it typically serves to identify the vehicle and its
properties, and so on for other screens.
2 Category field. This field shows text you use to create a sub-menu for listing the contents
of the library. The Category field is provided as a convenience for you to divide large
numbers of data sets into logical groups in pull-down menus. If the category field is blank
then the title is shown in the top-level menu.
Data sets in different categories are still subject to the restriction that they cannot
have the same names.

— 89 —
Chapter 7 Design of CarSimEd Data Screens

Buttons
3 Library triangle button. Press this button to display a pull-down menu listing all of the
data sets in the library, grouped by categories.

Figure 7.1. Pull-down menu by the Data Set field.

4 Library Left button. The data sets in the library are ordered alphabetically first by
category and then by title. Click this button to go to the preceding data set. If the current
data set is the first one, this button takes you to the end (the ordering is circular).
5 Library Right button. The data sets in the library are ordered alphabetically first by
category and then by title. Click this button to go to the next data set. If the current data
set is the last one, this button takes you to the beginning (the ordering is circular).
6 New button. Click this button to make a full copy of the data set. The copy is identical to
the original, except that the name 1 will be different (usually it will have a number
appended to it). When the copy is made, the Data Set field will be highlighted to
encourage you to type a distinctive title for the new data set.
7 Delete button. Click this button to delete the data set.
When you click the Delete button, two things happen: (1) the current data set as
displayed on the screen is deleted, and (2) auxiliary files associated with the data set are
also deleted. Thus, CarSimEd automatically performs housecleaning.
If the library has only one data set, the Delete button cannot be used — there must always
be a minimum of one data set in a library. Also, the Delete button will not work on the
current data set if the Locked box 20 is checked.
There are two keyboard modifiers for the Delete button:
• Press the Ctrl key when clicking the button to avoid the confirmation
message.
• Press the Shift key when clicking the button to delete all data sets except
the current one. There will be a confirmation message, giving you a chance to
change your mind after clicking the button. Be aware that if you go ahead,
other data sets can be deleted even if their Locked boxes are checked. Use
this feature with care!
Note: When you position the cursor over the Delete button, the Status Bar
at the bottom of the window describes the above two keyboard
modifications.

Rev: July 28, 1998 — 90 —


Chapter 7 Design of CarSimEd Data Screens

8 GO button. Press this button to display a menu of all libraries in CarSimEd. Select a
library from this menu to leave the current library and go to the selected one.

The menu usually contains more items than will fit on a monitor with VGA resolution
(640 x 480). If this happens, the first item in the menu is More. Highlight it to view more
menu items.
9 Back button. Click this button to go back to the previous library. This is the library that
you came from by using a link, the GO menu, or the History dialog box.
10 Number Tools button. Click this button to go to the calculator screen. This is equivalent
to the Calculator command from the Tools menu. The calculator screen is used to create
and edit tabular data. Control-click to get a file browser to locate the library and establish
a link to it. The default is Sgui_lib\Calc.tbk.
11 Text Editor button. Click this button to go to a utility library used to create and edit
tabular data. This is equivalent to the Text Editor command from the Tools menu. This
can also be set to go to a text editor, such as the Windows Notepad program. Control-
click to get a file browser to locate an executable program file and establish a link to it.
The default link is Programs\QLPad.exe.
12 Library Editor button. Click this button to bring up a floating window that can be used
to edit libraries. This is equivalent to the Library Editor command from the Tools menu.
The current library is automatically loaded into the editor window.
13 Spectrum Analyzer button. Click this button to go to the Spectrum Setup library with
settings for a spectrum analyzer. This is equivalent to the Spectrum command from the
Tools menu. Control-click to get a file browser to make a different library the default.
Note: The spectrum analyzer and the settings screen are not present in
the standard CarSimEd package.

Rev: July 28, 1998 — 91 —


Chapter 7 Design of CarSimEd Data Screens

14 Batch Plot button. Click this button to go to the Plot Setup: Batch library. This is
equivalent to the Batch Plotting command from the Tools menu. Control-click to get a
file browser to make a different library the default. The default link is
Batch\Plot_bat\Plot_bat.tbk.
15 Plot Setup button. Click this button to go to the Plot Setup: Single library with plot
settings that define plot variables, formats, etc. This is equivalent to the EP Setup
command from the Tools menu. Control-click to get a file browser to make a different
library the default. The default link is Plot\Plot.tbk.
16 Batch Runs button. Click this button to go to the Runs: Batch library. Control-click to
get a file browser to make a different library the default. The default link is
Batch\Runs_bat\Runs_bat.tbk.
17 Runs button. Click this button to go to a Runs library with settings to make a single
simulation run. This is equivalent to the Runs command from the Tools menu. Control-
click to get a file browser to make a different library the default. The default link is
Runs_3d\Runs_3d.tbk.

The Parstree window displayed by clicking the Parstree button.

18 Parstree button. Click this button to run the Parstree program for viewing the contents of
the PAR file associated with the current data set, plus the PAR files for all linked data

Rev: July 28, 1998 — 92 —


Chapter 7 Design of CarSimEd Data Screens

sets. For example, the figure below shows the display for a data set from the Runs
library. The file 39.par is selected in the left pane, and the contents of that file are shown
in the right pane.
Control-click to get a file browser to locate an executable program file and establish a
link to it. The default link is Programs\Parstree.exe.
19 Print button. Click this button to print a copy of the current screen display.
20 Preferences button. Click this button to bring up a floating window used to set global
preferences for CarSimEd. This is equivalent to the Preferences command from the
Tools menu.

30
27
28
29

27 Auto Lock. When checked, CarSimEd automatically locks every data screen when
you leave it. Otherwise, data sets are locked only when you click the locked boxes
20 manually.

28 Advanced Mode. When checked, you can change links to connect with different
libraries. When not checked, you must live with the links the way they are.
29 Have 256 or more colors on monitor. Check this box if your video display
supports 256 or more colors. Un-check it if your display is limited to 16 or fewer
colors.
30 Close. Click here to exit the Preferences window.

Check Boxes
21 Locked box. Click this box to check or un-check it. When checked, the data set is locked
and you cannot change text in any of the edit fields or any links. You also cannot delete
the data set using the Delete button.
22 Notes box. Click this box to check or un-check it. When checked, the Notes field is
displayed. Otherwise, it is hidden. The contents of a Notes field are strictly for your use
in documenting data. They are not sent to the simulation program.
This button hides the Notes field, but does nothing to the contents. You do not lose your
notes when you hide them.
When you create a copy of a data set using the New button 6 , the contents of the Notes
field are also copied, even if the box is not checked.

Rev: July 28, 1998 — 93 —


Chapter 7 Design of CarSimEd Data Screens

Data Set Information


23 Changed circle. The small circle is normally transparent. However, a red dot appears
when a link is changed, or when a field is changed and you leave the field by clicking
somewhere else, using the Tab key, etc. The red dot indicates that the PAR file
associated with the current data set will be updated when you leave the screen.
Click on the red circle to force CarSimEd to overwrite the PAR file immediately, such as
when testing new animator settings as described in section Testing New Shapes and
Animator Data Sets in Chapter 5 on page 58.
24 ID Number. Each data set in the library has a unique ID number. The number is used to
automatically name the PAR files associated with the data set. For example, if the ID is
131, a file 131.par is created automatically by CarSimEd and located in the same
folder as the TBK library file. Click on the red dot to cause CarSimEd to update the
auxiliary file immediately. When the file is created, the red dot disappears and the circle
is transparent again.
25 Time of last change. This is set whenever the PAR file is updated.
26 Date of last change. This is set whenever the PAR file is updated.

Data Links
Each CarSimEd screen contains a data set that is part of a relational database. Data sets
are linked together approximately in a top-down hierarchical fashion.

Runs

Steer and Brake


Cars Inputs

Suspensions Tires

Parts of a Data Link


The object used to link data sets together is called a data link. As shown below, a data
link has several components:

Rev: July 28, 1998 — 94 —


Chapter 7 Design of CarSimEd Data Screens

Link label Type Triangle button

Data set name


• The name of the linked data set is shown in the blue field, e.g., Generic.
Notes: {No library selected} appears in the blue field if
the link is not pointing to anything
{No data set selected} appears if the link is
pointing to a library, but has not yet been linked to a specific data
set in that file.
• Most data links have labels, in bold typeface, that describe the type of data to
which the link points, e.g., Vehicle. In some cases, additional information is
shown in plain typeface, e.g., car.
• The triangle button is used to display a pull-down menu.

There are two keyboard modifiers for the triangle button:


1. Press the Ctrl key when clicking the button to get the full pathname of the linked
library, e.g., c:\CarSimEd\Vehicles\Cars\Cars.tbk.
2. Press the Shift key when clicking the button as a shortcut for selecting the menu
item Go To Data Set. This will take you to the linked data set (it is the same as
selecting the first menu item). This is usually quicker than using the menu.

The Data Link Menu


These items perform the following functions:
• Go To Data Set. Goes to the currently linked data set.
• Pick Library. Brings up the file browser dialog to select a new TBK library
file for the link. The browser may request a library of a certain type, e.g.,
Vehicle. If the TBK file that is selected does not contain the right kind of data,
a warning is displayed. However, you can override the warning and make the
link anyway. This is not recommended for beginning users.
• [No Data Set]. This breaks the current link to a data set. The link to the
library remains, but, without a data set, data from the library are not used in
simulations.

Rev: July 28, 1998 — 95 —


Chapter 7 Design of CarSimEd Data Screens

• Data Set Names. All of the menu items after the dividing line are the names of
the data sets in the linked library. Change the link to a different data set by
selecting its name.
If the current screen has the Locked box checked, only the first item on the data link
menu is active. Other items that would involve a change in the data set are not allowed.

Tabular Data
Some of CarSimEd data sets involve tables of numbers. The values are plotted, to show
the functional relation graphically, and to help identify errors. Figure 7.2 shows an
example data set.

3 4

Figure 7.2. Example screen for tabular data.

Note: For these data sets, the Notes field is often located on top of the
table of numbers. Therefore, to view the numbers in the table, the
Notes button must not be checked.
There are four standard items on each screen with tabular data.

Rev: July 28, 1998 — 96 —


Chapter 7 Design of CarSimEd Data Screens

1 Plot. The plot is based on the tabular data 2 , using the first number on each line for an X
value and the second number for a Y value. The axes are scaled automatically to include
the full range of numbers in the table.
When the mouse pointer is positioned over the plot, the corresponding X and Y values
are shown in the status bar. Clicking the left mouse button causes the currently displayed
X and Y values to be appended to the table. This feature can be used to rapidly build a
new data set. The new data points are not plotted until the Update Plot button 3 is
clicked.
2 Table field. Each line in this field should have an X value followed by a Y value. A
comma must separate the numbers. Additional information can be added after a second
comma. These numbers are passed to the simulation programs exactly as they appear in
the field.
Note: The table field requires at least two lines of data in order to create a
plot 1 . If you attempt to make a plot or leave the screen with only
one pair of X-Y points, an error message is generated.
The plot 1 shown on this type of screen covers only the range of data. In the simulation,
values might extend beyond the range shown. For example, if the simulation runs longer
than 3 seconds, the independent variable (time) would have a value outside the range
covered by the table.
The simulation programs in CarSimEd use flat-line extrapolation is used. If the
independent variable is less than the first value in the table, the first value of the
dependent value is used. If the independent variable is greater than the last (highest)
value in the table, then the last value of the dependent variable is used. For example, the
data shown in Figure 7.2 would cause a steer angle of 0.0 to be used for values of time
less than zero. For values of time greater than 10, the steer angle would be 5.
3 Update Plot button. Click this button to create a new plot of the data in the field 2 .
4 Tidy Table button. Click this button to “clean up” the appearance of the numbers in the
table field. A space is inserted after the comma, and additional information after a second
comma is removed. This operation is useful when tabular data are pasted into the edit
field from some other source, such as an echo file created by a CarSimEd solver program.

File Menu
The File menu contains commands pertaining to library TBK files. In CarSimEd, this
menu is not used as much as in most Windows programs, because the opening and saving
of files is handled automatically.

Rev: July 28, 1998 — 97 —


Chapter 7 Design of CarSimEd Data Screens

Open
Select this menu item to open an arbitrary TBK library file.

Save
Select this menu item to immediately save the current TBK file to disk. The files are
automatically saved whenever you move from one library to another, so this command is
used mainly when the machine stability is in doubt and a program crash is feared.

Print Setup
Select this menu item to select a Windows printer and possibly configure it.

Print Data Set


Select this menu item to print the current screen.

Print Library
Select this menu item to print all data sets in the current library, using the data screen
layout.

Print Recursive Data Set


Select this menu item to print the current screen, plus all data sets linked to the current
one, plus all data sets linked to those, and so on.

Compact Library
This command causes ToolBook to compact the file, eliminating space that was used by
data sets that have been deleted.
Over time, the TBK library files can grow more than expected, because when you delete
data sets the file space is not recovered. Use this menu item if you notice that some of the
TBK files have gotten very large. Depending on the amount of graphic content, the
normal size of a TBK file can be as small as 70K, or as large as 700K.

Rev: July 28, 1998 — 98 —


Chapter 7 Design of CarSimEd Data Screens

Backup Library
Select this menu item to make a backup copy of the current TBK library file. The copy is
given the extension BAK.

Export Data Set


Select this menu item to create a text file that can be read in by CarSimEd to completely
recreate a data set.

Import Data Set


Select this menu item to import a text file previously created with the Export Data Set
command.

Import Data Library


Select this menu item to import all data sets in another TBK file into the current one. This
command is useful for transferring information between separate CarSimEd installations.
It is also useful for importing data from an old version of CarSimEd into an updated
version.
If you select this item from the Startup screen, and import data from another Startup
screen, then CarSim will attempt to import all data from the other copy.

Exit
Select this menu item or use the keyboard command Ctrl-Q to exit from CarSimEd.

Edit Menu
The Edit menu supports the clipboard and the Find command.

Undo
Select this menu item or type the keyboard command (Ctrl-Z) to undo the most recent
entry or change in a text field.

Rev: July 28, 1998 — 99 —


Chapter 7 Design of CarSimEd Data Screens

Cut
Select this menu item or type the keyboard command (Ctrl-X) to cut the currently
selected text to the clipboard.

Copy
Select this menu item or type the keyboard command (Ctrl-C) to copy the currently
selected text to the clipboard.

Paste
Select this menu item or type the keyboard command (Ctrl-V) to paste the clipboard to
the current cursor location. If text is currently selected, it is replaced by the contents of
the clipboard.

Clear
Select this menu item or type the keyboard command (delete key) to clear the currently
selected text.

Select All
Select this menu item or type the keyboard command (Ctrl+A) to select all text in the
field where the cursor is currently located.

Find
This command can be used by advanced users to locate information in CarSimEd data
fields.
WARNING: It is possible to trick the underlying ToolBook runtime system,
leading to errors that will corrupt your files. Use with caution.

Text Menu
The Text menu contains commands involving the display of text in edit fields and notes.
Although text formatting has no effect on how the simulations are run, you can control
the appearance of the text in notes and data fields if you wish.

Rev: July 28, 1998 — 100 —


Chapter 7 Design of CarSimEd Data Screens

Note: The items in the Text menu apply only to the currently selected
text in a single field.

Character
Select this menu item or type the keyboard command (Ctrl+D) to bring up a floating
window to change the character properties of the selected text (Font, Font Style, Size,
etc.).

Paragraph
Select this menu item or type the keyboard command (Ctrl+M) to bring up a floating
window to change the spacing (e.g., Alignment, Indentation, Spacing , etc.) of the
selected text.

Regular
Select this menu item or type the keyboard command (Ctrl+Space) to remove any special
character properties of the selected text, such as bold, underline, etc.

Bold
Select this menu item or type the keyboard command (Ctrl+B) to toggle the selected text
between bold and not bold.

Italic
Select this menu item or type the keyboard command (Ctrl+I) to toggle the selected text
between italic and not italic.

Underline
Select this menu item or type the keyboard command (Ctrl+I) to toggle the selected text
between underline and not underline.

Strikeout
Select this menu item or type the keyboard command (Ctrl+K) to toggle the selected text
between strikeout and not strikeout.

Rev: July 28, 1998 — 101 —


Chapter 7 Design of CarSimEd Data Screens

Superscript
Select this menu item or type the keyboard command (Ctrl+Shift+L) to toggle the
selected text between superscript and not superscript.

Subscript
Select this menu item or type the keyboard command (Ctrl+L) to toggle the selected text
between subscript and not subscript.

Page Menu
This menu offers access to previously viewed screens (pages), and also control of how
the current data screen is viewed.

History
Select this menu item to bring up the following floating window to see a list of the
libraries that you have visited during this session. From the window you can select a
library and go to it by double-clicking on it or clicking the OK button.

Size to Page
Select this menu item to set the CarSimEd window to its default size. If you happen to
click on the Windows zoom icon, Windows will fill your screen with the current window.
However, the window doesn’t show any more information. Use this menu item to restore
its appearance.

Rev: July 28, 1998 — 102 —


Chapter 7 Design of CarSimEd Data Screens

Tools Menu
Use the Tools menu as an alternative to the buttons in the ribbon bar.

The ribbon bar, s hown below, was described in more detail starting on page 89.

1 2 3 4 5 6 7 8 9 10

Calculator
Select this menu item to go to the calculator screen (same as 1 ).

Text Editor
Select this menu item to go to a utility library used to create and edit text files (same as
2 ).

Library Editor
Select this menu item to bring up a floating window used to edit existing libraries (same
as 3 ).

Plot Setup
Select this menu item to go to the Plot Setup: Single library with plot settings that define
plot variables, formats, etc. (same as 6 ).

Runs
Select this menu item to go to a Runs library with settings to make a single simulation
run (same as 8 ).

Rev: July 28, 1998 — 103 —


Chapter 7 Design of CarSimEd Data Screens

View Parstree
Select this menu item to run the Parstree program and view the tree of text files that starts
from the current data set (same as 9 ).

Batch Runs
Select this menu item to go to the Runs: Batch library (same as 7 ).

Batch Plotting
Select this menu item to go to the Plot Setup: Batch library (same as 5 ).

Spectrum
This item is reserved for the Spectrum Setup library (same as 4 ).
Note: The spectrum analyzer and the settings screen are intended to be
added to the next version of CarSimEd.

Preferences
Select this menu item to bring up a floating window used to set global preferences for
CarSimEd (same as 10 ).

Rev: July 28, 1998 — 104 —


8. Alphabetical Library Screen Reference
This chapter describes all of the libraries in CarSim CarSimEd. They are listed in
alphabetical order, based on the screen (window) title.

Conventions in This Chapter


Each section shows an example data screen and describes its data fields, links, buttons,
and other user interface objects.

Standard Objects
Standard objects that were described in Chapter 7 are not covered again in this chapter.
For example, the buttons at the top of the screen (New, Delete, etc.) are the same in every
library.

Keywords
Parameter values that are displayed in yellow fields will usually appear in the echo files
produced by the simulation programs. These echo files identify the parameters with
keywords and list them in alphabetical order (see Appendix F for an example). In this
chapter, along with the definitions for the parameters, the keywords are defined so you
will know where to look for them in the echo files. They are shown in parentheses in the
Courier font.
Many of the parameters in the CarSimEd models are applied both on the front and the
rear of the vehicle. For example, the vehicle has tire properties which can be separately
defined for both the front and the rear, and the same data screen is used to describe
properties of all tires.
Parameters that are repeated are called indexed parameters. In CarSimEd, tables are
defined with the keywords IAXLE (1 for front and 2 for rear. For example, the entry for
the table for tire cornering stiffness is: Tire Cornering Stiffness (keyword =
KFYA_TABLE (IAXLE)).
Indexed parameters that are fields are shown with numerical indices. For example, the
roll center height for the front suspension is HRC(1).
You can view the keywords in the PAR file directly by clicking the button in the
ribbon bar. For example, the next figure shows the keywords for the Cars data screen.

Rev: July 29, 1998 — 105 —


Chapter 8 Alphabetical Library Screen Reference

Location of Library
Each section ends with the location of the library, described from two points of view.
First is a list of the screens needed to reach the library using the user interface. For
example, to get to the Animator Camera screen, start with the CarSimEd Startup screen,
then click the Start button to go to the Runs screen, then follow a blue link to go to the
Animator Camera screen. This sequence is written at the end of the reference section as:
CarSimEd Startup
Runs
Animator Camera
Note: CarSimEd includes three runs libraries, named Runs_3d,
Runs_2d, and Runs_sus. In the location information subsection,
the generic name “Runs” is used to indicate any of these three.
In addition, a relative pathname is given for the library TBK file (e.g.,
Animate\Cameras\Cameras.tbk). Pathnames are relative to the root directory of
CarSimEd. For example, the absolute pathname would be something like
C:\Carsimed\Animate\Cameras\Cameras.tbk. The relative pathnames are
useful to know even if you are not looking for a file, because they appear in the pull-
down menu of the GO button (in the ribbon bar).

Rev: July 29, 1998 — 106 —


Chapter 8 Alphabetical Library Screen Reference

Animator Camera Setup


The Animator Camera screen defines the location of the virtual camera in the animator,
the direction in which the virtual camera is looking, the amount of zoom, and the
properties of an optional grid.

Discussion
Imagine you have a video camera and are viewing a vehicle as it moves down the road.
Your location (actually, the location of the camera you are holding) determines your
point of view. From that point, you can aim the camera anywhere. However, you will
probably pan the camera to keep the vehicle in view. If the camera has a zoom lens, you
might zoom in or out to control the size of the vehicle in the viewfinder.
In CarSimEd, there is no physical vehicle to look at. However, to go along with the
simulated vehicles, the animator program described in Chapter 5 simulates the motions
that you would view with a video camera. Use the Animator Camera Setup screen to
establish various camera positions and aiming strategies.
The parameters in this library are associated with two geometric points illustrated on the
screen: (1) the camera point, (2) and the look point. At each output time interval, the
animator generates a 2D image based on the relationships between the simulated vehicle
and the camera and look points (see the illustration on the data screen). The locations of
vehicle parts are determined by the simulation program. The camera and look points are
determined by the information provided in this data set.
Point locations are defined in 3D space with sets of X, Y, and Z coordinates. In order to
provide almost any imaginable view of the simulated vehicle motion, the animator
program allows both the camera and look points to be associated with any user-defined
reference frame. The reference frame can be fixed or it can be a vehicle part (e.g., a
sprung mass. It is even possible to define a new moving reference frame using variables
that are available in the simulation output files.
A grid can be drawn by the animator to represent the ground plane. The grid is oriented in
the global X and Y directions. The minimum and maximum X and Y global coordinates
for the grid can be specified. Different grid spacing can be used in the X and Y
directions. The grid can be turned off manually within the Animator, as described in
Chapter 5.
Notes: Chapter 5 explains reference frames. In addition, the section
Animator Reference Frames in this chapter describes how you
create them.
All of the numbers shown on this screen can be modified
interactively when the animator is running. See Chapter 5 for
details.

Rev: July 29, 1998 — 107 —


Chapter 8 Alphabetical Library Screen Reference

1
6

2 4 7

3 9
5
10

User Settings
1 Focal length of the simulated camera (keyword = set_focal_length). A large value
produces a telephoto lens effect and a small value produces a wide-angle lens effect.
Focal length has units of meters.
2 X, Y, and Z coordinates of the camera point (keywords = set_camera_x,
set_camera_y, set_camera_z). These coordinates have units of meters. The
coordinates apply to the reference frame specified in 3 .
3 Link to the reference frame in which the camera is located. The reference frame can be
fixed or moving. The camera must have its own named reference frame (in the example
above, it is Camera tracking X-Y).
Notes: The animator program requires each reference frame to have a
unique name. The reference frame used to define the camera
coordinates cannot be used anywhere else. If you want to locate the
camera in a vehicle reference frame (e.g., the sprung mass), then
create a copy of the reference frame of interest, give the copy a
new name, and link to the copy.
Although vehicle reference frames can be used for the camera, it is
more common to define a custom reference frame.

Rev: July 29, 1998 — 108 —


Chapter 8 Alphabetical Library Screen Reference

4 X, Y, and Z coordinates of the Look Point (keywords = set_lookpoint_x,


set_lookpoint_y, set_lookpoint_z). These coordinates have units of meters.
The coordinates apply to the reference frame specified in 5 .
5 Link to the reference frame in which the look point is located. The reference frame can be
fixed or moving. It is typically the same as the camera point reference frame 3 . This
reference frame must also be used somewhere else, because only the name is provided to
the animator from this link. (The reference frame description is not sent, to avoid an error
that occurs if the same reference frame name is used twice.)
6 Viewing mode (keyword = set_superimpose). When this button is checked the
animator does not erase each frame before drawing the next (superimpose images). The
values associated with the keyword (written into the text PAR file) are on and off.
7 Grid color (keyword = set_color). This is text that specifies the color of the grid.
Valid colors are provided in a pull-down menu.
8 Grid intervals for X and Y (keywords = set_interval_x, set_interval_y). The
units for these values are meters.
9 Minimum X and Y values covered by the grid (keywords = set_min_x, set_min_y).
The units for these values are meters. If not specified, the default values are zero.
The animator will automatically determine the range for the grid if the minimum and
maximum values are set equal or left blank.
10 Maximum X and Y values covered by the grid (keywords = set_max_x, set_max_y).
The units for these values are meters. If not specified, the default values are zero.
The animator will automatically determine the range for the grid if the minimum and
maximum values are set equal or left blank.
Note: The X and Y directions are handled independently. Even if the
range is set manually in one direction, the range for the other
direction can be determined automatically.

Location in CarSimEd
CarSimEd Startup
Runs
Animator Camera

File Location
Animate\Cameras\Cameras.tbk

Rev: July 29, 1998 — 109 —


Chapter 8 Alphabetical Library Screen Reference

Animator Groups
The Animator Groups screen is used to group shapes, wheels, reference frames, and
other groups. The library can be used for several purposes, due to the versatility of the
animator.

Discussion
The Animator draws three kinds of objects: a single grid, multiple shapes, and multiple
wheels. In order to build a detailed visual representation of a road or vehicle, groups of
shapes and wheels must be collected and associated with moving reference frames.
This screen is used to group other animator data sets together. Typically, the data sets
being grouped are reference frames, body shapes, wheels, and other groups that make up
the image of a vehicle or road.
As explained in Chapter 5, reference frames are used to define motions of vehicle parts.
As the inputs to the animator are processed, each shape or wheel is associated with a
reference frame.
There is always a single active reference frame. Each shape and wheel that is processed is
defined within this frame.
It is important to understand that all objects in a reference frame must be processed
together. For example, suppose there is a reference frame with the title sedan body.
The animator will not allow some shapes to be processed for sedan body, then process
shapes for another reference frame, and then switch back to sedan body. Once the
animator starts processing data for a particular reference frame, it is no longer possible to
add shapes or wheels to reference frames that were previously processed.
Although shapes and wheels are always associated with the active reference frame, the
camera and look-point coordinates are not. However, because the camera and look-point
data are contained in the library Animator Camera Settings, you should not have
occasion to deal with them in an Animation Groups data set.

Note: The reason that shapes and wheels are handled differently than
camera and look-point data is that shapes and wheels can be
duplicated. For example, the same wheel shape is usually linked to
every moving wheel reference frame. In contrast, there is only a
single camera point and a single look point.
An animator group can be set up several ways.
• It can group several shapes or wheels together without associating them with a
reference frame. For example, the body of a car is a group of many individual
shapes.
• It can group wheels or shapes together and associate them with a reference frame.

Rev: July 29, 1998 — 110 —


Chapter 8 Alphabetical Library Screen Reference

• It can group together other groups. For example, a whole vehicle group can be
assembled from a car body group plus information associated with the four
moving wheels.
When combining reference frames and other data sets, be aware that the data are sent to
the animator in the same order they are numbered on the screen: top to bottom, then left
to right. If one of the links is to a reference frame, it should be the first one (Link 1). That
becomes the “active reference frame” until another one is defined.

1 1 1

1
2 2
1
1 1
1

1 2 2

1
1 1

1
2 2
1

1 1 1

1 1 1

Note: The animator group is one of the more difficult to understand


screens in CarSimEd. It may help to browse through the groups
that are installed with CarSimEd, to see by example how complex
systems are assembled using this screen.

User Settings
1 Miscellaneous links. Links are used to include other groups, wheels, shapes, and
reference frames. A group, wheel, or shape appearing in one of these links is attached to
the reference frame link most immediately above it. If none of the links are made to a
reference frame, then all wheels and shapes are attached to the most recently introduced
reference frame. (That reference frame is defined in a data set above this one.)

Rev: July 29, 1998 — 111 —


Chapter 8 Alphabetical Library Screen Reference

2 Miscellaneous fields. Use these fields to assign values to arbitrary keywords. The format
is that each line has a keyword and value, separated with white space (at least a single
space). These keyword values apply to the previously read data, which is found from the
link immediately preceding the yellow field. These fields can be used to add to shape or
wheel data. For example, to mirror an object from the left to the right side, enter the
keyword set_scale_y followed by a value –1. All Y coordinates will be negated for
the current shape (using data from the preceding link).

Location in CarSimEd
Note: This library can be applied in different ways, which means there
may be links to it from libraries other than those shown below.
CarSimEd Startup
Runs
Cars
Animator Groups

File Location
Animate\Groups\Groups.tbk

Animator Reference Frames


This screen is used to define a reference frame (moving or stationary coordinate system)
for use by the animator. Understanding the concept of a reference frame is important if
you wish to effectively use the animator. Chapter 5 introduces the concept. This section
explains how you define a reference frame within CarSimEd.

Discussion
The animator in CarSimEd shows moving and stationary wire-frame figures. The lines
used to draw each wire-frame object may move relative to other objects, but the spatial
relationships between the lines in a single object are fixed.
When the relationships between a set of points does not ever change (i.e., they form a
rigid structure), they are said to exist in the same reference frame. Therefore, the
coordinates that are provided for shapes are constants when based on a coordinate system
fixed in the appropriate reference frame.
In order to draw the wire-frame shapes, the animator must convert relative coordinates in
a moving coordinate system to absolute coordinates in the global coordinate system. The
conversion is defined by the global position of the origin of the moving coordinate
system (its global X, Y, and Z coordinates), along with the orientations of its three axes.
The orientation of a reference frame is defined by three consecutive rotations that are
called Euler angles. For vehicles, the angles are commonly called yaw (rotation about the
Z axis), pitch (rotation about the Y axis), and roll (rotation about the X axis).

Rev: July 29, 1998 — 112 —


Chapter 8 Alphabetical Library Screen Reference

Starting such that the X, Y, and Z axes of the moving frame are parallel with those of the
global frame, the moving frame can be oriented by consecutive rotations about its axes.
For example, first rotate the frame about its Z axis by a yaw angle. After this is done, the
new Z direction is the same as the old, but the X and Y axes are pointed in new
directions, called X' and Y'. Next, rotate about the new Y axis, Y', by a pitch angle. After
the pitch rotation, the Y axis is still in the Y' direction, but the X and Z axes are pointed
in new directions, called X" and Z". Finally, rotate a third time, about the new X axis, X",
by the roll angle.
Although it might not be obvious at first if you are not experienced with 3D kinematics,
any conceivable orientation of a reference frame can be described with three Euler
angles. Note that the angles depend on the order of the rotations.

1 2 3

4 5 6

Overall, a reference frame is defined by six variables: three coordinates (X, Y, and Z),
and three Euler angles. The animator reads the required six variables from the output files
generated by the simulation programs. After reading the six variables, each coordinate
and Euler angle is calculated with a relationship of the form:
coordinate = Co + C*SFc (1)
angle = Ao + A*SFa (2)

Rev: July 29, 1998 — 113 —


Chapter 8 Alphabetical Library Screen Reference

where C and A are the coordinate and angle variables obtained from the ERD file, Co and
Ao are the constant offsets, and SFa and SFc are scale factors (gains).

User Settings
1 Names of coordinate variables for X, Y, and Z (keywords = set_x_name,
set_y_name, set_z_name). These are short names in the ERD files, associated with
the variable C in eq. 1. If no name is listed, then a constant value of 0.0 is used to
compute the coordinate. If the name is not found in the ERD file, then a value of 0.0 is
used.
2 Offsets for coordinate variables for X, Y, and Z (keywords = set_offset_var_x,
set_offset_var_y, set_offset_var_z). These values are numbers, used to
replace the symbol Co in eq. 1. If no number is entered, a value of 0.0 is used.
3 Scale factors for coordinate variables for X, Y, and Z (keywords = set_scale_var_x,
set_scale_var_y, set_scale_var_z). These values are numbers, used to replace
the symbol SFc in eq. 1. If no number is entered, a value of 1.0 is used.
4 Names of Euler angle variables for roll, pitch, and yaw (keywords = set_roll_name,
set_pitch_name, set_yaw_name). These are short names in the ERD files,
associated with the variable A in eq. 2. If no name is listed, then a constant value of 0.0 is
used. If the name is not found in the ERD file, then a value of 0.0 is used.
5 Offsets for Euler angle variables for roll, pitch, and yaw (keywords =
set_offset_var_roll, set_offset_var_pitch, set_offset_var_yaw).
These values are numbers, used to replace the symbol Ao in eq. 2. If no number is
entered, a value of 0.0 is used.
6 Scale factors for Euler angle variables for roll, pitch, and yaw (keywords =
set_scale_var_roll, set_scale_var_pitch, set_scale_var_yaw). These
values are numbers, used to replace the symbol SF a in eq. 2. If no number is entered, a
value of 1.0 is used.
7 Rotation sequence for Euler angles (keyword = set_euler_angles). There are
potentially 12 possible sequences of body-fixed orientation angle sets. A constraint is that
there cannot be two consecutive rotations about the same axis. Thus, there are 3 choices
for the first rotation, 2 for the second, and 2 for the third. However, only two sequences
are common for vehicle dynamics: yaw-pitch-roll (used for large body motions), and
yaw-roll-pitch, used for the spinning wheels.
For the animator in CarSimEd, the value must be either the text yaw_pitch_roll or
the text yaw_roll_pitch. These two options are selected from a pull-down menu.

Location in CarSimEd
Camera Setup
CarSimEd Startup
Runs
Camera Setup

Rev: July 29, 1998 — 114 —


Chapter 8 Alphabetical Library Screen Reference

Animator Reference Frames

Vehicle Definition
CarSimEd Startup
Runs
Cars
Animator Groups
Animator Reference Frames

File Location
Animate\Frames\Frames.tbk

Animator Shapes
This screen is used to define one or more wire-frame shapes that are drawn by the
animator.

Discussion
A shape is a set of points connected by straight lines. Each point is defined by a set of
three coordinates (X-Y-Z). The animator starts with the first point, and draws connecting
lines to each following point.
All coordinates are assumed to be in a local coordinate system, associated with the active
reference frame. (See the discussion on how shapes and reference frames are associated
in the section Animator Groups, on page 110.)
The animator also supports offsets and scale factors. All of the coordinates are calculated
using the equation:
coordinate = Co + C*SF (1)
where C is the original coordinate, Co is the offset, and SF is a scale factor (gain).
The offsets and scale factors allow the shapes to be relocated and resized without
requiring all of the coordinates to be changed by hand. Applying an offset has the effect
of relocating the shape within the reference frame. Scale factors can be used to change
the size of a shape. For example, to make a trailer body twice as long, enter an X scale
factor of 2.0.
Scale factors can also be used to mirror a shape. If the scale factor is negative, then all of
the corresponding coordinates are given the opposite sign. For example, a left fender can
be converted to a right fender by setting the Y scale factor to –1.
The shape library can handle two kinds of shape data:
1. A single shape is described, using the appropriately labeled fields.
2. Multiple shapes can be described, using the Miscellaneous field.

Rev: July 29, 1998 — 115 —


Chapter 8 Alphabetical Library Screen Reference

1 2

The second approach is useful if there are many shapes used to describe a complex body,
and they are unlikely to be used for any other purpose. By putting the many shapes into
one data set, fewer files are processed by the animator, and there is little likelihood of
accidentally modifying a group.

User Settings
1 Coordinates of points that are connected by lines in the animation (keywords =
set_coordinates, end_coordinates to indicate the start and end of the list).
Each line should have the three coordinates of a single point. The units are meters. The
syntax is that each of the values is separated by at least one space. Blank lines are not
allowed.
2 Coordinate Offsets (keywords = set_offset_x, set_offset_y,
set_offset_z). All coordinates in the shape are adjusted by these offsets according to
eq. 1. The units are meters. If not specified, the animator uses default values of 0.0.
3 Coordinate Scale Factors (keywords = set_scale_x, set_scale_y,
set_scale_z). All coordinates in the shape are adjusted by these scale factors
according to eq. 1. The scale factors should be dimensionless. If not specified, the
animator uses default values of 1.0.

Rev: July 29, 1998 — 116 —


Chapter 8 Alphabetical Library Screen Reference

4 Color (keyword = set_color). This sets the color of the lines drawn to connect the
points. Valid colors are provided in a pull-down menu.
5 Miscellaneous field. This field is for advanced users. It can be used to enter multiple
shapes. The format is that each line has a keyword and value, separated with white space
(at least a single space). The field should look like a portion of a PARSFILE that can be
processed by the animator. See Appendix E for the animator keywords and some example
files.

Location in CarSimEd
CarSimEd Startup
Runs
Cars
Animator Groups
Animator Shapes

File Location
Animate\Shapes\Shapes.tbk

Animator Wheels
The current version of the animator supports a single 3D graphic primitive—a cylinder. It
is typically used to draw vehicle wheels. This screen is used to define a wheel. It is also
used to define the rods in the five-link suspension model.

Discussion
The animator considers a wheel to be two polygons with a specified radius, separated by
a specified thickness. In addition, the corresponding nodes of the polygons are connected
by lines. The wheel is oriented such that its central axis is parallel to the Y axis of the
corresponding reference frame.

Rev: July 29, 1998 — 117 —


Chapter 8 Alphabetical Library Screen Reference

3
2
4
5

6 7

User Settings
1 Thickness (keyword = set_thickness). This should have units of meters.
2 Radius (keyword = set_radius). This should have units of meters.
3 Number of points used for polygon approximation of circle (keyword =
set_num_points).
4 Color of lines drawn by animator to show the wheel (keyword = set_color). Valid
colors are provided in a pull-down menu.
5 Radial line option (keyword = set_radial_line). This check-box determines
whether a line is drawn from the center of one of the polygons to the first node. The
single line is useful for determining when wheels lock up during braking simulations. The
values associated with the keyword (written into the text PAR file) are on and off.
6 Coordinates of center (keywords = set_offset_x, set_offset_y,
set_offset_z). These are the X, Y, and Z coordinates of the wheel center in the
reference frame with which the wheel is associated. The default values of 0.0 are used if
no values are provided.

Rev: July 29, 1998 — 118 —


Chapter 8 Alphabetical Library Screen Reference

7 Scale factors in three directions (keywords = set_scale_x, set_scale_y,


set_scale_z). These are dimensionless scale factors in the X, Y, and Z directions.
They are multiplied by the coordinates of the wheel, centered at 0,0,0, before the offsets
6 are added. The Y scale factor adjusts the thickness, and the other two can be used to
resize the wheel. If the X and Z scale factors are not equal, the wheel will be elliptical,
rather than circular. The default values of 1.0 are used if no values are provided.

Location in CarSimEd
CarSimEd Startup
Runs
Cars
Animator Groups
Animator Wheels

File Location
Animate\Wheels\Wheels.tbk

Calculator
Use this screen to create and edit tabular numerical data. It is available from a button on
the ribbon bar and from the Tools menu.

Discussion
This data screen is a tool supplied in CarSimEd because there are many times when
preparing CarSimEd inputs that simple calculations are needed. This screen can be used
to convert units for existing data, or to create tables from scratch. For example (explained
in detail later), the screen display shows how a series of X-Y coordinates are created for a
sinusoidal road input.
Note: This screen does not directly feed data to a simulation model. To
use the data, you must copy the numbers to the clipboard and then
paste them into an appropriate data screen.
The screen design is fairly complex, because the calculator tool has several capabilities:
• It plots tabular data for one or more pairs of X-Y data points.
• It performs simple calculations by evaluating a mathematical expression and
printing the numerical result.
• It evaluates mathematical expressions involving values in a 2D table, updating the
entire table with a single button click. For example, you can convert the units for
different columns in a table using different scale factors for each column.
• It creates tabular data from scratch, based on start and end conditions for a series.

Rev: July 29, 1998 — 119 —


Chapter 8 Alphabetical Library Screen Reference

1 2

5 6
3 4
14
11 12
7 8 9 10 13
16 19
15 17
18 20

Figure 8.1. The calculator screen.

After the settings are described, a few examples are provided to show how they are used.

User Settings and Controls


1 Tabular Data field. This is where the tabular data values are created and edited. The data
are assumed to fit in a tabular organization, with each line in the field representing a row.
Each row should have the same number of items (columns), separated by commas and/or
spaces. All values in the table must be numbers.
The values in this field are shown graphically in the adjacent plot 2 .
The buttons underneath ( 3 - 9 ) are used to change the precision of the numbers,
determine whether commas separate the numbers, and to modify the column-row
structure of the table.
The fields and buttons in the bottom area of the screen ( 15 - 20 ) are used to perform
calculations to create the tabular data from scratch, or to transform existing values.
The only part of the screen that is not related to the tabular data field is the simple
calculator, with items 11 - 14 .
2 Plot. This graphic is created by plotting values of columns 2 and higher on the Y axis,
against the values of column 1 on the X axis. Thus, the number of plots is N-1 where N is

Rev: July 29, 1998 — 120 —


Chapter 8 Alphabetical Library Screen Reference

the number of columns. The plot is not made automatically—you must click the Plot
button 10 to create it or update it after modifying the tabular data 1 .
3 Format button. Click to format the numbers in the tabular data field 1 according to the
format string 4 .
4 Format field. The text in this field specifies whether numbers are written with fixed
decimal places or in scientific notation. It also specifies how many digits are written to
the right of the decimal point. The format string has the form: X.X where the X’s
represent a series of place holders:
0 — place holder for a digit.
# — Same as 0 except the digit is not printed unless it is needed.
E+ or e+ — Scientific notation with sign always used for the exponent. The number
of digits in the exponent is determined by the number of place holders. If used,
you must put place holders (0 or #) before and after the E+ or E-.
If the format field is blank, then numbers are written to their full precision.
Following are some example format strings and the effect they have on three example
mathematical expressions.

String 45/atan(1) atan(1)/45 5/4


none 57.2957795130823 1.74532925199433e-2 1.25
#.#### 57.2958 0.0175 1.25
0.0000 57.2958 0.0175 1.2500
#.######e+### 5.729578e+1 1.745329e-2 1.25 e+0
0.000000E+000 5.729578E+001 1.745329E-002 1.250000E+000

The format field is applied when you click the Format button 3 , the Create Series
button 19 , or the Transform Series button 20 .
5 Insert ‘,’ button. Click to ensure that all numbers in a row are separated with commas. If
commas already exist, this has no effect except possibly to tidy the appearance of the
table 1 .
6 Remove ‘,’ button. Click to ensure that all numbers in a row are separated with white
space only. If commas exist, they are removed. If numbers are already separated only by
white space, this has no effect.
7 Flip Rows button. Click to reverse the order of the lines in the tabular data field 1 .
8 Flip Columns button. Click to reverse the order of the numbers in each line in the tabular
data field 1 .
9 Transpose button. Click to transpose the columns and rows in the tabular data field 1 .
For example:
1,2,3 Becomes 1,5
5,6,7 2,6

Rev: July 29, 1998 — 121 —


Chapter 8 Alphabetical Library Screen Reference

3,7
10 Plot button. Click this to update the graphic 2 based on the current contents of the
tabular data field 1 . The graphic is created by plotting values of columns 2 and higher
on the Y axis, against the values of column 1 on the X axis. Thus, the number of plots is
N-1 where N is the number of columns.
11 Calculator input field. Enter a mathematical expression, then click the “=” button 12 to
see the result in the calculator output field 13 . In addition to normal arithmetic
operations, the calculator has a number of built-in functions that are described in a later
subsection.
12 Calculate button. Click to evaluate the expression in the input field 11 and print the result
in the output field 13 .
13 Calculator output field. This displays the results of the calculation performed when you
click the “=” button 12 . The format can be specified using the format string 14 .
14 Calculator output format. This field contains a format string used to control the round-off
in the calculator output 13 . It is applied when you click the “=” button 12 . The syntax is
the same as the other format field 4 , described previously.
15 Mathematical definitions. This field is used to create or transform numbers in the tabular
data field 1 . The field is used for two distinctly different purposes:
1. It provides mathematical definitions of the numbers that will be calculated and
stored in the tabular data field when you click the Create Series button 19 . In this
case, all definitions must involve only numbers and a single variable X. X is
calculated automatically and given a value for each new row based on the three
fields 16 , 17 , and 18 .
2. It provides transforms of existing numbers that will be calculated when you click
the Transform Series button 20 . In this case, the definitions must involve
numbers and the variables X, Y, Y2, Y3, ..., where X is the first number in each
line of the tabular data field, Y is the second number, Y2 is the third, and so on.
In the first case, the field is cleared and all new numbers are put into it, based on the
series information ( 16 , 17 , and 18 ) and the mathematical definitions. In the second case,
the tabular data field is not cleared—the existing numbers are replaced.
In both cases, the tabular data field will have the same number of items as the
mathematical definitions field. Initially, items (numerical results of the calculations) are
separated by commas. (Use the Remove ‘,’ button 6 to remove the commas if needed.)
In both cases, the variable X can be included in the expressions. The meaning is not
always the same. In the first case, X is an arbitrary independent variable whose values are
defined by the range and interval specified in the fields 16 , 17 , and 18 . In the second
case, X is the first number in the tabular data field 1 .
The variables Y, Y2, etc. are recognized only in the second case. They should not be used
when generating new numbers with the Create Series button 19 .

Rev: July 29, 1998 — 122 —


Chapter 8 Alphabetical Library Screen Reference

The variables and function names used in this field are not sensitive to case: x and X refer
to the same variable.
Several examples are provided in the following Examples subsection to indicate how you
might use this field.
16 Start value. This is the value assigned to X for the first row of numbers created in the
tabular data field 1 when you click the Create Series button 19 .
17 End value. This is the value assigned to X for the last row of numbers created in the
tabular data field 1 when you click the Create Series button 19 .
18 Step. This is the interval used to calculate X for every row between the first and last in
the tabular data field 1 when you click the Create Series button 19 .
19 Create Series button. Click to replace the contents of the tabular data field 1 with rows
of numbers. Each row will have one number for each item in the mathematical definitions
field 15 . The number of rows is equal to (End – Start +1)/Step, where the values of Start,
End, and Step are obtained from the fields 16 , 17 , and 18 .
20 Transform Series button. Click to transform the contents of the tabular data field 1 .
When the transformation is complete, each row in the tabular data field will have one
number for each item in the mathematical definitions field 15 . The number of rows in the
tabular data field is not changed. The series Stop, End, and Step fields ( 16 , 17 , and 18 )
are not used in these calculations.

Examples
Generate a Sine Wave
To generate a set of X-Z values that define a sine wave with a period of 300 and an
amplitude of 1.65, do the following (see Figure 8.1):
1. Set Start X 16 to 0
2. Set End X 17 to 2000
3. Set Step DX 18 to 10 (this will create a table with 201 points)
4. Define the two variables in the mathematical definitions field 15 :
x, 1.65*sin(x*6.2832/300)
5. Set the format string 4 to: 0.###
6. Click the Create Series button 19 .
7. Check your work by clicking the Plot button 10 .

Rescale the Sine Wave


Suppose the sine wave has an amplitude of 1.65 m, and you want to increase it by 20%.
1. Define the transformation in the mathematical definitions field 15 : X, Y*1.2
2. Click the Transform Series button 20 .

Rev: July 29, 1998 — 123 —


Chapter 8 Alphabetical Library Screen Reference

3. Check your work by clicking the Plot button 10 .

Create an Animation Shape Data Set for an Input Path


Suppose you want to view a target input path. The path is described with X-Y
coordinates, separated by commas. The animator requires a table of X-Y-Z coordinates,
separated by spaces (no commas). Enter the path using the Error! Reference source not
found. screen on page Error! Bookmark not defined.. Then create an animator shape
file as follows:
1. Copy the table of X-Y values from the Error! Reference source not found. screen to the
clipboard.
2. Go to the calculator screen.
3. Select the entire contents of the tabular data field 1 and replace them with the contents
of the clipboard. (Click in the field, then type Ctl-A, then Ctrl-V.)
4. Enter the following definition into field 15 : x,y,0
5. Click the Transform Series button 20 .
6. Click the Remove ',' button.
7. Select the entire contents of the tabular data field 1 and copy them to the clipboard.
(Click in the field, then type Ctl-A, then Ctrl-C.)
8. Go to the Animator Shapes library (see page 115).
9. Create a new data set (click the New button), delete the contents of the table of X-Y-Z
coordinates, then paste the contents of the clipboard into the table.

Available Functions
The compute button processes standard arithmetic operations (+, -, *, /). An exponential
is indicated with the carrot character: ^ (e.g., X^2). In addition, the compute button can
process the following functions:
abs(<number>) Absolute value of number.
acos(<number>) Arccosine (number in radians).
asin(<number>) Arcsine (number in radians).
atan(<number>) Arctangent (number in radians).
atan2(<number1>,<number2>) Arctangent of <number1> divided by <number2>
(numbers in radians).
average(<list of numbers>) Returns the sum divided by the number of items in the list
ceiling(<number>) Rounds up to nearest integer.
cos(<number>) Cosine (number in radians).
cosh(<number>) Hyperbolic Cosine (number in radians)

Rev: July 29, 1998 — 124 —


Chapter 8 Alphabetical Library Screen Reference

exp(<number>) Exponent (2.7182818) raised to power of number.


floor(<number>) Rounds down to nearest integer.
hypotenuse(<length>,<length>) Length of hypotenuse.
ln(<number>) Natural Log (base e)
log(<number>,<base>) Log of number in base.
max(<list of numbers>) Highest value in list.
min(<list of numbers>) Lowest value in list.
round(<number>) Rounds to nearest integer.
sin(<angle>) Sine of an angle (in radians).
sinh(<angle>) Hyperbolic sine of an angle (in radians).
sqrt(<number>) Square root of a positive number.
sum(<list of numbers>)
tan(<angle>) Tangent of an angle (in radians).
tanh(<angle>) Hyperbolic tangent of an angle (in radians).
truncate(<number>) Truncates to integer.

Location in CarSimEd
Accessed from the Tools menu or the ribbon bar with the button:

File Location
Sgui_lib\calc.tbk

Cars
This screen is used to define the dimensions, mass properties, and component properties
(links) for the vehicle used in both the 2D Ride and 3D Braking and Steering simulations.

Discussion
One of the useful features of CarSimEd is that you can develop a whole “fleet” of
vehicles but only have to define the characteristics of each particular component only
once. You can then use this particular component in a vehicle simply by linking to it with
this screen. Furthermore, this same vehicle can be used in both the 2D Ride and 3D
Braking and Steering simulations. The 2D Ride solver program simply ignores the
parameters associated with roll and yaw motion.

Rev: July 29, 1998 — 125 —


Chapter 8 Alphabetical Library Screen Reference

14

15
1

16
2

4 9
5 8 10 17
6 11
7

18
12 13

User Settings
1 Height of mass center of entire vehicle (keyword = HCG).
2 Wheelbase (keyword = LWB)
3 Vehicle mass supported by wheels (keyword = MF for front two wheels and MR for rear
two wheels). These are the masses supported by ground below both front wheels and both
rear wheels — as would be measured when the front and rear of the car are alternatively
driven over a scale.
4 Roll Moment of Inertia of entire vehicle (keyword = IXX).
5 Pitch Moment of Inertia of entire vehicle (keyword = IYY).
6 Yaw Moment of Inertia of entire vehicle (keyword = IZZ).
7 X-Z Product of Inertia of entire vehicle (keyword = IXZ).
8 Calculator buttons to calculate IXX, IYY, and IZZ from the radii of gyration RX, RY, and
RZ. Sometimes measured values for IXX, IYY, and IZZ are not available and it is fairly
easy to estimate RX, RY, and RZ. The radius of gyration is the square root of the moment
of inertia divided by the mass. If the mass is distributed in a ring about an axis, then the

Rev: July 29, 1998 — 126 —


Chapter 8 Alphabetical Library Screen Reference

radius of the ring is exactly equal to the radius of gyration. For solids, the radius is less
than half the size of the object.
9 Roll Radius of Gyration (not a parameter). This is usually a little less than half the track
width. The radius is not used directly by the simulation, but can be used together with the
vehicle mass and the corresponding button 10 to calculate IXX. (The calculated value of
IXX will be used by the simulation program.)
10 Pitch Radius of Gyration (not a parameter). Use if IYY is not available and RY can be
estimated. This is usually a little less than half the wheelbase. The radius is not used
directly by the simulation, but can be used together with the vehicle mass and the
corresponding button 10 to calculate IYY. (The calculated value of IYY will be used by
the simulation program.)
11 Yaw Radius of Gyration (not a parameter). This is usually a little less than half the
wheelbase. The radius is not used directly by the simulation, but can be used together
with the vehicle mass and the corresponding button 10 to calculate IYY. (The calculated
value of IYY will be used by the simulation program.)
12 Link to the screen for the suspension properties.
13 Link to the screen for the tire properties.
14 Link to an animator group data set. The animator group should be set to provide a wire-
frame matched to the vehicle.
Note: In the current version of CarSimEd, the animator groups must
differ for the 3D handling and 2D ride models because the 2D
model does not produce as many output variables for animation as
the 3D model. Therefore, if the same vehicle data set is used in
both simulation programs, it might be helpful to make two copies:
one linked to an animation group set up for the 3D model, and
another set up for the 2D model.
15 Steering gear ratio (keyword = RSW). This is the ratio defines as the steering wheel angle
divided by the road wheel angle.
16 Steering system compliance (keyword = CSMZF). This is the compliance in the steering
column and other places not accounted for by the suspension compliance. It is calculated
by measuring the steer at a road wheel due to applied steering torque, with the steering
wheel fixed. The effect due to suspension compliance is subtracted from that
measurement.
17 Brake gains (keywords = RMYBK(1), RMYBK(2)). These are the ratios between brake
torque (N-m) and brake input (MPa).
18 Driveline gains (keywords = RMYTH(1), RMYTH(2)). These are the ratios between
drive torque (N-m) and dimensionless throttle input.

Location in CarSimEd
CarSimEd Startup

Rev: July 29, 1998 — 127 —


Chapter 8 Alphabetical Library Screen Reference

Runs
Cars

File Location
Vehicles\Cars\Cars.tbk

CarSimEd Startup
This screen appears immediately after CarSimEd has been started. CarSimEd has three
possible entry points, and you use this screen to choose the type of simulation. After
selecting the desired starting point, click the Start button to go to a Runs screen.

1 2

Note: The CarSimEd Startup Screen has two possible appearances. The
above figure shows the simplest display.

Discussion
This screen provides a starting point for the software. It also includes settings that help
configure CarSimEd for your particular installation.

Rev: July 29, 1998 — 128 —


Chapter 8 Alphabetical Library Screen Reference

As installed, CarSimEd has four data sets. One, called Install, is required for the
automatic installation to work. The other three provide entry points to the three kinds of
simulation available in CarSimEd: 2D ride, 3D braking and handling, and 3D suspension
kinematics.
There are at least three reasons why you might someday want to modify the CarSimEd
settings or make a new Startup data set with different settings:
1. If you move the CarSimEd software to a new hard disk volume or folder, all of
the text files used to communicate between CarSimEd data screens and the
CarSimEd solver programs must be updated. Otherwise the solver programs will
give error messages about files not being found.
2. If you make many data sets in a library (e.g., a Runs library), you may want to
create a new folder and create a second library. If you add any folders to
CarSimEd, you should install them in the Startup library.
3. You may want to change the GO menu, to show fewer libraries.
On the other hand, you may never need to change the settings contained in this library.

User Settings (Simple Display)


1 More Info button. Click this button to go to screens with information about CarSimEd
that involve the version, copyright information, etc.
2 Change Settings button. Click this button to show additional settings that can be
modified. When clicked, the CarSimEd pictures are replaced with the settings shown in
the next figure.
3 Start button. Click this button to go to a Runs library. This is the most common way to
start using the software. The default is that clicking the button will take you to the most
recently used data set in the Runs library. However, you can modify the function of this
button as described below.
Each data set in the Startup library can point to a different Runs library. As installed, the
four installed data sets point to the three Runs libraries in CarSimEd.

Additional User Settings and Controls


4 List of libraries for the GO menu. This list is also used for other functions within
CarSimEd — it tells CarSimEd what library files exist and where they are located.
The files are represented as pathnames relative to the CarSimEd root directory. For
example, if CarSimEd is in c:\Carsimed, then the partial pathname
RUNS_3D\RUNS_3D.TBK means the full pathname for the file is
c:\Carsimed\Runs_3d\Runs_3d.tbk.

Rev: July 29, 1998 — 129 —


Chapter 8 Alphabetical Library Screen Reference

16

4 6
7

8 10
9 11
12

13

14

15

1 2

Note: The above figure shows the CarSimEd Startup screen after the
Change Settings button 2 has been clicked.

This list is used by CarSimEd for two purposes:


1. It defines which files are affected when text data files are updated if you click the
Update All PAR Files button 13 .
2. It determines which files are listed in the pull-down menu that appears when you
press the GO button in the ribbon bar 16 .
In both cases, files are included only if they are listed in the field and if they actually
exist.
This list cannot be edited directly. Lines in it can be selected by clicking on them, and the
contents are manipulated by using the adjacent buttons.
5 Add Default Libraries button. Click to add all of the library files included in the
CarSimEd installation. This button is provided as a way to undo damage and return to the
status “as installed.” If a default library file is already in the field 4 , it is not added
again.
6 Add Libraries button. Use this to add new libraries files to CarSimEd. For example, if
you have so many data sets in a library that it is unwieldy, you can duplicate the TBK file

Rev: July 29, 1998 — 130 —


Chapter 8 Alphabetical Library Screen Reference

and its folder, then delete all but one data set from the copy. Give it a new name and add
it to the system.
Click the button to bring up the Windows Find File browser dialog. TBK files selected
with the browser are added to the list 4 .

Note: You can add more than one file at a time. After you click OK, the
dialog re-appears. When you are through adding files, click the
Cancel button.
7 Remove Libraries From List button. Click to remove any selected lines from the list
4 . The actual files are not affected by this—only the list is altered.

8 Move to Top button. Click to move any selected lines in the list to the top. For example,
to make the 3D Runs library the first item on the GO menu, select the line
RUNS_3D\RUNS_3D.TBK in the list 4 and then click this button.
9 Move to Bottom button. Click to move any selected lines in the list to the bottom.
10 Select All button. Click to select all lines in the field 4 . The contents of the field usually
extend beyond the visible area, and can only be viewed by using the scroll bar. Clicking
this button causes all lines to be selected, even if they are not visible.
11 Deselect All button. Click to deselect all lines in the field 4 .
12 Ascending Order button. Click to alphabetically sort all lines in the field 4 .
13 Update All PAR Files button. Click to process all of the CarSimEd library files in the
field 4 , updating all text files. You should do this if you move CarSimEd or rename any
of the TBK files or folders.
Each data set in the CarSimEd library has an associated text file with extension PAR that
is used to communicate with the vehicle dynamics solver programs. These files have
absolute pathnames in them. If any changes have been made to the file system (say, you
moved CarSimEd from drive C to drive D), the old pathnames won’t work.

Rev: July 29, 1998 — 131 —


Chapter 8 Alphabetical Library Screen Reference

The operation initiated when you click this button will probably take a couple of minutes
to complete. The amount of time depends on the number of data sets in your CarSimEd
installation and the speed of your computer.
14 Data Set for Start Button link. This link defines what happens when you click the Start
button 3 . You can link to a library with no particular data set, or you can link to a
particular data set within a library. If you do not choose a data set, then clicking the Start
button takes you to the last data set visited in the library. This is the way CarSimEd is set
when initially installed. If you would like the Start button to always take you to a
specific data set, link to it here.
You might change this link if you move the Runs library, or if you create a new Runs
library in a different folder.
What if you have several Runs libraries? In that case, you can make several data sets in
the CarSimEd Startup library. Click the New button to make a new data set. Then, in
the new data set, link to a different Runs library.
15 Done button. Click to hide all the user settings and return to the simpler view with the
CarSimEd logo.

Location in CarSimEd
CarSimEd Startup

File Location
Startup

Computation Parameters
Use this screen to set parameters for the numerical integrator and to control the frequency
and format of output.

Discussion
The simulation programs operate by numerically integrating a set of nonlinear differential
equations over time. Over small time intervals, they approximate the integration using a
numerical integration algorithm.
This data screen contains parameters that have little to do with the vehicle model or its
inputs. Rather, they are related to the numerical solution method and to the form of the
output file used to store the computed results.

Rev: July 29, 1998 — 132 —


Chapter 8 Alphabetical Library Screen Reference

3 4

User Settings
1 Integration time step (keyword = STEP). The CarSimEd solver programs generate output
files by solving equations of motion in a mathematical model of the vehicle. They repeat
the calculations at small intervals of simulated time, where the interval is called a time
step. The time needed to run a simulation is inversely related to the time step. If you
increase the time step by a factor of two, the program runs about twice as fast because it
only makes half as many calculations. However, the calculation method is valid only for
time steps that are “sufficiently small.” For typical car models, “sufficiently small” means
about 0.002 seconds. If the springs are unusually stiff, a time step of 0.001 may be
required.
Notes: If you are making many runs with a few vehicle descriptions, you
may want to determine how small the time step needs to be. Make
several runs changing only the time step. For example, try using
values of 0.004, 0.002, 0.001, and 0.0005 second. If the runs are
valid, plots of the same variables should overlay perfectly. If the
results at a large time step differ from those made with a small
time step, the typical assumption is that the results made with the
large time step are in error.

Rev: July 29, 1998 — 133 —


Chapter 8 Alphabetical Library Screen Reference

2 Integration method (keyword = INTOPT). Models generated with AutoSim can have
several integration methods built in. All of the CarSimEd programs were designed to run
with a second-order fixed step Runge-Kutta, as shown in the figure.
3 Number of time steps between output printing (keyword = IPRINT). The time step 1
determines how often calculations are made. The time interval for the output files is the
product of the step and this interval (IPRINT). When the RK2 integration method
(number 2) is used, a print interval between 10 and 30 is recommended. When a variable
step method is used, you can sometimes set the step 1 to be the intended output interval
and set IPRINT = 1.
Notes: This parameter determines the resolution for plots and also the
speed for the animator. To make the animated motions runs faster,
use a larger value of IPRINT. To run in slow motion (say, to
accurately see wheel rotations) use a small value.
This parameter has only a minor effect on the speed of a simulation
run. However, it has a direct effect on the size of the output files
and the time needed to load them into the plotter or animator. Big
files take longer!
4 Output file format (keyword = FORMAT). It is a keyword selected from the pull-down
menu. The options are:
binary — the solver program creates a binary output file (extension = BIN) and
an ERD header file. This option is the most efficient, resulting in less time needed
to run the simulation and view output, together with less disk space being needed
to store information.
text — the solver program creates a simple text output file that can be imported
into other software packages such as spreadsheets (Excel, Lotus, etc.) and
mathematical analysis programs (MATLAB, etc.). The first line contains short
names for the output variables, separated by commas. The following lines contain
numbers separated by commas. Each row has all the values for a single point in
time. These files cannot be viewed with the animator. WinEP can read text files,
although the plots contain less information because the file has no title, no units,
etc.
erdtext — the solver program creates a text ERD file. It has all the labeling
information required by the animator and plotter, followed by the printed values
of all output variables. These files can be imported into other programs (with
some editing of the header information) and they can also be viewed within
CarSimEd using the standard CarSimEd controls.
Note: Text files are not recommended for routine use of CarSimEd. The
solver programs take longer to write them, and the plotter and
animator programs take significantly longer to read them. Also,
they occupy about three times more disk space than binary files.

Rev: July 29, 1998 — 134 —


Chapter 8 Alphabetical Library Screen Reference

Location in CarSimEd
CarSimEd Startup
Runs
Computation Parameters

File Location
Comp_par\Comp_par.tbk

Input: Braking
Use this screen to specify the braking application input to the brake system in terms of
control pressure as a function of time.
This input is only used for the 3D vehicle dynamics model. If referenced for a 2D ride
simulation or suspension kinematics run, the data are ignored.

Rev: July 29, 1998 — 135 —


Chapter 8 Alphabetical Library Screen Reference

Discussion
You can control braking by applying effort at the brake pedal. The brake pedal output is a
control, or application, pressure that is applied to the brake system. It is described via a
table look-up function of brake input pressure as a function of time.

User Settings
Note: User settings that are common for all tabular data screens are
described in Chapter 7, in the section Tabular Data.
1 Table field for brake input pressure (keyword = PBRAKE_TABLE). Each line should have
a value of time (seconds) followed by a corresponding value of braking input. The
normal units for brake input are MPa. However, the important thing is that the units on
this screen match those used for the brake system mechanical properties.

Location in CarSimEd
CarSimEd Startup
Runs
Input: Braking

File Location
Input\Braking\Braking.tbk

Input: Road Profile


Use this screen to specify the road input to the 2D vehicle ride model.
This input is only used for the 2D ride simulation. If referenced for a 3D vehicle
dynamics simulation or suspension kinematics run, the data are ignored.

Discussion
This data screen is used both to specify the longitudinal profile for the ride model and
also to specify an optional wire-frame description for viewing the input.

Rev: July 29, 1998 — 136 —


Chapter 8 Alphabetical Library Screen Reference

2 3

User Settings
Note: User settings that are common for all tabular data screens are
described in Chapter 7, in the section Tabular Data.
1 Table field for profile (keyword = ROAD_PROFILE_TABLE). Each line should have a X
and Z coordinates for the road surface. The units are meters for both coordinates.
2 Link to an animation reference frame. This is typically the installed reference frame
Fixed.
3 Link to an animator shape file that shows the bump or road profile.

Location in CarSimEd
CarSimEd Startup
Runs
Input: Road Profile

File Location
Input\Braking\Braking.tbk

Rev: July 29, 1998 — 137 —


Chapter 8 Alphabetical Library Screen Reference

Input: Steering Wheel Angle


Use this screen to define the steering wheel input as a function of time for open-loop
steering maneuvers via a table look-up.
This input is only used for the 3D vehicle dynamics model. If referenced for a 2D ride
simulation or suspension kinematics run, the data are ignored.

Discussion
The steering is controlled by defining steering wheel angle as a function of time. This
library contains open-loop time histories of steering wheel angle that can be used to
control vehicles. (Closed-loop control is not supported in CarSimEd, but is featured in the
commercial CarSim and TruckSim packages.)

User Settings
Note: User settings that are common for all tabular data screens are
described in Chapter 7, in the section Tabular Data.
1 Table of values of steering wheel angle as a function of time (keyword =
STEERSW_TABLE). Time is in seconds and the steering wheel angle is in degrees.

Rev: July 29, 1998 — 138 —


Chapter 8 Alphabetical Library Screen Reference

Location in CarSimEd
CarSimEd Startup
Runs
Input: Steering Wheel Angle

File Location
Input\Steering\Steering.tbk

Input: Wheel Height Above Ground


Use this screen to specify vertical movement of the wheel carrier (spindle) in the 3D
kinematics suspension model.
This input is only used for the suspension model. If referenced for a 3D handling or 2D
ride simulation, the data are ignored.

Rev: July 29, 1998 — 139 —


Chapter 8 Alphabetical Library Screen Reference

Discussion
The 3D suspension model is called a kinematical model because it has zero dynamical
degrees of freedom. It has a single input—vertical position—that is specified as an
arbitrary function of time. In this case, the amount of time covered is not important. The
typical outputs of interest are cross-plots of motion variables as function of vertical
position.

User Settings
Note: User settings that are common for all tabular data screens are
described in Chapter 7, in the section Tabular Data.
1 Table field for vertical wheel height (keyword = BZ_TABLE). Each line should have a
value of time (seconds) followed by a corresponding height of the wheel center. Because
the simulation is not dynamic, the only purpose it has in the plot is to define a continuous
change in height. Two-point tables such as the one shown above are recommended that
simply specify the minimum and maximum ranges to be covered in the kinematical
simulation.

Location in CarSimEd
CarSimEd Startup
Runs
Input: Wheel Height Above Ground

File Location
Input\spindlez\spindlez.tbk

Library Editor
The Library editor is a tool built into CarSimEd to help you organize libraries by
performing batch delete and renaming operations.

Discussion
The Library editor is available from any CarSimEd library through the ribbon bar and the
Tools menu. When you bring it up, it automatically links to the current library. Use it to
delete a group of data sets from the library, lock and unlock multiple data sets, or to
organize data sets into categories.

Rev: July 29, 1998 — 140 —


Chapter 8 Alphabetical Library Screen Reference

1 2

3 4
5 6

User Settings and Controls


1 Link to a library. You can edit one library at a time, and this blue field shows the one that
is active. When the editor is opened, the current library is loaded into this link.
Note: Items 1 and 2 are similar to the ubiquitous blue link. However,
instead of this being a link to a data set, it is a link to the entire
library. Rather than showing the name of a data set, it shows a
pathname to a library file. The pathname is relative to the root
CarSimEd folder. For example, if the root CarSimEd folder is
c:\Carsimed, then the relative pathname runs
\runs_3d.tbk refers to the file: c:\Carsimed\Runs_3d
\Runs_3d.tbk.
2 Triangle button. Press this button to bring up a command for changing the library link
shown in 1 .
3 Lock Data Sets button. Click this to lock all data sets currently selected in 7 .
4 Unlock Data Sets button. Click this to lock all data sets currently selected in 7 .
5 Change Category button. Click this to change the category for all data sets currently
selected in 7 . It calls up a dialog box for you to enter a new category name and then
modifies the category field for the selected data sets. The result is the same as if you went
to each data set and changed the category field.
Note: Categories are solely for grouping the data sets in the library and
have no impact on the data set name or parameter values. This

Rev: July 29, 1998 — 141 —


Chapter 8 Alphabetical Library Screen Reference

change has no effect on parameter values. It only affects how the


data sets are grouped in pull-down menus.
6 Delete button. This button will remove all data sets currently selected in 5 . This is the
same as going to each data set and clicking the Delete button for that screen. A warning
message appears, giving you a chance to back out. Be aware that there is no un-do option:
once the data sets are deleted, they are gone!
7 List of data sets from the linked library. The buttons 3 through 6 affect the data sets
that are highlighted. Select data sets by clicking on them. Use shift-click to select a
continuous range, and use control-click to select lines that are not consecutive.

Location in CarSimEd
Accessed from the Tools menu or the ribbon bar with the button:

File Location
This editor is not contained in a conventional CarSimEd library file. It is stored with
SGUI code in Sgui_lib\Bootfile.tbk.

Link Type Independent Suspension


Use this screen to specify the geometry for a five-link suspension.

Discussion
CarSimEd includes a simulation program to compute changes in steer and camber as
functions of vertical spindle position. In addition, the angles for all five links are
computed, as are the X and Y coordinates of the wheel center.
Example results for this model have been published, with the intention of providing a
benchmark for validating new simulation codes.
M. Hiller and S. Frik, “Five-Link Suspension,” from Multibody Computer Codes
in Vehicle System Dynamics, Supplement to Vehicle System Dynamics, vol. 22,
1993. pp 254 - 262.

Rev: July 29, 1998 — 142 —


Chapter 8 Alphabetical Library Screen Reference

4 5

User Settings
1 Link to an animator group data set. The animator group should be set to provide a wire-
frame matched to the suspension parts.
2 Y coordinate of point B, the wheel center (keyword = BY). The X coordinate is defined as
zero, and the Z coordinate is a variable that is varied during a run. The Y value changes
during a run: the specified coordinate applies when the points (X1 to X5) are at their
specified locations 5 .
3 Wheel spin orientation (keywords = BSY, BSZ). The orientation of the spin axis is
defined by a second point, BS, lying outboard of point B. The Y and Z coordinates of this
point determine how the spin axis is oriented when the points (X1 to X5) are at their
specified locations 5 .
4 Coordinates of points fixed in the body (keywords = PX(1) - PX(5), PY(1) - PY(5),
PZ(1) - PZ(5)).
5 Coordinates of points fixed in the spindle body (keywords = XX(1) - XX(5), XY(1) -
XY(5), XZ(1) - XZ(5)). These locations define a nominal configuration for the
system.

Location in CarSimEd
CarSimEd Startup

Rev: July 29, 1998 — 143 —


Chapter 8 Alphabetical Library Screen Reference

Runs
Link-Type Independent Suspension

File Location
Vehicles\Link_sus\Link_sus.tbk

Plot Format
The format screen determines the style and layout properties of a plot. The formats cover
line style, front properties, and size.

5
2
1
3 6

7
9
8

10

Discussion
The WinEP program supports a number of options for controlling the format of the
generated plots. As was described in Chapter 6, dialog boxes are used for setting all
options interactively, and those options can be stored in text files for future use.
This data screen is also used to specify plotting formats. Every user setting on this screen
can also be set interactively from within WinEP. However, when set here, the formatting
information is stored in the CarSimEd database and can be applied easily to any plots

Rev: July 29, 1998 — 144 —


Chapter 8 Alphabetical Library Screen Reference

initiated from within CarSimEd (clicking the Plot button from the Runs screen or the
Plot: Batch Setup screen).

User Settings
1 Lines and symbol specification (keywords = symbols, linestyle, colors).
Clicking on a number or line will bring up the Lines palette, shown in the next figure.
The palette applies to one line number, which will be highlighted. For example, line 2 is
selected in the following figure.

Choose the color, line style (dotted, thin, thick), and the symbol for the selected line. To
change a different line, click on a different line number, or use the up and down arrow
keys. To change all of the lines at once, hold down the control key when selecting the
style, color or symbol.
2 Axis selection. The button has a pull-down menu with two options: no axes or axes. The
current selection is shown in the white field.
3 Frame selection. The button has a pull-down menu with three options: no surrounding
frame, a rectangular frame, or a frame with tick marks. The current selection is shown in
the white field.
4 Grid selection. The button has a pull-down menu with three options: no grid, fine grid, or
course grid. The current selection is shown in the white field.
5 Change Fonts button. Press the button to display a pull-down menu for selecting font
properties for the title, legend, axes labels, and axis numbers. These parts of the plot are

Rev: July 29, 1998 — 145 —


Chapter 8 Alphabetical Library Screen Reference

identified in the next figure. A standard Windows dialog box for specifying font
properties then appears and is used to specify the font properties.

Title
Y axis label

Legend

Tick labels

X axis label

Labels in a plot.

6 Current font settings. The table shows the current font settings for the four types of labels
appearing in the plot. You cannot change the values shown directly — you must go
through the Change Fonts button 5 .
7 File identifier. The two options available from the pull-down menu are file name and file
title. Because most ERD files generated with CarSimEd have numbers assigned by the
database as their names, the title option is recommended.
8 Data set identifier. Variables overlaid in a plot are identified in a legend. Variables from
the same file can be identified by the criteria provided in the pull-down menu.
9 Legend location. The button has a pull-down menu with two possible locations for the
legend that identifies data sets in overlay plots. The choices are to the right of the plot, or
four locations within the plot area. The current selection is shown in the white field.
10 Legend size limit. When two or more data sets are overlaid, and the legend is located to
the right of the plot area, WinEP sizes the plot area to leave just enough room to print the
legend. In the event that at least one of the labels in the legend is long, or that the window
is not very wide, then little space is available for the plot. This field is used to set a
maximum amount of the total window width that will be used for the legend.
This setting has no effect unless three conditions are met:
1. At least two data sets are overlaid in the plot.
2. The legend is placed to the right of the plot (as specified in 9 ).

Rev: July 29, 1998 — 146 —


Chapter 8 Alphabetical Library Screen Reference

3. The length of the longest label in the legend exceeds the specified percentage of
the window width.
If the above three conditions are met, then the plot is sized giving the legend the specified
amount. For example, if the limit is set to 30%, then the plot area is size to leave exactly
30% of the width for the legend. The labels that are too long are truncated to fit.

Location in CarSimEd
CarSimEd Startup
Runs
Plot Setup: Single
Plot Format

File Location
Plot\Format\Format.tbk

Plot Setup: Batch


The batch plot screen is used to combine a list of runs with a list of plot conditions to
automatically generate a set of plots.

Description
The standard Runs screen allows multiple plots to be specified, and multiple runs to be
overlaid. However, it is limited to four plot setups and three runs. If you want to trigger
more plots with one button click, or overlay data from more than three runs, you can do it
from this library.

Rev: July 29, 1998 — 147 —


Chapter 8 Alphabetical Library Screen Reference

15

16

1 7

3 4 5
9 10

12
6
13
11
14

User Settings and Controls


1 Runs Library link. The pull-down menu has two options: (1) to go to the currently
selected library, or (2) to pick a new library. The linked library must be a runs or
simulation library that has corresponding ERD files. When you pick a new library, the
field below is updated to show the names of all of its data sets.
2 The Runs list. List of all of the data sets in the Runs library. Any line in brackets (<>)
indicates a category heading. Double-click on a line to add to the Selected Data Files list
6 .

3 The Add button. Click to add highlighted lines from the Runs list 2 to the Selected
Data Files list 6 . Shift-click to add all.
4 The Remove button. Click to remove highlighted data sets from the Selected Data Files
list 6 . Shift-click to remove all.
5 The Add ERD File button. Calls up a dialog box for you to select ERD files that are
added to the Selected Data Files list 6 . The dialog box will continue to request
selections until you click the Cancel button.

Rev: July 29, 1998 — 148 —


Chapter 8 Alphabetical Library Screen Reference

6 The Selected Data Files list. List of the selected data sets from the Runs list. These are
the data sets that will be plotted. Any line in brackets (<>) indicates a category heading.
Double-click on a line to remove from the list.
7 Plot Setup link. The pull-down menu has two options: (1) to go to the currently selected
library, or (2) to pick a new library. The linked library must contain plot setup
information. When you pick a new library, the field below is updated to show the names
of all of its data sets.
8 The Plot Setups list. List of all of the plot setups in the EP setup library. Any line in
brackets (<>) indicates a category heading. Double-click on a line to add to the Selected
Plots list 11 .
9 The Add button. Adds highlighted lines from the Plot Setups list 8 to the Selected
Plots list 11 . Shift-click to add all.
10 The Remove button. Removes highlighted data sets from the Selected Plots list 11 .
Shift-click to remove all.
11 The Selected Plots list. List of the selected plot setups in the EP setup library. These are
the plot setups that will be used for the plots. Any line in brackets (<>) indicates a
category heading. Double-click on a line to remove from the list.
12 The One Plot Per Data File button. Click to cause the next set of plots to be made with a
separate plot for each combination of a run and plot setup. The total number of plots will
be the number of data sets multiplied by the number of selected plots.
13 The One Plot For All Data Files button. Click to cause the next set of plots to be made
by overlaying all runs for each plot setup. The total number of plots will be the number of
selected plots.
14 The Make Plots button. Click to start the program WinEP and instruct it to make a series
of plots based upon the selected runs, plot setups, printing and overlay options selected.

Location in CarSimEd
Accessed with the Tools menu or the ribbon bar button: 16

File Location
Batch\Plot_bat\Plot_bat.tbk

Plot Setup: Single


The data sets in this library each define a graphical plot with specifications of the data
(channels and files) to plot, formatting preferences, and filtering (transform) options.

Discussion
This data set is a template, used to specify what a plot should contain and how it should
look. The template is applied from the Runs screen and the Plot Setup: Batch screens.

Rev: July 29, 1998 — 149 —


Chapter 8 Alphabetical Library Screen Reference

CarSimEd comes with about 30 installed plot templates. You can modify any of these,
plus you can define new ones. Once a template is defined, it can be selected from the
Runs screen and applied routinely to all runs to generate plots.

1
4 5
2

10 10
8
11 11

9 12

User Settings and Controls


1 The Data to Plot list. This is the list of variables that will be plotted when a Plot is made.
Each line contains the Y axis variable, the X axis variable, and an optional label for the
data set. When the optional label is not specified, the plotter labels the data set based on
standard keywords obtained from the header portion of the ERD file.
The contents of this field can be edited manually, just like any other yellow field.
However, names can also be inserted with mouse clicks ( 2 ) by scanning an existing file.
2 button. Click to add the selected channels in the X and Y axis lists ( 4 and 5 ) to the
Data to Plot list 1 .
3 Check box to show long names and units. When checked, CarSimEd will generate long
names for display in the wide field below ( 4 ). On slow computers, this adds a little time
to the process of scanning the file. If the ERD file contains several hundred variables,

Rev: July 29, 1998 — 150 —


Chapter 8 Alphabetical Library Screen Reference

memory limits can prevent the long names from being generated. (This won’t happen
with the models built into CarSimEd.)
4 Y Axis list of variables. This shows all the variables in the selected run or data file 7 .
Double click on a line to add it and the line highlighted in the X Axis list to the Data to
Plot list 1 .
5 X Axis list of variables This shows all the variables in the selected run or data file 7 .
Double click on a line to add it and the line highlighted in the Y axis list to the Data to
Plot list 1 .
6 Optional labels for the X and Y axes. Normally, the plotter labels the axes based on
keywords read from the header of the ERD files. However, you can override those labels
and specify your own. If any text appears in these fields, it will be used to label the axes
instead of the information from the ERD file.
7 Link to Runs library or ERD file. The blue field shows the title of the currently selected
run or ERD file. When a run is selected, the associated ERD output file is scanned for
labels that appear in the X and Y axis fields ( 4 and 5 ).
8 Format link. The linked data set determines the look and scale of a plot. For more
information about the Format library, see the section Plot Format Screen in this chapter.
9 Transform link. This is for applying a filter to the data for plotting. The available filters
are moving average high, low, and band pass.
10 X and Y Log Scaling check boxes. When one of these boxes is checked, the
corresponding axis is drawn with log scaling. Otherwise the scaling is linear.
Note: Log scaling is only used if the box is checked and the associated
values of the variables are all positive. If the data include zero or
negative values, linear scaling is used even if the Log box is
checked.
11 X and Y Manual Scaling check boxes. When one of these boxes is checked, the
corresponding axis is scaled to cover the minimum and maximum values specified below.
Otherwise scaling is performed automatically to include the full range.
12 Minimum and maximum values for the axes. These values are used only if the manual
scaling box is checked 11 . For the X axis, these field are hidden when the manual scaling
box is not checked. For the Y axis, they are always visible because in some versions of
CarSim the values are needed for plotting software other than WinEP.

Location in CarSimEd
This library is accessible from several places in CarSimEd.
• Accessed from the ribbon bar with the button:
• Accessed with the Tools menu.
• Accessed from the Plot Setup: Batch screen.

Rev: July 29, 1998 — 151 —


Chapter 8 Alphabetical Library Screen Reference

• CarSimEd Startup
Runs
Plot Setup: Single

File Location
Plot\Plot.tbk

Plot Transforms
This screen is used for setting up plots with smoothing (low pass filter) and unsmoothing
(high pass filter).

Discussion
Filtering is normally used to view measured data. It is not routinely applied to simulation
results generated by CarSimEd models. However, it is useful if you have occasion to
view experimental data with WinEP.

Rev: July 29, 1998 — 152 —


Chapter 8 Alphabetical Library Screen Reference

User Settings
1 Filter type. Press adjacent button to display pull-down menu with choice of LoPass,
HiPass, BandPass, or no filter. See the above screen for more details.
2 High-pass baselength. This is a baselength for a moving average when the filter type is
either high-pass or band-pass. For no filter or a low-pass, this field is hidden.
3 Low-pass baselength. This is a baselength for a moving average when the filter type is
either low-pass or band-pass. For no filter or a high-pass, this field is hidden.

Location in CarSimEd
CarSimEd Startup
Runs
Plot Setup: Single
Plot Transform

File Location
Plot\Transfrm\Transfrm.tbk

Runs
The Runs screen is the main part of user interface in CarSimEd. CarSimEd includes three
separate Runs screens, corresponding to three libraries used to manage simulation results
from the three kinds of models (3D handling, 2D ride, and suspension kinematics). The
files for the libraries are located in the folders: Runs_3d, Runs_2d, and Runs_sus.
The three runs screens have nearly identical layouts, and therefore a single section is
provided here for all three. Figure 8.2 shows the screen for the 3D handling program.
A Runs screen has two functions:
1. to set up simulation runs and make them, and
2. to run post-processing programs to view results
Note: The Runs Screen has several possible appearances depending on
whether various check boxes are checked. The first figure shows
the simplest display. The most complex is shown later, after the
basic controls have been described.

Discussion
The Runs screen controls all aspects of a CarSimEd simulation. Notice that the screen
image is divided into three regions
1. Model Parameters & Inputs — this has links to inputs to the computer model.
They include the vehicle and control inputs.

Rev: July 29, 1998 — 153 —


Chapter 8 Alphabetical Library Screen Reference

2. Run Control — here are parameters that control the extent of the run, and a
button to make the run.
3. Output & Post Processing — this has controls for viewing outputs generated by
the run.

3 8
1
9
2 4 5 6
10
2
7
11 12
2
13
14

14

14

14

15

Figure 8.2. The Runs screen (3D Handling).

The Runs screens are special within CarSimEd because they have several buttons that
cause other programs to run and do things (simulate a vehicle, animate results, show
graphs of output variables). However, like all the other screens covered in this chapter,
each screen defines a data set within a library. In this case, the data set defines the
conditions covered by a run.
Data in the left-most two regions do not have anything to do with outputs of a run. They
define the inputs and parameters that will be used in the computer model if and when a
run is made. In order to have an effect, changes must be made before a run is made. At
any time: (1) any of these inputs can be changed, and (2) a new run can be made. The
simulation program will always get its inputs using the current data from this screen.
On the other hand, settings in the right-most region have no use until after a run is made.
Linked data sets control the appearances of plots and animations. Changes in data in this
region do not affect a simulation. They only affect how the simulation results are viewed.

Rev: July 29, 1998 — 154 —


Chapter 8 Alphabetical Library Screen Reference

Notes: Figure 8.2 shows the layout of the Runs screens for the 3D vehicle
simulations. The screen for the 2D simulation lacks the friction
coefficient field 6 . The 3D suspension kinematics lacks yellow
fields for specifying speed 4 and friction 6 .
Although the settings in the right-most region of the screen are not
used when a simulation is run, the files are nonetheless scanned. If
the links are not valid (e.g., because a data set was deleted), an
error message might be generated when the simulation program
starts.

User Settings and Controls (Simple Display)


1 Link to vehicle data set. The type of vehicle is shown as a sub-title above the blue field.
In the figure, the type is Classic car.
Note: If linked to a car description using the RRCI Plug-n-Play Tire
model, the type would be PnP car.
If you want to simulate a different type of vehicle, the recommended method is to:
1. find an existing Runs data set that is already set up to simulate the desired type of
vehicle, then
2. copy the data set by clicking the New button (to avoid overwriting previous
simulation results), and then
3. modify the copied data set as desired for the new run.
2 Links to screens for inputs and disturbances. The main inputs used in CarSimEd are
braking, steering, and throttle (for the 3D handling model), road profile (for the 2D ride
model), and spindle Z coordinate (for the 3D suspension model).
3 Run Simulation button. Click to run the appropriate vehicle simulation program using
the current model parameters and inputs.
4 Speed (keyword = SPEED). The 3D simulation model normally applies a closed-loop
speed controller to maintain this speed until the brakes are applied. The 2D model is
assumed to run at a constant speed, as specified by this value. (The 3D suspension Runs
screen does not have this field.)
5 Simulation stop time (keyword = STOPT). The simulation normally runs until this time is
reached. However, it will stop earlier under some other conditions:
0 The vehicle roll angle exceeds a specified limit that implies that a rollover
accident was inevitable (keyword = ROLL_STOP).
1 The absolute vehicle speed dropped below a specified threshold (keyword =
V_STOP).
The low-speed threshold (V_STOP) is set on the Input: Braking screen. The other
parameters can be optionally set using the Misc. Data field 16 described later.

Rev: July 29, 1998 — 155 —


Chapter 8 Alphabetical Library Screen Reference

6 Friction coefficient (keyword = MU). This is a number used to scale forces from the tires
to match friction conditions that differ from the test condition that prevailed when the tire
data were measured. It is the ratio of the maximum shear force (Fx or Fy) to the vertical
force (Fz). Typical values for dry pavement are around 0.8. For wet pavement, values
would be lower, around 0.5. For ice and very slippery surfaces, friction levels can drop
below 0.3.
7 Computation Parameters link. The linked data set specifies the integration time step,
the print interval, the type of integration, and related parameters.
8 Animate button. Click to run the animator program and view motions of the vehicle as
predicted by the simulation. An error message will be printed if the output file does not
exist, which usually indicates that the run has not yet been made.
9 Camera Setup link. The linked data establishes the camera point of view and initial
location.
10 View Echo File (All Parameters) button. This button causes a text editor to run and
display an echo file produced by the simulation program.
The echo file has the extension LPF, and is similar to the file listed in Appendix D. If the
run has not yet been made, or if it aborted without writing the LPF file, then the text
editor will show a blank window.
If you click this button and get an error message or a file browser dialog, then CarSim
could not find the text editor.

The default text editor is a program called QLPad.exe, located in the Programs
directory. If you want to change the default text editor, you can Control-click the button
to bring up the file dialog and choose a different text editor.
11 Plot button. Click to view a plot of output variables calculated during the simulation run.
The plots are drawn by the WinEP program. An error message will be printed if the
output file does not exist (for example, if the run has not yet been made).

Rev: July 29, 1998 — 156 —


Chapter 8 Alphabetical Library Screen Reference

Up to four separate plots can be generated (each with many variables, taken from up to
three runs). In order to generate more than one plot, the Multiple Plots box 12 must be
checked.
12 Multiple Plots check box. This check box has two effects:
1. When checked it displays three plot setup links in addition to the first one 14 .
2. When checked, it allows up to four plots to be created with a single click of the
Plot button 11 .
If the box is not checked, the additional plot links are not cleared. They are just hidden.
13 Overlay Runs check box. This check box has two effects:
1. When checked it displays two links for other runs or ERD files.
2. When checked, it allows data from up to three files to be overlaid. (One file is the
output associated with the current Runs data set. The other two are specified with
the additional two links.)
If the box is not checked, the additional links are not cleared, they are just hidden.
14 Plot Setup link. The linked data controls what information will be extracted from the
output file and how that information will be displayed. Up to four plot setup links can be
set, to create four independent plots at a time.
Only the first link is displayed if the Multiple Plots box 12 is not checked.
15 Show More check box. This check box has a single effect: it shows more control objects,
as shown in Figure 8.3.
Note: Figure 8.3 shows the Runs screen with all three display boxes
checked ( 12 , 13 , and 15 ). All possible data fields and links are
displayed.

Additional User Settings and Controls


16 Misc. Data field. This is a field where any parameter can be set. The format for each line
of text should consist of a parameter name, then a blank space, and then the parameter
value. This field can contain any text that would be recognized by the simulation
program. See Appendix D for a list of all the keywords and parameters that can be
specified.
17 Based On link. This link is sometimes used to base a new run on the data from an old
run. If a new run is made, all model parameters and inputs from the old run will be read
by the solver program before any of the inputs from this data screen are read. The final
conditions from the other run are also read, which means that the new run will continue
where the old one left off. Any inputs specified on this page will overwrite the data from
the previous run.

Rev: July 29, 1998 — 157 —


Chapter 8 Alphabetical Library Screen Reference

26

1 3 8

2 9
4 5 6
2 10
7 12
2 11
24 13
14
17
14
16
18
14

20 14

21
23
19
22 23
15

Figure 8.3. Runs screen with all controls showing.

This link is provided for special applications. (Most users never need it.) A few cases
where you might consider using it are:
• to continue a run, perhaps after changing one or more model parameters;
• to make a run using a vehicle description whose parameter values have been
lost (the based on method reads from an LPF echo file, rather than the normal
PAR files associated with the SGUI screens); or
• for certain debugging operations, such as confirming that the parameters
specified in the screen are being processed by the solver program.
18 Overriding Data link. This link is used by the system when batch runs are made using
the Runs: Batch library. If a run is made under batch control, this link can be used to go
to the batch data set.
19 Excerpts from Output File. This field shows selected lines scanned from one of the
output files. It is updated whenever a run is made or when the Rescan button 22 is
clicked.

Rev: July 29, 1998 — 158 —


Chapter 8 Alphabetical Library Screen Reference

20 File extension. This determines which echo file is scanned when a run is made or the
Rescan File button is clicked. The normal values are LPF (scan the file made with final
conditions), or LPO (scan the file made with initial conditions).
21 Keywords field. Each line in this field is a keyword that will be used to scan an output
echo file whenever a run is made or when the Rescan button is clicked.
22 Rescan button. Click this button to cause CarSim to scan a file for lines beginning with
the keywords listed in the Keywords field 21 . Those lines are copied into the adjacent
white field 19 . The file that is scanned has a root name matching the ID of the current
data set and the specified extension 20 . This is done automatically when a new run is
made. However, you can click this button to force the program to scan the file
immediately. This is done mainly after changing the contents of the keywords field 21 .
23 Overlay Run links. These links are used to generate overlay plots, in which variables
from the current simulation run are plotted with the same variables from other files. To
overlay variables from two or three simulation runs, link to this library (Runs) and then
pick another run to plot with. To overlay variables with ERD files not from this library
(for example, measured test data), use the menu command to open an ERD file.
24 Simulation Type link. This shows the current type of simulation model. As shipped,
CarSim has a single type: Single-Unit Vehicle. (Custom versions may have modified or
extended models.)This single type is used with both solid-axle and all-independent
vehicle models. The software determines which solver program to use based on the type
of vehicle selected with the Vehicle link 1 .
The triangle button displays a pull-down menu with options for adding and deleting
simulation types, and for locating the simulation solver program (extension EXE). Unless
you add new solver programs, you should never use this menu. In fact, the menu is
disabled unless the check box for Advanced Users is checked in the Preferences screen.

Location in CarSimEd
The Runs screen for the 3D handling model can be accessed from the Tools menu and
the ribbon bar button: . The other two are accessed from the GO menu.
All three Runs screen are accessed from the CarSimEd Startup screen:
CarSimEd Startup
Runs

File Location
Runs_3d\Runs_3d.tbk
also,
Runs_2d\Runs_2d.tbk
also,
Runs_sus\Runs_sus.tbk

Rev: July 29, 1998 — 159 —


Chapter 8 Alphabetical Library Screen Reference

Runs: Batch
The batch runs screen is used to set up several runs ahead of time and make them all at
once. It also can be used to override parameters.

Discussion
This screen is used to set up a batch of runs. It is handy for redoing a group of runs, say,
because an error was made in a vehicle parameter value. It can also be used to change a
parameter such as test speed, and make a set of runs again using the new parameter.
The basic method is:
1. Create a list of runs to be made using existing data sets from the Runs library.
2. Define parameters and link to other data sets to override the conditions specified
in the Runs data sets.
3. Click the Make Runs button.

1
6

2
7

7
3 4

6
5

8
7

If no overriding data values or links are provided in step 2, the effect is exactly the same
as going to each of the data sets from the Runs library and making the run again.
However, if any parameters are specified or links are made, each data set in the Runs
library is modified to use the overriding data. A link called Overriding Data (from

Rev: July 29, 1998 — 160 —


Chapter 8 Alphabetical Library Screen Reference

Batch) is made to this data set. For example, in the figure above, the name of the data set
is Example, and one of the yellow fields is used to specify a speed of 20. If any runs
were made, each affected run would have the following link set automatically:

This link is made so you can get from the runs data set back to the batch data set and see
what parameters and links were used when the run was made.

User Settings and Controls


1 Runs link. In order for the batch run option to work, a link is needed to an existing Runs
library (e.g., Runs_3d\Runs_3d.tbk). When this data set is opened, the linked library
is automatically scanned by CarSimEd, and the names of all data sets are listed in the
field below 2 . The adjacent triangle button has a pull-down menu that can be used to
link to a different Runs library.
2 The Data Sets From Runs Library list. This is a list of all of the data sets in the Runs
library whose local pathname is shown above 1 . Any line in brackets (<>) indicates a
category heading.
Double-click on a line to add that run to the list named Data Sets to Run 5 . This is the
same as selecting the line and then clicking the Add button 3 . Double-click on a line in
brackets (<>) to add all runs in the category to the list 5 .
3 The Add button. Click to add the currently highlighted lines from the Data Sets From
Runs Library list 2 to the Data Sets to Run list 5 . Shift-click to add all runs.
4 The Remove button. Click to remove highlighted data sets from the Data Sets to Run
list 5 . Shift-click to remove all.
Note: The Remove button only affects the list of Data Sets to Run 5 .
No data sets are deleted from the database.
5 The Data Sets to Run list. This is a list of the selected data sets from the Runs library.
These are the data sets that will be run using the overriding data to the right ( 6 , 7 ).
Any line in brackets (<>) indicates a category heading.
Double-click on a line to remove it from the list. This is the same as selecting the line and
then clicking the Remove button 5 . Double clicking on a line in brackets will remove
the entire category.

Rev: July 29, 1998 — 161 —


Chapter 8 Alphabetical Library Screen Reference

6 Parameter Sets (1, 2, and 3). These lists hold overriding data. If used, each line typically
has a keyword followed by a value. For example, to set the speed, enter the line speed
60. See Appendix E for the keywords recognized by CarSimEd models.
Any parameters specified in these fields will be used instead of the ones referenced in the
Runs data set, or in data sets linked to the Runs data set.
This field should be left blank if you do not want to modify the input parameters or
model descriptions for the runs to be made.
7 Links (1, 2, and 3) . Use these links to apply data from any other CarSimEd library. If the
data in the library can be applied to different parts of the vehicle (for example, a tire
description can be applied to any of the axles on the vehicle), a reference to a part of the
vehicle must be specified in the preceding Parameter Set 6 .
8 The Make Runs button. Click to run all of the data sets listed in the Data Sets to Run
list 5 . Hold down the control key to interrupt the runs in progress.

Location in CarSimEd
Accessed from the Tools menu and the ribbon bar button:

File Location
Batch\Runs_bat\Runs_bat.tbk

Suspensions
Use this screen to define suspension properties for the vehicle models used in the 3D
braking and handling simulation. A few of the parameters are also used for the 2D ride
simulations.

Discussion
This screen shows parameters that characterize the most important properties of a
suspension, with respect to predicting ride, braking, and handling. All parameters are
used for the 3D simulations. For the 2D ride, only the spring and damper parameters are
used ( 10 - 13 ).
The kinematics of the suspension linkages are described in terms how a wheel moves
laterally and longitudinally as the suspension deflects vertically. The lateral movement
affects the transfer of tire lateral force to the body and the resulting body roll. The
longitudinal movement has a similar effect involving pitch due to longitudinal tire force.
Changes in steer due to compliance and suspension kinematics can drastically affect the
response of a vehicle to steer. This behavior is represented with several linear
coefficients.

Rev: July 29, 1998 — 162 —


Chapter 8 Alphabetical Library Screen Reference

10 11
2
3 12
13
14

7
8
9
4

5
6

User Settings
1 Unsprung mass for the suspension (keyword = MUS (IAXLE)). This mass should
include all parts that move relative to the body—wheels, tires, brakes, and portions of the
suspension links and driveline. The mass is for both wheels associated with the axle.
2 Track width (keyword = LTK (IAXLE)).
3 Height of axle roll center above ground at the simulation load condition (keyword = HRC
(IAXLE)). This is typically a value between 0 and 100 mm for independent suspension,
and around 300 - 500 mm for solid axle suspensions.
4 Wheelbase change per unit jounce (keyword = RAP (IAXLE)). This should be a
positive number for both front and rear suspensions, with a value between 0.05 and 0.25
mm/mm.
Note: The sign convention is designed such that a positive value means the
wheel moves away from the center of the vehicle as it moves up. In
the front, this is called anti-dive. In the rear, anti-squat.
5 Ratio of toe change per unit of suspension compression (keyword = RTOE (IAXLE)). As
shown in the figure, positive toe is steer to the inside (left steer for the right wheels, right
steer for the left wheels). Suspension kinematics normally cause toe to vary in a complex

Rev: July 29, 1998 — 163 —


Chapter 8 Alphabetical Library Screen Reference

way with suspension deflection. This coefficient should be selected to represent the linear
behavior near the nominal suspension compression.
6 Ratio of camber change per unit of suspension compression (keyword = RCAM
(IAXLE)). As shown in the figure, positive camber is when the wheel leans out at the top.
Suspension kinematics normally cause camber to decrease with suspension compression.
Thus, this value is often negative.
7 Coefficient for change of toe per change of tire longitudinal force (keyword = CTFX
(IAXLE)). A forward force (drive) often bends the suspension forward, steering the
wheel inward (positive toe) due to suspension compliance. Therefore this parameter is
likely to have a small but positive value.
8 Coefficient for change of steer angle per change of tire lateral force (keyword = CSFY
(IAXLE)). For wheels which can be steered, the steer axis is usually inclined to intersect
the ground in front of the center of tire contact. Thus, a positive lateral force (to the left),
acting behind the steer axis, usually causes some steer to the right (negative). This
coefficient is therefore likely to have a small negative value for a steered wheel. For rear
wheels, is should have a value close to zero.
9 Coefficient for change of steer angle per change of tire aligning torque (keyword = CSMZ
(IAXLE)). The suspension elements usually deflect when a steering torque is applied to
the wheel. Because the steer and moment have the same sign convention, the compliance
coefficient is nearly always positive.
Steering as a result of aligning torque is due both to compliance in the suspension, and to
compliance in the steering column. If equal and opposite steering torques are applied to
both the left and right road wheels, the resulting deflection is mainly due to the
suspension alone.
The suspension compliance is subtracted from the total steering compliance that would be
measured for one wheel, to determine the compliance for the steering column (specified
in the Cars data screen).
10 Ratio of spring jounce (compression) to jounce at wheel (keyword = RSPRING
(IAXLE)). This determines the mechanical advantage of the suspension with respect to
the spring. The value is typically between 0.5 (for some SLA suspensions) and 1.0 (for
some MacPherson strut suspensions).
11 Ratio of damper jounce to jounce at wheel (keyword = RDAMP (IAXLE)). This
determines the mechanical advantage of the suspension with respect to the shock
absorber. The value is typically between 0.5 (for some SLA suspensions) and 1.0 (for
some MacPherson strut suspensions).
12 Spring rate (keyword = KS (IAXLE)). This is the linear rate of a single suspension
spring. You can take the rate at the spring, rather than at the wheel, because an additional
parameter accounts for the mechanical advantage of the suspension 10 .
13 Spring rate (keyword = DS (IAXLE)). This is the linear rate of a single shock absorber.
You can take the rate of the isolated damper, rather than at the wheel, because an
additional parameter accounts for the mechanical advantage of the suspension 11 .

Rev: July 29, 1998 — 164 —


Chapter 8 Alphabetical Library Screen Reference

14 Auxiliary roll stiffness, including stabilizer bar (keyword = KAUX (IAXLE)). This
coefficient is provided to account for the difference between the overall roll stiffness and
the stiffness provided by the springs along. It is usually positive.
The overall roll stiffness of a suspension is the roll moment (N-m) needed to roll the
vehicle body one degree (with the other suspension disconnected). The springs provide a
certain amount of roll stiffness, based on the spring rate, the mechanical advantage of the
suspension, and the track width. The total roll stiffness may differ from the rate computed
for the springs alone. Additional stiffness is provided by anti-sway bars and by over-
constrained suspension linkages.
On the other hand, additional compliance can be introduced through soft attachment
points, leading to a negative value for auxiliary stiffness.

Location in CarSimEd
CarSimEd Startup
Runs
Cars
Suspensions

File Location
Vehicles\Susp_ed\Susp_ed.tbk

Tires: CarSimEd “Classic”


Use this screen to change the constants and links to the table look-ups which define the
tire properties. The “Classic” tire model is for the self-contained 3D vehicle dynamics
model. An alternative is the RRCI Plug-n-Play Tire model.

Discussion
This screen provides a location for you to enter a number of tire properties needed in the
simulation. Tire vertical stiffness determines how the load varies as the tire bounces on
the road. You can specify a vertical stiffness value here. If you are simulating the 2D
vehicle ride response, this is the only tire parameter that will be used.
For small amounts of slip (lateral or longitudinal), the tire produces forces and aligning
moment proportional to the slip. The coefficients are highly sensitive to load, and
therefore the screen has links to other data screens that define the load sensitivity in
tabular form.
For braking, the dynamics of the spinning wheels are not of great interest. Without ABS
simulation, the wheels generally reach a spin value in which the longitudinal tire force
just balances the applied brake torque. The model uses a single coefficient to relate
longitudinal slip to force.

Rev: July 29, 1998 — 165 —


Chapter 8 Alphabetical Library Screen Reference

For cornering, a quick equilibrium is not reached, and the relation between lateral slip
and lateral force has a strong influence on the handling behavior of the vehicle. The
CarSimEd tire model is described in Appendix F. It is based on an analysis of tire
mechanics from Chapter 14 of the book Race Car Vehicle Dynamics, Milkier & Milkier,
SAE, 1995.
When a tire experiences a slip angle, it does not immediately generate a lateral force, but
must roll some distance to generate the lateral deflection necessary to sustain a force.
Under a step steer the force builds up like a first-order lag in distance. You can input this
distance, known as the relaxation length, on this screen.
At low speeds the determination of tire forces can become erratic because of numerical
problems in calculating the slip conditions. In order to avoid these problems, you can
specify a cut-off speed below which such mechanisms as relaxation length are modified.
All properties are specified for one tire.

5 9
6 10

11

1
2
3

4
7

User Settings
1 Longitudinal stiffness (keyword = KFX(IAXLE)). This coefficient defines the
relationship between longitudinal slip and force for small amounts of slip. Although the
coefficient is in reality sensitive to load, a constant value is used in the model because no

Rev: July 29, 1998 — 166 —


Chapter 8 Alphabetical Library Screen Reference

matter what the stiffness is, the longitudinal force will balance the brake torque. The
stiffness determine the amount of slip that occurs during that balance, and the
longitudinal slip does affect the cornering behavior for combined slip (see Appendix F).
However, given that the tire model is not adjustable in its combined slip behavior, a
single value for Kfx is considered to be adequate for most conditions.
2 Camber thrust coefficient (keyword = KFYCAM(IAXLE)). This coefficient defines the
relationship between wheel inclination and side force. The sensitivity to inclination is an
order of magnitude less than the sensitivity to slip (steer). Even though the coefficient is
known to be sensitive to load, a constant value is used in the CarSimEd model due to its
relatively small overall contribution to the tire force.
With the ISO coordinate system used in CarSimEd (shown in the screen figure), positive
inclination (leaning to the right) causes negative lateral force (the force also goes to the
right). Therefore, this coefficient should be negative.
Note: With the SAE coordinate system this coefficient would be positive.
Therefore, check the sign if you are obtaining data from a source
where the SAE convention was used.
3 Link to cornering stiffness data. The linked data set specifies cornering stiffness as a
function of load.
4 Link to cornering pneumatic trail data. The linked data set specifies pneumatic trail as a
function of load.
5 Undeflected tire radius (keyword = HWC (IAXLE)). This parameter establishes the
relationship between forward speed and wheel spin.
6 Tire vertical stiffness (keyword = KT (IAXLE)).
7 Tire relaxation length (keyword = LRELAX (IAXLE)). This is about one-third the
distance that the tire must roll before side force due to slip angle builds up to its full
value. It can be thought of as a spatial version of a time constant.
8 Cutoff speed for tire relaxation equations (keyword = VLOW_ALPHA (IAXLE)). The
concept of relaxation length is valid for a range of speeds, but leads to strange behavior
as speeds approach zero because the time constant associated with the dynamic lag goes
to infinity. The time constant associated with relaxation is frozen when the speed drops
below this value.
9 Cutoff speed for longitudinal tire forces (keyword = VLOW_KAPPA (IAXLE)). The
classic model for predicting longitudinal force eliminates a direct dependency on speed
by using a normalized longitudinal slip. However, the definition of longitudinal slip is
singular at zero speed. At speeds approaching zero, the classic model can predict
maximum tractive force, oscillating in the forward and rearward directions. This behavior
is reduced in the CarSim model by attenuating the slip when the wheel is locked by the
brakes and the speed drops below the level specified in this field (see Appendix F for
details).

Rev: July 29, 1998 — 167 —


Chapter 8 Alphabetical Library Screen Reference

10 Cutoff speed for wheel spin acceleration (keyword = VLOW_SPINA (IAXLE)). Brake
torque is the result of friction, and therefore is always opposes the wheel spin. When the
wheel spin approaches zero (lock up), a numerical instability can occur due to the
reversal of the direction of the brake torque. To avoid numerical problems, the wheel spin
equation is modified when the effective speed (spin multiplied by rolling radius) drops
below the level specified in this field.
11 Spin moment of inertia of one wheel (keyword = IW (IAXLE)). This should include all
parts that rotates with the wheel as a single rigid body, including the tire, brake rotors,
and possibly driveline elements.

Location in CarSimEd
CarSimEd Startup
Runs
Cars
Tires: CarSim Educational Tire Model

File Location
Vehicles\Tires_ed\Tires_ed.tbk

Tires: Cornering Stiffness


Use this screen to define the cornering stiffness of a tire as a function of vertical load.

Discussion
For small levels of lateral slip, tires produce lateral force that is proportional to the
negative of slip. The coefficient is called cornering stiffness. It is strongly dependent on
load. The CarSimEd model accounts for the load sensitivity with a tabular function.
For large slip angles, the CarSimEd model reduces the lateral force to account for friction
limits. Details are provided in Appendix F.

Rev: July 29, 1998 — 168 —


Chapter 8 Alphabetical Library Screen Reference

User Settings
Note: User settings that are common for all tabular data screens are
described in Chapter 7, in the section Tabular Data.
1 Table field for cornering stiffness (keyword = KFY_TABLE). Each line should have a
value of cornering stiffness (N) followed by a corresponding value of trail (N/deg).
Although lateral force and side slip have opposite signs, cornering stiffness is defined
CarSimEd as a positive quantity. Therefore, all numbers in the table should be positive.

Location in CarSimEd
CarSimEd Startup
Runs
Cars
Tires: CarSimEd Tire Model
Tires: Pneumatic Trail

File Location
Vehicles\Tires_ed\Kfy\Kfy.tbk

Rev: July 29, 1998 — 169 —


Chapter 8 Alphabetical Library Screen Reference

Tires: Pneumatic Trail


Use this screen to specify pneumatic trail as a function of vertical load.

Discussion
The line of action for the shear force produced by a tire is generally not exactly through
the center of tire contact. For small lateral slip angles, the shear force usually acts behind
the center. This distance acts as a moment arm, producing a torque that opposes the
steering. It is called “self-aligning torque” or aligning moment.
The pneumatic trail is a function of the shape of the contact patch between the tire and
road. Therefore, pneumatic trail is sensitive to inflation pressure and vertical load. This
screen is used to describe the sensitivity to load.

User Settings
Note: User settings that are common for all tabular data screens are
described in Chapter 7, in the section Tabular Data.
1 Table field for pneumatic trail (keyword = TRAIL_TABLE). Each line should have a
value of load (N) followed by a corresponding value of trail (mm).

Rev: July 29, 1998 — 170 —


Chapter 8 Alphabetical Library Screen Reference

Location in CarSimEd
CarSimEd Startup
Runs
Cars
Tires: CarSimEd Tire Model
Tires: Pneumatic Trail

File Location
Vehicles\Tires_ed\Trail\Trail.tbk

Rev: July 29, 1998 — 171 —


Appendix A — Glossary
Animator — a program in CarSimEd that is used for animating wire-frame
representations of vehicles.
AutoSim™ — a code generator that that was used to create the solver programs in
CarSimEd. AutoSim was developed by UMTRI, and is licensed, maintained, and
supported by MSC.
CarSim™ — a commercial software package similar to CarSimEd, but with more
modeling detail and additional controller options.
CarSimEd (CarSim Educational) — a software package for simulating and analyzing the
braking and handling behavior of cars. CarSimEd is free. The latest version is posted on
the Internet at: http://www.trucksim.com/carsimed.html
CarSimEd database — the collection of all data libraries within CarSimEd.
C-MEX — a compiled file with equations of motion that will be solved using SimuLink
and MATLAB, mathematical analysis tools from the MathWorks, Inc.
Data screen — a view of a data set contained in the CarSimEd database. A data screen is
where you enter the parameters that define your target simulation. It is a data set as
viewed through a graphical user interface.
Data set — a collection of parameter values and related information, organized for
display on a CarSimEd screen. Data sets are contained in library files, and edited in data
screens.
Echo file — a text file (produced by a solver program) that lists every input parameter.
The echo file documents the conditions that were simulated in a run. All echo files made
by CarSimEd solver programs are written in the PARSFILE format. The solver programs
can also read echo files as inputs for future runs.
ERD file — a file stored in a standard format that supports automated plotting and post-
processing. Output files produced by CarSimEd solver programs are written in ERD
format. The plotter and animator programs read ERD files. ERD stands for Engineering
Research Division, a group at UMTRI.
Go — in the context of CarSimEd, going to a different data set, screen, or library means
having CarSimEd change the screen view to display a different data set. The new data set
could be from the same library or a different one.
Library — a file containing one or more data sets of the same type, plus a standard
graphic interface for viewing those data sets. All CarSimEd library files have the
extension TBK.
Link — a connection from one data set to another, indicated with a blue field and an
adjacent triangle button with a triangle. For example, here is a link to a vehicle data set.

Rev: July 27, 1997 — 172 —


Appendix A Glossary

The adjacent button has a pull-down menu that can be used to rapidly change the link to a
different data set. The menu can also be used to “follow the link” and go to the data set.
MATLAB™ — a software product from the MathWorks, Inc. that supports the
MATLAB language of technical computing. MATLAB includes extensive capabilities
for manipulating matrices and other mathematical constructs. It also includes equation
solvers, plotting, and an interactive environment.
MSC — Mechanical Simulation Corporation. The company that maintains CarSimEd.
Numerical integration — a computation method used to solve the differential equations
that define a mathematical model of vehicle dynamics. Output variables produced by the
models in CarSimEd are based on internal model variables that are calculated over time
using numerical integration.
Parameter — a value that you can change from a CarSimEd data screen. Parameters are
properties of the CarSimEd models that are constant during a computer run. Variables, on
the other hand, are computed by the simulation programs and cannot be viewed until after
a run is made.
PARSFILE (parameter file) — a keyword-based text file used to communicate between
various CarSimEd programs.
Plug and Play (PnP) Tire — an extension to CarSimEd that enables user-defined tire
models (described with symbolic equations and numerical values). Robertson and
Robertson Consultants, Inc. (RRCI) provide the PnP tire capability. For the latest
information about PnP Tire, see the RRCI web site: http://www.rrci.com.
QLPad — a text editor included with CarSimEd for editing and viewing text files.
Ribbon bar — the collection of buttons and user controls displayed at the top of nearly
every CarSimEd data screen.
Run — Shorthand for “run a simulated test” (e.g., “make a run”). Also used to refer to
the “outcome of a simulated test run” (e.g., “look at a run”).
Screen — shorthand for “screen layout associated with a library.” This manual has many
references to the act of going from one screen to another. “Changing the screen” means
the database program changes the view to show different data.
SGUI — Simulation Graphical User Interface. The architecture of CarSimEd (data
screens, plotter, simulation programs, animator) has been used for other software
packages. The generic architecture, created at UMTRI and further developed by MSC, is
called the SGUI.
SimuLink™ — a software product from the MathWorks, Inc. that adds a simulation
environment to the basic MATLAB package. SimuLink is often used to design and
evaluate control systems. Equations describing complex models can be provided through
external C-MEX files. A C-MEX version of the CarSimEd 3D handling model is
provided for use with SimuLink

Rev: July 27, 1997 173


Appendix A Glossary

Solver program — a program that numerically solves the equations of motion of a


vehicle model to simulate a test. The CarSimEd solver programs are customized with the
describing equations for specific models. They also handle all required calculations and
input/output.
TBK files — binary files that contain the CarSimEd libraries. In addition, some of the
code needed to make the CarSimEd buttons work is stored in TBK files. All necessary
TBK files are provided in the CarSimEd installation, and they are managed automatically
by CarSimEd. TBK files are native to the ToolBook software.
ToolBook™ — a “Visual Authoring System” from Asymetrix. The graphical interface
and the database portion of CarSimEd are managed by code that runs within ToolBook.
Also, the integration between the database and CarSimEd programs is provided by
ToolBook. The running of ToolBook code and management of ToolBook libraries is
done by the ToolBook runtime package, which is included with CarSimEd.
Triangle button — a button with a triangle icon ( ), usually located adjacent to a field.
Press the button to display a pull-down menu.
TruckSim™ — an integrated software package (similar to CarSim) available from MSC
for simulating and analyzing the braking and handling behavior of trucks and tractor-
trailer combinations.
UMTRI — The University of Michigan Transportation Research Institute. CarSimEd is
based on software and methods developed at UMTRI.
Variable — an output quantity computed by the CarSimEd vehicle models. In contrast to
a parameter, a variable can change with time in a way that must be simulated using a
model. Output variables can be plotted with WinEP, the CarSimEd plotter. Motion
variables can be read by the animator to create animation of the simulated vehicle
motions.
WinEP — the Window version of the Engineering Plotter in CarSimEd.

Rev: July 27, 1997 174


Appendix B — ERD File Format
The ERD file format was developed within the Engineering Research Division (ERD) of
the University of Michigan Transportation Research Institute (UMTRI) to facilitate
automated plotting of simulation data, experimentally measured data, and data from
various analysis programs.
A freely available plotter called EP (Engineering Plotter) has been developed for viewing
data in ERD files. Versions of EP exist for Mac, Windows, and some UNIX platforms.
The Windows version is called WinEP.
The animator program in CarSimEd is also designed to work with ERD files.
An ERD file contains two independent sections, the header and data. The header contains
only text, and the data section contains only numbers. The numbers can be written in
either text or binary form. The text form is convenient for viewing and editing data with a
word processor, whereas the binary form provides more efficient access for automatic
processing. If the data section is in text format, then both the header and the data are kept
in a single file. However, if the data are in binary format, two files are used. The header is
in an ordinary text file with the extension ERD, and the data are in a file with the name of
the header file and the extension BIN. For example, if the header file is named Out.erd
the name Out.bin must be used for the data file. Both files must lie in the same folder.
Note: For the Macintosh plotter, the ERD extension is not used for the
header. For example, if the binary file is Out.bin, then the
header file would be named Out.

The Header
The ERD file header consists of a series of conventional text lines that are human
readable. These lines contain the information used by post-processing tools to read the
numerical data.

Required Lines
As a minimum, the header contains three lines of text. The first line identifies the file as
following the ERD format. The second line describes the way that the numerical data are
stored in the data section of the file. The third required line is an END statement that
indicates the end of the header portion. Any number of optional lines can be included
between line #2 and the END line. Table B.1 summarizes the lines in an ERD file, and
describes the parameters used in line #2 to describe the numerical data.
The second line of the file shown in Listing B.1 shows that the file contains data for 2
channels, with 529 samples/channel, stored as 1 binary record consisting of 4232 bytes,

Rev: July 27, 1997 — 175 —


Appendix B ERD File Format

that the data storage format is type 1 (4-byte binary), that the interval between samples is
1.00, and that the status of the auxiliary numbers is -1.
Table B.1. Summary of records in an ERD file header.
Line No. Description
1 ERDFILEV2.00 — identifies file as having ERD format
2 NCHAN, NSAMP, NRECS, NBYTES, KEYNUM, STEP, KEYOPT —
use commas to separate numbers
NCHAN [integer] = Number of data channels
NSAMP [integer] = Number of samples for each channel. The total
number of sampled values in the data portion of the file is
NCHAN × NSAMP. (If unknown, use –1.)
NRECS [integer] = Number of records of data. (record ≈ line)
Ignored for text data (KEYNUM = 5. ) (If unknown, use –1.)
NBYTES [integer]
binary data: Number of bytes per record. If KEYNUM=0,1, or
5, this should be chosen such that each record begins with
channel 1: that is, NBYTES = K × NCHAN × B, where K is
an integer and B is the number of bytes/number (B=2 for
integer, B=4 for floating-point). If KEYNUM=10,11,or 15,
this should be NSAMP × B.
text data: Number of samples per record. Thus each record
contains NBYTES × NCHAN numbers (for KEYNUM=5).
KEYNUM[integer] Indicates how the data are stored.
0, 10 = 2-byte integer (binary),
1, 11 = 4-byte floating point (binary),
5, 15 = Formatted floating-point (text). The format must
be specified using the FORMAT keyword.
For KEYNUM=0,1, and 5, the data are stored with all channels
for the first sample together, then all channels for the second
sample, etc.
For KEYNUM=10,11, and 15, the data are stored with all
samples for the first channel together, then all samples for
the second channel, etc.
STEP [real] = sample interval (e.g., time step)
KEYOPT [integer] = auxiliary number used by some programs
• Optional records. Each record begins with an 8-character keyword,
followed by information associated with that keyword.
Table B.2 lists keywords that have been used to date.
last line END — indicates the end of the header

Rev: July 27, 1997 176


Appendix B ERD File Format

Listing B.1. Short Header for an ERD File with Binary Data.
ERDFILEV2.00
2, 529, 1, 4232, 1, 1.00000, -1,
TITLE 1993 RPUG Study, Dipstick, Section 1, Measurement 1
SHORTNAMLElev. RElev.
UNITSNAMft ft
XLABEL Distance
XUNITS ft
END

Listing B.2 shows a longer header for a file with its data in text form. Note that the data
begin immediately after the END line of the header.

Listing B.2. Typical Header for an ERD File with Text Data.
ERDFILEV2.00
2, 529, 1, 4232, 1, 1.00000, -1,
TITLE 1993 RPUG Study, Dipstick, Section 1, Measurement 1
SHORTNAMLElev. RElev.
LONGNAMELeft Elevation Right Elevation
UNITSNAMft ft
GENNAME Profile Elevation Profile Elevation
XLABEL Distance
XUNITS ft
FORMAT (2G14.6)
PROFINSTDipstick
HISTORY Converted to ERD format at 23:46, Oct. 23, 1994
END
0.000000 0.000000
0.416667E-03 -0.141667E-02
0.416667E-03 0.583333E-03
0.666667E-03 0.916667E-03
0.133333E-02 0.133333E-02
0.750000E-03 -0.166667E-02
-0.300000E-02 -0.458333E-02
-0.558333E-02 -0.500000E-02
-0.625000E-02 -0.658333E-02
-0.775000E-02 -0.825000E-02

Optional Lines with Keywords


Optional lines in the header begin with an eight-character keyword that defines a
particular type of data contained in the remainder of the line. Keywords are associated
with one of five general data types: integers, floating point (real) numbers, 8-character
names, 32-character names, and 80-character names. The number of data items is either
one per file (e.g., TITLE of data set in the file), one per channel (e.g., a short name for
each channel), an arbitrary number N (e.g., static axle loads for N axles), or repeatable
(e.g., comments stored using the HISTORY keyword).

Rev: July 27, 1997 177


Appendix B ERD File Format

Table B.2 lists common keywords recognized by most post-processing tools. The use of
some of these keywords is demonstrated in Listing B.1 and Listing B.2.

Table B.2. Keywords in ERD file.


keyword Description No. of Variable
Values Type
VERSION Line 1 in header file. 1 char*32
LINE 2 Line 2 in header file. See Table B.2 for details. 7 int, real
&n Continuation keyword, indicates that the
previous line ended in column n and is
continued in this line in column 9. Used to
break long lines into multiple short lines.
(The following 6 lines are used by EP and are
recommended for inclusion in all ERD files)
GENNAME Generic names for variables, used for labeling NCHAN char*32
Y axis when several variables are plotted on the
same axis (e.g., Force).
LONGNAME Long names for channels. NCHAN char*32
SHORTNAM Short names for channels. NCHAN char*8
TITLE Title used for file. 1 char*80
UNITSNAM Units of channels. NCHAN char*8
XUNITS Units of independent variable (e.g., sec). 1 char*8
(The following line is required for EP to create
Channel 0, e.g., time)
XLABEL Name of ind. variable in ERD file (e.g., time). 1 char*32
FORMAT FORMAT statement for text data. Ex: (4F10.4) 1 char*32
GAIN Gains for channels. (Default = 1.) Usually NCHAN real
required for integer*2 data.
OFFSET Offsets for channels. (default = 0.) Usually NCHAN real
required for integer*2 data.
PROFINST Instrument or model associated with data 1 char*32
RIGIBODY Body or part associated with each channel NCHAN char*32
SPEEDMPH Speed associated with data, in mile/hr. 1 real
TESTID Number used to identify a test. 1 real
XSTART Starting value of ind. variable. At each sample 1 real
i, the X value is: X = (i-1) * STEP + XSTART

Usually, names associated with a keyword are shorter than the space allowed. When
several names are on the same line, the names are padded with blanks as needed so that
following names begin at the correct column positions. For example, the header shown in
Listing B.1 includes names of the units for each channel, as identified with the keyword
UNITSNAM. The name of units for the first channel, ft, has only two characters. Thus, it

Rev: July 27, 1997 178


Appendix B ERD File Format

is followed by six spaces so that the name for the second channel, ft, begins in the correct
column position.

The Data Section


The data section of the ERD file contains nothing but numbers, organized into columns
and rows. The form in which the numbers are stored depends on the value of the
KEYNUM parameter from line 2 of the header (see Table B.1). The total number of
values that will appear in the data section is NCHAN x NSAMP. All of the numbers in
the data portion are stored in the same format, and there can be no missing values.

Text Data
The text format can be used for transporting data in ERD files between different
computers, and sometimes even for reading the same file with different programs on the
same computer. It is also convenient when numbers are typed in manually, or when
numbers are to be edited using a text editor. There are penalties for using text
representations of numbers, however. First and foremost, the computer must work hard to
translate the text numbers into binary form. It takes about 10 times longer to read a text
file than a binary equivalent. A second penalty is that text files take up much more disk
storage than binary files.
When data are stored in text form, the numbers are kept in the same file as the header,
with the numbers beginning immediately after the header. The ERD file in Listing B.2
shows an example of numerical data in text form.
Another option is available when the numbers are always separated by delimiters such as
spaces or commas. This occurs when the numbers are obtained by a commercial analysis
program or when they are "captured" from another computer. The file of numbers can be
made into an ERD file by inserting a 3-line header at the beginning of the file.
If the header of the ERD file does not contain a line with the FORMAT keyword, it is the
same as if the FORMAT is a blank. When this occurs for a text file, the file is assumed to
contain numbers in free form. The only restriction on free format numbers is that adjacent
numbers must be separated. For example, the following line is valid for representing 5
numbers 1.2, 3, 4, -.0201, 14.3: 1.2000 3 4 -2.01E-01 14.3
The following line is not, because the third and fourth numbers touch.
1.2000 3.0000 4.0000-2.01E-01 14.3000
Numbers may be separated by one or more spaces, the tab character, or a comma.

Binary Data
Reading and writing binary data is very efficient, because the computer does not need to
perform any conversions or transformations as the data values are moved between the file
and the computer memory. When a binary format is used, the data portion of an ERD file
is a direct copy of a portion of the computer memory, corresponding to a two-

Rev: July 27, 1997 179


Appendix B ERD File Format

dimensional array having dimensions sized to the number of channels and the number of
samples. As indicated in Table B.1, two forms of binary data are presently supported: 2-
byte integer and 4-byte floating point. 2-byte integer data are typically obtained by data-
acquisition systems. Each integer value is a sampled reading obtained from a digitizer
during a test. For most engineering applications, data are stored (in the computer
memory) in 4-byte floating point format, also known as single-precision floating point.
The 4-byte floating point format is commonly used for data generated by computer. The
maximum efficiency for data processing is usually obtained when the 4-byte floating
point format is used.
The ERD file format is used on a variety of computer systems and for a variety of mass
storage media. On some systems, binary data are stored in discrete records. A computer
program reading such a file needs to know how many bytes each record contains, and
how many records are in the file. Thus, the header contains these two parameters.
Disk files on workstations and desktop computers are not structured: a binary file is
simply a continuous stream of bytes that continues to the end of the file. Thus, technically
correct parameter values for the header could be one record, containing all of the bytes
for the file. Also, there is a certain amount of overhead associated with reading a record.
The time needed to read the data for a file is minimized if a single read operation is
performed for the entire file.
On the other hand, if the file is large, the memory needed to read the entire file in one
chunk may not be available with some programs. A second problem can occur if the true
number of bytes in the file is less than the number as inferred by the parameters nbytes
and nrecs (i.e., the total size of the file should be NBYTES x NRECS). The last "record"
is not read, resulting in a loss of data. If the records are large, this loss could be
significant. These problems are reduced if a value of NBYTES is specified such that it
divides the data into NRECS records of smaller chunks of data.

Rev: July 27, 1997 180


Appendix C — Plotter Files and Keywords
When WinEP is run from CarSimEd, it receives the information that describes a plot or
set of plots from a text file. The passing of information between a CarSimEd data screen
and WinEP is automatic, and the details of the files used to transfer information do not
have to be understood for normal use of CarSimEd.

The RunWinEP Program


The current version of WinEP (4.0) has a minor conflict with the ToolBook program used
to manage the CarSimEd data base. In some Windows installations, WinEP goes into the
background when launched directly from ToolBook. The problem is thought to be due to
an bug in the way ToolBook passes control to a Windows program created with the
Microsoft Studio compiler using the Microsoft Foundation Class (MFC).
As a work around, a separate program called RunWinEP.exe is used to launch WinEP.
As far as ToolBook is concerned, the plotter is RunWinEP. RunWinEP performs just one
function: it launches WinEP and then quits. (The RunWinEP program was created using
different compiler settings and does not have conflicts with ToolBook.)
The RunWinEP program is hard-coded to run the file WinEP.exe from the same folder
that it is in. Therefore, do not change the file name of the copy of WinEP that is used
within CarSimEd.

PLT Batch Control Files


Most plots made in CarSimEd are generated when you click the Plot button on the Runs
screen or the Plot Setup: Batch screen. When this occurs, the CarSimEd library creates a
text file with the extension PLT and sends that file to WinEP. The PLT file is similar to
the PAR files used in CarSimEd to transfer information from the data base to the
simulation solver programs. It is a plain ASCII text file that contains keywords with
parameters that tell WinEP how to make a plot.
Listing C.1 shows an example PLT file and Table C.1 summarizes the format.

Rev: July 27, 1997 — 181 —


Appendix C Plotter Files and Keywords

Listing C.1. Example PLT batch plot file.


FILELIST
FILENAME C:\CARSIMED\RUNS\491.ERD
FILENAME C:\CARSIMED\RUNS\430.erd
PARSFILE C:\CARSIMED\PLOT\422.par
RUN Screen

FILENAME C:\CARSIMED\RUNS\491.ERD
FILENAME C:\CARSIMED\RUNS\430.erd
PARSFILE C:\CARSIMED\PLOT\428.par
RUN Screen

FILENAME C:\CARSIMED\RUNS\491.ERD
FILENAME C:\CARSIMED\RUNS\430.erd
PARSFILE C:\CARSIMED\PLOT\433.par
RUN Screen

FILENAME C:\CARSIMED\RUNS\491.ERD
FILENAME C:\CARSIMED\RUNS\430.erd
PARSFILE C:\CARSIMED\PLOT\439.par
RUN Screen
END

The lines in the PLT file are grouped into plot sets, separated by lines beginning with the
RUN keyword. Lines within a plot set can be arranged in any order.

Table C.1. PLT batch plot file format.


Line Contents Instruction to Program
1 FILELIST Identify this file batch plot file.
. FILENAME filename Open the file named filename
. PARSFILE filename Open the file named filename and read a
single plot template
last line of RUN dest Use the current information to create a plot
plot set and send it to dest
last line read END Stop reading data.
. miscellaneous ignore all lines after END.

Plot Template Files


A plot template is a list of variables to extract from the data files, along with formatting
information. Templates are created automatically by the CarSimEd library Plot Setup:
Single. They are stored in the same PARSFILE format used in CarSimEd to transfer

Rev: July 27, 1997 182


Appendix C Plotter Files and Keywords

information from the data base to the simulation solver programs, and have the extension
PAR. Listing C.2 shows an example PARSFILE with information to define a plot.

Listing C.2. Example plot template file.


PARSFILE
DATASET C:\CARSIMED\RUNS\455.erd Time ,Ay
DATASET C:\CARSIMED\RUNS\455.erd Time ,Ay_2

PARSFILE C:\CARSIMED\PLOT\FORMAT\1.par
PARSFILE C:\CARSIMED\PLOT\transfrm\63.par
PTITLE Ay -- lat. accel. of CG's
END

WinEP processes a template in two possible ways, depending on the circumstances in


which the file is encountered. If WinEP is launched with the PAR file as the input, it
processes the file as a batch control file. Each ERD file named in a DATASET is opened.
This happens in CarSimEd only when you click the Plot button in the Plot Setup: Single
library.
Note: Plotting from the Plot Setup: Single library is a feature that exists
in CarSimEd for purposes of backward compatibility. This method
of making a plot is not recommended, and may be removed from
future versions.
On the other hand, if WinEP encounters the same file while processing a PLT file (first
line = FILELIST), then the files named in the PAR file are ignored. Only the variable
names and formatting information are used. The file acts as a template that is applied to
the files named in the PLT file.

Plot Format Files


The initial appearance of a plot is read from a format file. Format files are plain ASCII
text files which contain keywords with parameters that tell WinEP how to format a plot.
All format files follow the PARSFILE format and have the extension PAR.
To apply the format settings from a file, load the format file using the command Load
Plot Format from the File menu.
To create a format settings file, use the command Save Plot Format from the File menu.
The keywords used in a format file are described in Table C.2.

Rev: July 27, 1997 183


Appendix C Plotter Files and Keywords

Table C.2. Format keywords and descriptions.


Keyword Description
PARSFILE Specifies the start of the format file.
END Specifies the end of the format file.
XLINEAR type X axis type. Valid values are log and linear.
YLINEAR type Y axis type. Valid values are log and linear.
XMAXMIN type Either a keyword specifying that the X axis is auto-
scaled, or two numbers: the minimum and maximum
values for the axis.
YMAXMIN type Either a keyword specifying that the Y axis is auto-
scaled, or two numbers: the minimum and maximum
values for the axis.
SYMBOLS s1,s2, ...,s20 Symbols used for each X-Y data set. There must be a
total of 20 symbols indicated. Symbol key:
0 = No symbol
1 = Square
2 = Triangle
3 = Diamond
4 = Cross X
5 = Plus
6 = Circle
LINESTYL s1,s2,s3,...,s20 Line style for each X-Y data set. There must be a total
of 20 styles indicated. Line style key:
0 = No Line
1 = Solid Line
2 = Dotted Line
3 = Heavy Solid Line
4 = Dash Line
5 = Dash Dot Line
6 = Dash Dot Dot Line
TITLEFONTSIZE ps Size of the title font: ps = font point size.
TITLEFONTNAME name Name of the title font (Ariel, etc.).
TITLEFONTSTYLE style Style of the title font ( Regular, Italic, Bold, Bold
Italic)
LEGENDEFONTSIZE ps Size of the legend font: ps = font point size.
LEGENDFONTNAME name Name of the legend font (Ariel, etc.).
LEGENDFONTSTYLE style Style of the legend font ( Regular, Italic, Bold, Bold
Italic)
LABELFONTSIZE ps Size of the axis label font: ps = font point size.
LABELFONTNAME name Name of the axis label font (Ariel, etc.).
LABELFONTSTYLE style Style of the axis label font ( Regular, Italic, etc.)
TICLABELFONTSIZE ps Size of the axis numbers: ps = font point size.
TICLABELFONTNAME name Name of the axis number font (Ariel, etc.).

Rev: July 27, 1997 184


Appendix C Plotter Files and Keywords

TICLABELFONTSTYLE style Style of the axis number font ( Regular, Italic, etc.)
LEGENDLABEL b1, b2, b3, Names to use in creating the legend. Values are 0 (do
b4, b5, b6 not use) or 1 (use). The sequence is: b1= shortname,
b2 = longname, b3 = genname, b4 = rigidbody name,
b5 = file title, b6 = file name.
LEGENDLOCATION name Location in plot window for legend. Options are
RightOfPlot, OnPlotUpperLeft,
OnPlotUpperRight, OnPlotLowerLeft, and
OnPlotLowerRight
GRID type Type of grid. Options are NoGrid, CourseGrid, and
FineGrid.
COLORS c1,c2,c3,...,c20 Color for each channel. There must be a total of 20
colors indicated. Color key:
0 = Black
1 = Maroon
2 = Red
3 = Green
4 = Bright Green
5 = Dark Blue
6 = Light Gray
7 = Light Blue
8 = Blue
9 = Muddy Yellow
10 = Yellow
11 = Gray
12 = Purple
13 = Teal
14 = Bright Purple

Rev: July 27, 1997 185


Appendix C Plotter Files and Keywords

Preference File Format


The preference file Epprefs.txt is used to set and save information that is retained
between WinEP sessions. This information includes the window positions and paths to
directories. The information can be viewed and edited using the command Preferences
under the Edit menu. Listing C.3 shows an example preferences file.

Listing C.3. Example Preferences file.


ep-prefs
temp-folder-path c:\CARSIMED\plot\tmp
delete-temp-files off
last-datafile-path c:\CARSIMED\plot
last-batchfile-path c:\CARSIMED\plot\tmp
last-formatfile-path c:\CARSIMED\plot\format
startup-window-mode maximize
plot-window-position 7,13,774,582
end

Rev: July 27, 1997 186


Appendix D — Animator Files and Keywords
Most information about objects and how they are viewed is read from an input
PARSFILE. It contains several kinds of information: (1) numerical constants such as
coordinates of points, (2) names of variables in the ERD file that must be read by the
animator, (3) names associated with objects (e.g., black), and (4) pathnames for linked
PARSFILEs with more data. In all cases, white space immediately following the keyword
is skipped, and the remainder of the line is interpreted as the value to be assigned to an
internal variable. Spaces are significant after the first non-blank character following the
keyword.
The PARSFILE is similar to those used by other AutoSim-based programs. It should
begin with a line containing the single keyword, parsfile. It should end with a line
containing the single word end. (However, the end keyword is optional. If not present,
the animator reads to the end of the file.) Blank lines and lines with unknown keywords
are skipped when the file is read. Multiple lines with the same keyword are permitted.
Links to other PARSFILEs are provided with the parsfile keyword:

parsfile pathname
Through the use of the parsfile links, data for each object can be contained in a
separate parsfile. For example, each part data set can be placed in a separate file. The
data set for a reference-frame can be in a file that contains a parsfile link to
each part associated with the frame. The entire animation data can be just a set of
parsfile links to the non-moving parts, followed by the data sets for the moving
reference frames.
At the top level, the animation shape data should be organized by reference frame. When
a shape is introduced, it must be associated with a specific reference frame. After a new
reference frame is introduces, all following inputs are said to fall within the scope of that
reference frame. For example, a shape is in the scope of a reference frame if its
coordinates are defined by the animator as being fixed in that reference frame.
Overall, the animation input data should be organized as follows:

parsfile
<info for fixed frame>
add_reference_frame {name1}
<info for first moving reference frame>
add_reference_frame {name2}
<info for second moving reference frame>
add_reference_frame {name3}
<info for third moving reference frame>
end

Rev: July 27, 1997 — 187 —


Appendix D Animator Files and Keywords

Reference Frame
Listing D.1 shows an example reference_frame description.
Listing D.1. Data file for a vehicle body.
parsfile

; start moving reference frame and give name


add_reference_frame vehicle sprung mass

set_euler_angles yaw_pitch_roll

; Set 6 names of variables in ERD file with XYZ, Roll, Pitch, Yaw
set_x_name Xo
set_y_name Yo
set_z_name Zo
set_pitch_name Pitch
set_roll_name Roll
set_yaw_name Yaw

; links to parts that make up vehicle


parsfile c:\animate\hood.par
parsfile c:\animate\trunk.par
parsfile c:\animate\roof.par
parsfile c:\animate\fenderLF.par
...
end

The keyword add_reference_frame has the dual effect of starting the scope of a
new reference frame and ending the scope of the previous one. Until the first occurrence,
inputs associated with a reference frame will have unpredictable results. It also assigns a
name to the frame. In the example, the name is vehicle sprung mass.
Each reference frame must have a unique name.
The keyword set_euler_angles is used to specify the type of transformation used.
There are two options: yaw_pitch_roll (used for vehicle sprung mass reference
frames) and yaw_roll_pitch (used for rolling wheel reference frames).
The next six keywords in Listing D.1 are used to specify ERD file short names, and
therefore their values are strings of text. White space between the keyword and the short
name is ignored by the animator, and then the next eight characters are taken literally,
including spaces. However, if the line ends before eight characters are read, the animator
pads the short name with spaces until it is eight characters long. The 6 variables from the
ERD file define the position and orientation of the reference frame. All six are optional.
If not specified, the animator uses a value of zero for that variable.
Within the scope of each moving frame, you should specify one or more objects. The
keywords add_wheel and add_part have the effect of starting the scope of a new
object. They also have the effect of ending the scope of the previous object. However,
they do not affect the scope of the current moving reference frame. In the example listing,

Rev: July 27, 1997 188


Appendix D Animator Files and Keywords

descriptions of parts and wheels are contained in other PARSFILEs, identified with
pathnames following the parsfile keyword.

Parts
There are four properties that can be set for a part: a name, a list of XYZ coordinates,
line thickness, and color. Listing D.2 shows an example PARSFILE containing a
complete part description.
Listing D.2. Part data description
parsfile
add_part hood
set_Color blue

set_coordinates
-0.6273 -0.7344 0.8721
-0.5355 -0.4131 0.8874
-0.4896 -0.0000 0.9027
-0.5355 0.4131 0.8874
-0.6273 0.7344 0.8721
0.0000 0.7191 0.7803
0.5202 0.6579 0.6732
0.6426 0.2601 0.6885
0.6579 -0.0000 0.6885
0.6579 -0.2601 0.6885
0.4590 -0.6885 0.7038
0.0000 -0.7191 0.7803
-0.6273 -0.7344 0.8721
end_coordinates

set_scale_x 1
set_scale_y 1
set_scale_z 1

set_offset_x 0
set_offset_y 0
set_offset_z 0

end

It is sometimes convenient to use the same part in more than one reference frame.
Therefore, the name is not necessarily unique. The part name is used only to make the
PARSFILE more readable, and possibly to provide more detailed error messages in
future versions.
The color and line thickness default to values of black and 1, respectively. Therefore, the
commands set-line-thickness and set_color are optional. There is no default
set of coordinates, so the list must be provided. The list of coordinates begins with a line
containing the keyword set_coordinates. Each following line should contain an X,
Y, and Z coordinate, separated by white space, until the list ends with a line containing

Rev: July 27, 1997 189


Appendix D Animator Files and Keywords

the keyword end_coordinates. Within the block defined by the keywords


set_coordinates and end_coordinates, there must not be blank lines,
comments, or other keywords. The coordinates are assumed to apply to the current
reference frame.
The listed coordinates for the part are transformed by the equations:
xnew = xo + sx x
ynew = yo + sy y
znew = zo + sz z
where xo, yo, and zo are offsets and s x, s y, and sz are scale factors specified with the
keywords set_offset_x, set_offset_y, set_offset_z, set_scale_x,
set_scale_y, and set_scale_z. The keywords for scale factors and offsets are
optional. For each part, the scale factors default to values of 1 and the offsets default to 0.
By setting a scale factor to -1, a user can easily mirror a part. The offsets allow a user to
change the location of a part within the reference frame without calculating new values
for the coordinates.

Wheels
For a wheel, there are six properties that can be set: name, radius, thickness, line-
thickness, and color. All properties except the name have a default value, and therefore,
the commands shown below add_wheel are optional. It is likely that the same wheel
definition will be used several times, and therefore, the name is not necessarily unique.
Listing D.3. Wheel data set.
parsfile
add_wheel Black wheel with 0.3 m radius
set_color black
set_num_points 10
set_radius 0.3
set_thickness 0.2
end

The six keywords for setting offsets and scale factors can also be specified for a wheel. A
common application for vehicle animation is to use the set_offset_y keyword to
locate wheels laterally on an axle.

Grid
The animator will draw a grid fixed in the global reference frame. If not specified, then
there is no grid. It is added with the command add_grid, as shown in Listing D.4.

Rev: July 27, 1997 190


Appendix D Animator Files and Keywords

Listing D.4. Grid data set.


parsfile
add_grid
set_min_x 0
set_max_x 1000

set_min_y 0
set_max_y 500

set_interval_x 10
set_interval_y 5
end

Camera View
The viewing of a scene is controlled by the locations of two points: the camera and look
point. Listing D.5 shows how the camera view is set.
Listing D.5. Camera data set.
parsfile

; set the focal length for the camera. It is roughly comparable to


; the lens of a 35-mm camera. For length units of meters, a typical
; value is 0.05 (50 mm). For units of feet, a typical value is 0.2.

set_focal_length 0.05

; Identify the camera reference frame and coordinates.

set_camera_reference_frame global

set_camera_point_x 100
set_camera_point_y 10
set_camera_point_z 1

set_focal_length 0.05

; Set the look point reference frame and coordinates.


set_camera_reference_frame sprung mass

set_look_point_x -2
set_look_point_y 0
set_look_point_z 1

end

Rev: July 27, 1997 191


Appendix E — Model Files and Keywords
This appendix describes the input and output files associated with the simulation
programs in CarSimEd. It also lists example echo files with the keywords recognized by
the standard CarSimEd solver programs.

File Types
Every time a new run is made from the Runs screen, six files are created.
Table E.1. Standard files created when a simulation is run.
Name Location Creator Description
Simfile Programs SGUI Batch control file.
<id>.PAR Runs SGUI List of parameters, read as input by program.
<id>.LPO Runs Program List of parameters, written as output by program.
Also contains initial conditions. Can be used to
repeat a run.
<id>.LPF Runs Program List of parameters and final conditions, written
as output by program. Can be used to continue a
run.
<id>.ERD Runs Program Header for ERD file, needed by plotter and
animator programs.
<id>.BIN Runs Program Numerical values of output variables, stored in
binary form.

One file always has the same name, Simfile, and the other five all have the same base
name— the current ID number displayed in the upper-corner of the Runs screen.

Simfile
Simfile is a batch control file. When a simulation program starts, it looks for the
existence of Simfile. If the file is not found, the program will prompt you for an input
file name. If the file is found, the program obtains all necessary input and output file
names from Simfile. An example Simfile is shown below.

Rev: July 27, 1997 — 192 —


Appendix E Model Files and Keywords

Listing E.1. Example Simfile.


SIMFILE
INPUT C:\CARSIMED\RUNS\471.PAR
ECHO C:\CARSIMED\RUNS\471.LPO
FINAL C:\CARSIMED\RUNS\471.LPF
ERDFILE C:\CARSIMED\RUNS\471.ERD
END

Although it is a convention in CarSimEd to use the same root name for all files, the
individual simulation programs are capable of creating any names allowable under the
file operating system.
Notice that the names in Simfile are full pathnames. The individual files can be located
anywhere on the computer.
Whenever you click the Run button, a new Simfile is created in the same folder as the
simulation program (by convention, this is the folder Programs). If a file with that name
already exists, it is overwritten.

PAR Files
The PAR file lists the input parameters for the simulation program.
When you click the Run button, a new PAR file is created in the folder containing the
Runs library (i.e., the Runs.tbk file). The PAR file contains information from the Runs
screen. As shown in the following example, the file is relatively short.
Listing E.2. Example PAR file.
PARSFILE
parsfile C:\CARSIMED\VEHICLES\COMBOS\8.par
parsfile C:\CARSIMED\INPUT\PATH\28.par
parsfile C:\CARSIMED\INPUT\BRAKING\58.par
parsfile C:\CARSIMED\PLOT\428.par
parsfile C:\CARSIMED\PLOT\433.par
parsfile C:\CARSIMED\PLOT\439.par

parsfile C:\CARSIMED\comp_par\9.par
stopt 12
speed 100

testid 430
title Lane change (3a/2a combo) F
END

Each link seen in the Runs screen is represented with a full pathname to an existing data
file. In the above example, the data from the selected vehicle is contained in the file 8.par,
in the directory C:\CARSIMED\VEHICLES\COMBOS.

Rev: July 27, 1997 193


Appendix E Model Files and Keywords

The keyword PARSFILE is similar to the INCLUDE directive in C or FORTRAN: it


instructs the program to open the specified file and to continue reading from the new file.
When the new file has been scanned to its end, the program continues reading from the
original file.
PARSFILEs are often nested five or six layers deep.
In order to view all of the parameters used in a simulation run, you could trace the input
files the same way as the program: start with the Simfile to find the name of the input
file. Then, open the input file and view any parameter values in it. Open any files
identified with the keyword PARSFILE, and continue the inspection.
A program called Parstree is included in CarSimEd to rapidly inspect the “tree” of
parsfiles. To use it, just click the Tree button in the ribbon bar: . See chapter 4 for an
example Parstree screen display.

LPO and LPF Echo Files


In CarSimEd, the input parameter values are typically spread over many files. When a
simulation program runs, it creates summary files that list each and every parameter value
that is being used in the current simulation.
One of these files is created before the run (LPO), and the other is created at the end of
the run (LPF). Both contain all parameter values used in the simulation. In addition, the
LPO file contains the initial conditions of the state variables in the simulation model. The
information in the LPO file is sufficient to exactly repeat a run, using only the LPO file as
an input.
The other file is nearly identical, except that instead of the initial values, it contains the
final values of the state variables. By modifying the start and stop time parameters, an
existing run can be continued if the LPF file is used as the input file for the simulation
solver program.
An example LPF file is listed later, to show all of the keywords recognized by a
CarSimEd model.

ERD and BIN Files


The main purpose of each simulation program is to predict time histories of variables of
interest. These time histories are stored in a binary data file with the extension BIN. A
companion file, with extension ERD, describes the layout of the BIN file and also
contains labeling information for each variable.
The format of an ERD file is described in Appendix A. Appendix F contains a list of all
of the variables contained in the ERD and BIN files for one of the CarSimEd models.

Rev: July 27, 1997 194


Appendix E Model Files and Keywords

Keywords
The files read by the simulation programs in CarSimEd are scanned for input data.
Parameters are identified by keywords.

Viewing a Complete List of Parameters


The following lists of output variables were created from within the software for each of
the three types of simulation. To create a similar list that includes the parameters used to
make a run, do the following:
1. Go to the Runs library, and find a run involving the vehicle of interest.
2. If the run has not already been made, click the Run button.
3. Click the View All Parameters button to view the file in a text editor.
Alternatively, look at the ID number in the upper-right corner of the Runs screen (e.g.,
430). Then, use a file browser such as Windows Explorer to find the files with the ID
numbers as a name with extensions LPO and LPF (e.g., 430.LPO, 430.LPF). Either
one contains every keyword recognized by the simulation program.

Indexed Keywords
Many of the parameters in the CarSimEd models are applied twice, for the front and rear
axles. For example, the same data screen is used to describe a tire, no matter where it is
located in the vehicle. The location of the tire is specified with the additional keyword
IAXLE.
Parameter values such as an axle mass are written in the PARSFILE with numerical
indices, e.g., MUS(2) indicates the unsprung mass of axle 2. Tabular data are written
with keywords in front of the table to indicate which axle is associated with the table.

Data for the 3D Braking and Handling Model


PARSFILE
* Echo file created by:
* Dynamic simulation of 18-dof carsim educational.
* Version created by AutoSim 2.7.1 (PPC Dev) on July 9,
1998.
* Copyright 1989-1997. The Regents of The University of Michigan.
All rights reserved.

TITLE Braking in a turn

* Input File: C:\CARSIMED\RUNS_3D\625.PAR


* Run was made 17:01 on Jul. 28, 1998
FORMAT BINARY

Rev: July 27, 1997 195


Appendix E Model Files and Keywords

IPRINT 20 , number of time steps between output printing (counts)


STARTT 0 , simulation start time (s)
STEP 0.0025 , simulation time step (s)
STOPT 10 , simulation stop time (s)

* PARAMETER VALUES

CSFY(1) -0.0003 , Front suspension compliance: d(steer)/d(Fy) (deg/N)


CSFY(2) 0 , Rear suspension compliance: d(steer)/d(Fy) (deg/N)
CSMZ(1) 0.004 , Front suspension compliance: d(steer)/d(Mz) (deg/N/m)
CSMZ(2) 0.002 , Rear suspension compliance: d(steer)/d(Mz) (deg/N/m)
CSMZF 0.001 , Steering system compliance: d(steer)/d(Mzl + Mzr)/2) (deg/N/m)
CTFX(1) 0.0004 , Front suspension compliance: d(toe)/d(Fx) (deg/N)
CTFX(2) 0 , Rear suspension compliance: d(toe)/d(Fx) (deg/N)
DS(1) 0.75 , Front damper rate, at shock absorber (N-s/mm)
DS(2) 0.75 , Rear damper rate, at shock absorber (N-s/mm)
HCG 550 , Nominal height of entire vehicle C.G. (mm)
HRC(1) 100 , Nominal height of front axle roll center (mm)
HRC(2) 100 , Nominal height of rear axle roll center (mm)
HWC(1) 285 , Undeflected height of front wheel center (mm)
HWC(2) 285 , Undeflected height of rear wheel center (mm)
IW(1) 1.1 , Spin moment of inertia of front wheel (kg-m2)
IW(2) 1.1 , Spin moment of inertia of rear wheel (kg-m2)
IXX 400 , Moment of inertia of entire vehicle (kg-m2)
IXZ 0 , Product of inertia of entire vehicle (kg-m2)
IYY 2704 , Moment of inertia of entire vehicle (kg-m2)
IZZ 3136 , Moment of inertia of entire vehicle (kg-m2)
KAUX(1) 500 , Front auxiliary stiffness, including anti-sway bar (N-m/deg)
KAUX(2) 350 , Rear auxiliary stiffness, including anti-sway bar (N-m/deg)
KFX(1) 40000 , Front tire longitudinal stiffness (N)
KFX(2) 40000 , Rear tire longitudinal stiffness (N)
KFYCAM(1) -60 , Front tire camber stiffness (N/deg)
KFYCAM(2) -60 , Rear tire camber stiffness (N/deg)
KS(1) 30 , Front suspension spring stiffness (at spring) (N/mm)
KS(2) 20 , Rear suspension spring stiffness (at spring) (N/mm)
KT(1) 200 , Front tire vertical stiffness (N/mm)
KT(2) 200 , Rear tire vertical stiffness (N/mm)
LCGT 1111.76 , CALC - Distance from F axle to total vehicle CG (mm)
LRELAX(1) 600 , Front tire relaxation length (mm)
LRELAX(2) 600 , Rear tire relaxation length (mm)
LTK(1) 1500 , Front axle track width (mm)
LTK(2) 1500 , Rear axle track width (mm)
LWB 2700 , Wheelbase (mm)
MF 1000 , Vehicle mass supported by front axle (2 wheels) (kg)
MR 700 , Vehicle mass supported by rear axle (2 wheels) (kg)
MT 1700 , CALC - Total vehicle mass (kg)

Rev: July 27, 1997 196


Appendix E Model Files and Keywords

MU 0.75 , Tire/ground friction coefficient (-)


MUS(1) 100 , Front axle unsprung mass (2 wheels) (kg)
MUS(2) 80 , Rear axle unsprung mass (2 wheels) (kg)
RAP(1) 0.1 , Wheelbase change per unit jounce at front axle (-)
RAP(2) 0.1 , Wheelbase change per unit jounce at rear axle (-)
RCAM(1) 0 , Wheel camber change per unit jounce at front axle (deg/mm)
RCAM(2) 0 , Wheel camber change per unit jounce at rear axle (deg/mm)
RDAMP(1) 1 , Front ratio of jounce at wheel to damper stroke (-)
RDAMP(2) 1 , Rear ratio of jounce at wheel to damper stroke (-)
RMF 0.588235 , CALC - Ratio: proportion of load on front axle (-)
RMR 0.411765 , CALC - Ratio: proportion of load on rear axle (-)
RMYBK(1) 10 , Front wheel ratio of brake torque to pedal input (N-m/MPa)
RMYBK(2) 4 , Rear wheel ratio of brake torque to pedal input (N-m/MPa)
RMYTH(1) 500 , Front wheel ratio of drive torque to throttle input (-)
RMYTH(2) 0 , Rear wheel ratio of drive torque to throttle input (-)
ROLL_STOP 45 , Roll angle for stopping the simulation (deg)
RSPRNG(1) 1 , Front ratio of suspension jounce to spring compression (-)
RSPRNG(2) 1 , Rear ratio of suspension jounce to spring compression (-)
RSW 16 , Steering gear ratio (-)
RTIME 0.1 , CALC -- Computational efficiency (sec/sim. sec) (-)
RTOE(1) -0.006 , Wheel toe change per unit jounce at front axle (deg/mm)
RTOE(2) 0.006 , Wheel toe change per unit jounce at rear axle (deg/mm)
SPEED 100 , Vehicle forward speed (kph)
SPEED_ON_OFF 1 , Speed control switch (0.0 -> off, 1.0 -> on) (-)
VLOW_ALPHA(1) 15 , Front low-speed threshold for modified tire relaxation equations
(kph)
VLOW_ALPHA(2) 15 , Rear low-speed threshold for modified tire relaxation equations
(kph)
VLOW_KAPPA(1) 8 , Front low-speed threshold for modified longitudinal slip
equations (kph)
VLOW_KAPPA(2) 8 , Rear low-speed threshold for modified longitudinal slip equations
(kph)
VLOW_SPINA(1) 10 , Front low-speed threshold for modified wheel spin equations
(kph)
VLOW_SPINA(2) 10 , Rear low-speed threshold for modified wheel spin equations
(kph)
V_STOP -1 , Low-speed limit for stopping the simulation (kph)

BRKIN_TABLE Brake input vs. time


0, 0 , point in table: (s, MPa)
2, 0 , point in table: (s, MPa)
2.1, 120 , point in table: (s, MPa)
3, 120 , point in table: (s, MPa)
ENDTABLE

Rev: July 27, 1997 197


Appendix E Model Files and Keywords

* Cornering stiffness vs. load (30 pts max)


IAXLE 1 , Table ID number

KFYA_TABLE Cornering stiffness vs. load (30 pts max)


0, 0 , point in table: (N, N/deg)
500, 181 , point in table: (N, N/deg)
1000, 356 , point in table: (N, N/deg)
2000, 673 , point in table: (N, N/deg)
3000, 922 , point in table: (N, N/deg)
4000, 1097 , point in table: (N, N/deg)
6000, 1253 , point in table: (N, N/deg)
8000, 1250 , point in table: (N, N/deg)
ENDTABLE

IAXLE 2 , Table ID number

KFYA_TABLE Cornering stiffness vs. load (30 pts max)


0, 0 , point in table: (N, N/deg)
500, 181 , point in table: (N, N/deg)
1000, 356 , point in table: (N, N/deg)
2000, 673 , point in table: (N, N/deg)
3000, 922 , point in table: (N, N/deg)
4000, 1097 , point in table: (N, N/deg)
6000, 1253 , point in table: (N, N/deg)
8000, 1250 , point in table: (N, N/deg)
ENDTABLE

STEERSW_TABLE Front wheel steer vs. time (500 pts max)


0, 0 , point in table: (s, deg)
0.1, 30 , point in table: (s, deg)
3, 30 , point in table: (s, deg)
ENDTABLE

THROTTLE_TABLE Throttle input vs. time


0, 0 , point in table: (s, -)
2, 0 , point in table: (s, -)
ENDTABLE

* Pneumatic trail vs. load (30 pts max)


IAXLE 1 , Table ID number

TRAIL_TABLE Pneumatic trail vs. load (30 pts max)


0, 12 , point in table: (N, mm)

Rev: July 27, 1997 198


Appendix E Model Files and Keywords

2000, 15 , point in table: (N, mm)


4000, 23 , point in table: (N, mm)
6000, 36 , point in table: (N, mm)
8000, 52 , point in table: (N, mm)
ENDTABLE

IAXLE 2 , Table ID number

TRAIL_TABLE Pneumatic trail vs. load (30 pts max)


0, 12 , point in table: (N, mm)
2000, 15 , point in table: (N, mm)
4000, 23 , point in table: (N, mm)
6000, 36 , point in table: (N, mm)
8000, 52 , point in table: (N, mm)
ENDTABLE

* FINAL CONDITIONS

XO 111.1863861084 , Abs. X trans. of S0 (m)


YO 23.36631584167 , Abs. Y trans. of S0 (m)
ZO -0.002449497347698 , Abs. Z trans. of S0 (m)
YAW 26.98927879333 , Abs. Z rot. of Spp (deg)
PITCH 0.1976066976786 , Y rot. of Sp rel. to Spp (deg)
ROLL 0.009167873300612 , X rot. of S rel. to Sp (deg)
JNC_WLF 0.002427120460197 , Trans. of WLF0 rel. to WLFJ (m)
JNC_WLR -0.006946519948542 , Trans. of WLR0 rel. to WLRJ (m)
JNC_WLR 0.002635290846229 , Trans. of WRF0 rel. to WRFJ (m)
JNC_WRR -0.006754738278687 , Trans. of WRR0 rel. to WRRJ (m)
ROTLF 15671.51367188 , Rotation angle of LF wheel (deg)
ROTLR 14155.76757813 , Rotation angle of LR wheel (deg)
ROTRF 20937.94726563 , Rotation angle of RF wheel (deg)
ROTRR 22139.44921875 , Rotation angle of RR wheel (deg)
TANLF -0.0105296317488 , Slip angle tan of LF tire, with time lag (-)
TANRF 0.01054448261857 , Slip angle tan of RF tire, with time lag (-)
TANLR 0.01741039194167 , Slip angle tan of LR tire, with time lag (-)
TANRR -0.01773825287819 , Slip angle tan of RR tire, with time lag (-)
IVERR 163.4170684814 , Integral of velocity error for speed controller (m)
VXS 0.01235378999263 , Vehicle forward speed (m/s)
VYS 6.227391713765e-005 , Abs. Y trans. speed of SCMC (m/s)
VZS -0.001982608111575 , Abs. Z trans. speed of SCMC (m/s)
AVZ 0.000855882128235 , Abs. Z rot. speed of S (deg/s)
AVY 0.1109158098698 , Abs. Y rot. speed of S (deg/s)
AVX 0.01749600656331 , Abs. X rot. speed of S (deg/s)
JNCR_WLF 0.003160861553624 , Trans. speed of WLF0 rel. to S (m/s)
JNCR_WLR -0.001315405592322 , Trans. speed of WLR0 rel. to S (m/s)

Rev: July 27, 1997 199


Appendix E Model Files and Keywords

JNCR_WLR 0.00333873135969 , Trans. speed of WRF0 rel. to S (m/s)


JNCR_WRR -0.0006755262147635 , Trans. speed of WRR0 rel. to S (m/s)
AVY_LF 0 , Spin rate of LF wheel (rev/s)
AVY_LR 1.401298464325e-045 , Spin rate of LR wheel (rev/s)
AVY_RF 0 , Spin rate of RF wheel (rev/s)
AVY_RR 1.401298464325e-045 , Spin rate of RR wheel (rev/s)

END

Data for the 2D Ride Model


PARSFILE
* Echo file created by:
* Dynamic simulation of 2d simple ride model.
* Version created by AutoSim 2.7.0 (PPC Dev) on April 23,
1998.
* Copyright 1989-1997. The Regents of The University of Michigan.
All rights reserved.

TITLE Big Jump

* Input File: C:\CARSIMED\RUNS_2D\638.PAR


* Run was made 17:11 on Jul. 28, 1998
FORMAT BINARY

IPRINT 1 , number of time steps between output printing (counts)


STARTT 0 , simulation start time (s)
STOPT 5 , simulation stop time (s)
STEP 0.0025 , simulation time step (s)

* PARAMETER VALUES

DS(1) 0.75 , Front damper rate, at shock absorber (N-s/mm)


DS(2) 0.75 , Rear damper rate, at shock absorber (N-s/mm)
HWC(1) 285 , Undeflected height of front wheel center (mm)
HWC(2) 285 , Undeflected height of rear wheel center (mm)
IYY 2704 , Moment of inertia of entire vehicle (kg-m2)
KS(1) 30 , Front suspension spring stiffness (at spring) (N/mm)
KS(2) 20 , Rear suspension spring stiffness (at spring) (N/mm)
KT(1) 200 , Front tire vertical stiffness (N/mm)
KT(2) 200 , Rear tire vertical stiffness (N/mm)
LWB 2700 , Wheelbase (mm)
MF 1000 , Vehicle mass supported by front axle (2 wheels) (kg)
MR 700 , Vehicle mass supported by rear axle (2 wheels) (kg)
MUS(1) 100 , Front axle unsprung mass (2 wheels) (kg)

Rev: July 27, 1997 200


Appendix E Model Files and Keywords

MUS(2) 80 , Rear axle unsprung mass (2 wheels) (kg)


RDAMP(1) 1 , Front ratio of damper stroke to suspension movement (-)
RDAMP(2) 1 , Rear ratio of damper stroke to suspension movement (-)
RSPRNG(1) 1 , Front ratio of spring compression to suspension movement (-)
RSPRNG(2) 1 , Rear ratio of spring compression to suspension movement (-)
RTIME 0 , CALC -- Computational efficiency (sec/sim. sec) (-)
SPEED 80 , Vehicle forward speed (km/h)

ROAD_PROFILE_TABLE Road profile (Z coord. vs. X coord.)


0, 0 , point in table: (m, m)
20, 0 , point in table: (m, m)
50, 0.5 , point in table: (m, m)
51, 0 , point in table: (m, m)
60, 0 , point in table: (m, m)
ENDTABLE

* FINAL CONDITIONS

Q(1) 111.0405750592 , Abs. X trans. of S0 (m)


Q(2) 0.04938072135815 , Abs. Z trans. of S0 (m)
Q(3) 0.1420052143687 , Abs. Y rot. of S (deg)
Q(4) -0.04369037391647 , Z trans. of WLF0 rel. to S0 (m)
Q(5) -0.05087572091459 , Z trans. of WLR0 rel. to WLRJ (m)
U(1) -0.116873276901 , Abs. Z trans. speed of SCMC (m/s)
U(2) 6.306501209526 , Abs. Y rot. speed of S (deg/s)
U(3) 0.2480869375248 , Z trans. speed of WLF0 rel. to S (m/s)
U(4) -0.01332115063223 , Z trans. speed of WLR0 rel. to S (m/s)

END

Data for the 3D Suspension Kinematics Model


PARSFILE
* Echo file created by:
* Kinematic simulation of 5-point suspension.
* Version created by AutoSim 2.58 on February 6, 1997.
* Copyright 1989-1996 The Regents of The University of Michigan. All rights reserved.

TITLE Suspension

* Input File: C:\CARSIMED\RUNS_SUS\641.PAR


* Run was made 17:12 on Jul. 28, 1998
CFORMAT binary

Rev: July 27, 1997 201


Appendix E Model Files and Keywords

IPRINT 1 , number of time steps between output printing (counts)


STARTT 0 , simulation start time (s)
STEP 0.01 , simulation time step (s)
STOPT 1 , simulation stop time (s)

* PARAMETER VALUES

BSY 690 , Y coordinate of point on wheel spin axis (mm)


BSZ -1 , Z coordinate of point on wheel spin axis (mm)
BY 770 , Y coordinate of wheel center (mm)

BZ_TABLE ht of point B vs. time


0, -220 , point in table: (s, mm)
1, 220 , point in table: (s, mm)
ENDTABLE

PX(1) -60 , X coordinate of chassis point (mm)


PX(2) -300 , X coordinate of chassis point (mm)
PX(3) -90 , X coordinate of chassis point (mm)
PX(4) -240 , X coordinate of chassis point (mm)
PX(5) 210 , X coordinate of chassis point (mm)
PY(1) 410 , Y coordinate of chassis point (mm)
PY(2) 430 , Y coordinate of chassis point (mm)
PY(3) 370 , Y coordinate of chassis point (mm)
PY(4) 390 , Y coordinate of chassis point (mm)
PY(5) 380 , Y coordinate of chassis point (mm)
PZ(1) 330 , Z coordinate of chassis point (mm)
PZ(2) 290 , Z coordinate of chassis point (mm)
PZ(3) 0 , Z coordinate of chassis point (mm)
PZ(4) -110 , Z coordinate of chassis point (mm)
PZ(5) -100 , Z coordinate of chassis point (mm)
XX(1) -60 , X coordinate of carrier point (mm)
XX(2) -120 , X coordinate of carrier point (mm)
XX(3) -190 , X coordinate of carrier point (mm)
XX(4) 0 , X coordinate of carrier point (mm)
XX(5) 0 , X coordinate of carrier point (mm)
XY(1) 640 , Y coordinate of carrier point (mm)
XY(2) 640 , Y coordinate of carrier point (mm)
XY(3) 650 , Y coordinate of carrier point (mm)
XY(4) 740 , Y coordinate of carrier point (mm)
XY(5) 740 , Y coordinate of carrier point (mm)
XZ(1) 350 , Z coordinate of carrier point (mm)
XZ(2) 340 , Z coordinate of carrier point (mm)
XZ(3) -20 , Z coordinate of carrier point (mm)
XZ(4) -130 , Z coordinate of carrier point (mm)
XZ(5) -130 , Z coordinate of carrier point (mm)

Rev: July 27, 1997 202


Appendix E Model Files and Keywords

* FINAL CONDITIONS

Q(1) 60.3664 , CALC--Abs. X rot. of R1p (deg)


Q(2) 11.1251 , CALC--Z rot. of R1 rel. to R1p (deg)
Q(3) -50.0164 , CALC--X rot. of WCpp rel. to R1 (deg)
Q(4) 4.45457 , CALC--Y rot. of WCp rel. to WCpp (deg)
Q(5) -9.65248 , CALC--Z rot. of WC rel. to WCp (deg)
Q(6) 59.4151 , CALC--Abs. X rot. of R2p (deg)
Q(7) 11.0191 , CALC--Z rot. of R2 rel. to R2p (deg)
Q(8) 41.6627 , CALC--Abs. X rot. of R3p (deg)
Q(9) 3.55033 , CALC--Z rot. of R3 rel. to R3p (deg)
Q(10) 36.9715 , CALC--Abs. X rot. of R4p (deg)
Q(11) 0.983953 , CALC--Z rot. of R4 rel. to R4p (deg)
Q(12) 36.3276 , CALC--Abs. X rot. of R5p (deg)
Q(13) 0.967013 , CALC--Z rot. of R5 rel. to R5p (deg)

END

Rev: July 27, 1997 203


Appendix F — 3D Vehicle Handling Model
This appendix describes the 3D vehicle model in CarSim and CarSimEd.
An earlier version of this appendix was published as the following paper:
M.W. Sayers and D. Han, “A Generic Multibody Vehicle Model for Simulating Handling
and Braking.” Vehicle System Dynamics, Vol. 25 supplement, 1996, pp. 599-613.

Introduction
It is often said that an automobile is controlled by forces developed in just four small
patches, each the size of a man’s hand, where the tires contact the road. In the 1940’s and
1950’s, researchers such as Lanchester, Olley, Rieckert and Schunk, Rocard, and Segel
developed an understanding of how tire forces are generated and affect the steering and
braking behavior of the vehicle [1]. Segel and other early researchers in the 1950’s
developed linear equations by hand, and solved them using frequency-domain analysis
[2]. Segel’s classic model reduced the vehicle behavior to its essence, with a minimal
number of parameters and variables and just three degrees of freedom (DOF).
From the 1960’s to the early 1980’s, the proliferation and improvement of analog and
then digital computers led to a new phase of vehicle modeling, in which many
automotive simulation programs were developed and refined by research engineers. The
new computer models were more complex, typically with 10 to 20 DOF [3, 4]. The
additional complexity accounted for nonlinearity and more detailed suspension
kinematics. Equations were still formulated by hand, and coded by hand in computer
language for numerical solution in specialized programs. The more detailed models
involved many years of development, not counting the efforts spent in validation and
verification.
Starting with the mid-1980’s, engineers started using newly available multibody
simulation programs to describe the model geometrically, “assembling” the system model
from components [5, 6]. Modelers no longer had to derive equations, and therefore, the
efforts and potential errors associated with deriving equations and coding them were
nearly eliminated.
Automotive manufacturers and many others now use multibody programs to perform
simulations of automotive handling and braking behavior [7]. The tendency has been to
include nearly all moving parts in the suspensions and steering systems. Inputs include
coordinates of most joints between parts, and mass properties of individual parts. In
contrast, the earlier custom programs were more systems-oriented, involving generalized
movements of wheels relative to the body, or, even more simply, movements of the body
relative to the ground. The advantage of the detailed multibody programs for
development engineers is that they can fine-tune designs by modifying component-level

— 204 —
Appendix F 3D Vehicle Handling Model

details. However, the detailed models also have some disadvantages. Engineers who do
not work for car manufacturers may not have access to the geometric design data. Even
when the full set of input parameters is assembled, the programs run slower than custom
programs that are less complex. (With some multibody programs, the run-time
performance is much slower even for comparable models. For models with a complexity
similar to the one presented in this appendix, a numerical multibody programs might be
50 times slower than a hand-written program specialized for a specific vehicle dynamics
model.)
The creation of CarSimEd was motivated in part by the thought that something has been
lost during the evolution from the older models to the newer. The insight and expertise
that underlay the old hand-written models are often lacking in modern multibody models.
Although the modern models are often highly detailed, their accuracy in predicting
vehicle response to steering and braking inputs is sometimes not as good as that obtained
40 years ago. This appendix is intended to convey some of the ideas and concepts used in
earlier vehicle models for applications using modern multibody programs.
The model that will be described was implemented using the AutoSim multibody code
generator [7, 8]. AutoSim generates equations symbolically, performs coding
optimizations, and generates a custom simulation program. The simulation program
obtained by AutoSim has run-time performance comparable with (and usually better
than) that of a hand-coded program based on the same model.

Nomenclature
Symbols and unconventional functions that are used in this appendix are listed below.
Subscripts for wheels and suspensions are ommited when an equation applies to a single
wheel. Vectors are shown in bold face characters.
The global inertial frame is denoted by N (for Newtonian frame) and has unit vectors nX,
nY and nZ. The convention of ISO 8855 is followed, in which nZ is “up” (opposite to the
direction of gravity) [2].
The terms nominal and nominal configuration refer to a state of the multibody system in
which all position state variables are zero.
The abbreviation DOF refers to the term degree of freedom or degrees of freedom,
depending on the context.
When a body is added to the multibody system, its allowable motion is defined relative to
a body already in the model. (N is considered a body for this purpose.) The new body is
said to be a child of the previously existing body, and the previously existing body is said
to be the parent of the new body.

Symbols
α dynamic lateral slip angle with delay due to relaxation length (rad)
CTC center of tire contact (point)

Rev: July 27, 1997 205


Appendix F 3D Vehicle Handling Model

δ steering of wheel relative to body (rad)


δs steering due to steering system input from the driver (rad)
δsw steering wheel angle (rad)
δk steering due to suspension kinematics (rad)
δc steering due to compliance in the suspension and steering system (rad)
∆ suspension compression (also called jounce) (m)
Fs compressive spring force, at spring (N)
Fx, Fy, Fz components of tire force acting at point CTC (N)
φk roll of wheel relative to body due to suspension kinematics (rad)
φc roll of wheel relative to body due to compliance (rad)
γ inclination (roll) of wheel relative to ground (rad)
Hrc nominal roll center height (m)
Hwc nominal height of wheel center (m)
Is moment of inertia of wheel about spin axis (kg-m2)
Ks suspension spring rate (at spring) (N/m)
Kt tire vertical spring rate (N/m)
κ longitudinal slip ratio for a wheel (–)
Ltk nominal track width (m)
Lwb nominal wheelbase (m)
Lrelax tire relaxation length (m)
Mby, Mdy moment about wheel spin axis due to brake or driveline (N-m)
Mf, Mr mass of vehicle supported by front or rear tires (kg)
Mz tire aligning moment (N-m)
θ pitch of the sprung mass (rad)
rz unit-vector perpendicular to road surface at tire contact point
R instant rolling radius of tire (m)
Rsg ratio of steering wheel angle divided by average road-wheel steer (–)
Rp anti-pitch coefficient: ratio of longitudinal to vertical movement (–)
Rd, Rs ratio of damper or spring compression to suspension compression (–)
sx, sy, sz unit-vectors aligned with X, Y, Z axes of vehicle body
tx, ty unit-vectors aligned with X, Y axes of tire/road contact
tx', ty' tire/road unit-vectors without effect of steer
τ auxiliary state variable: tangent of delayed lateral slip angle (–)
wy, wz unit-vectors aligned with Y, Z axes in wheel plane
Wo origin of wheel coordinate system, nominally at point CTC (point)
Wc wheel center (point)
ωs auxiliary state variable: wheel spin rate (rad/sec)
vx, vy scalar components of velocity vector of Wo (m/s)
Xc, Yc, Zc coordinates of CTC in wheel body coordinate system (m)

Multibody Functions
dir(r) direction of vector r: r/|r|
pos(P1, P2) position vector going from point P2 to point P1

Rev: July 27, 1997 206


Appendix F 3D Vehicle Handling Model

vel(P) absolute velocity vector of point P

Overview of Factors Affecting Vehicle Behavior


Figure 1 shows a free-body diagram of a four-wheeled vehicle as viewed from the top.
There are just three governing equations: the sum of the tire shear forces must equal the
vehicle mass times its acceleration in both the vehicle X and Y directions, and the
moment of those forces about the vehicle mass center must be equal to the product of the
yaw acceleration and the vehicle yaw moment of inertia. Thus, the main objective of the
vehicle model is to accurately predict tire shear forces.

f2 f1 dV
x • ∑f i = x • M dt
dV
dV
r2 dt
r1 y • ∑f i = y • M dt

y dω
f4
r4 r3 f3 dt z • ∑ ri × f i = z • I zz
mass dt
center
x
Figure 1. Primary factors influencing vehicle system motions.

A vehicle is also subject to aligning moments in the tire contact patches. The aligning
moment has a negligible direct effect on the vehicle yaw, but, due to steering compliance,
it can be a significant factor in determining the all-important shear forces. Another
behavior that influences the vehicle response involves the rotary motion of the car body
in roll and pitch. Mechanical energy is transfered as the vehicle pitches and rolls, and
these motions contribute to the vehicle transient response.
Besides the tire/road interactions, the only forces and moments acting on the vehicle are
due to aerodynamic effects. They have a secondary influence, but are relatively easy to
add to multibody models.

Rigid body kinematics


The model is based on a rigid body that represents the main body of the vehicle and has
six DOF. An additional four bodies are added, each with a single translational DOF, to
account for the vertical movements allowed by the suspensions. The wheel bodies are
positioned such that the origins of their local coordinate systems are nominally at the
locations of the centers of tire contact (see Figure 2). Longitudinally, the origins of the
front and rear wheels are separated by the vehicle wheelbase, Lwb. Laterally, they are
separated by the vehicle front and rear track widths, Ltk,f and Ltk,r .

Rev: July 27, 1997 207


Appendix F 3D Vehicle Handling Model

WCLR

WCRR W0LR

z WCLF
W0RR y

x WCRF W0LF

W0RF
z
Direction of suspension travel
y
Lwb Ltk
z
Hwc,r x Hwc,f Hrc

Side view Front view


Figure 2. Locations and movements of wheels.

Ignoring, for the moment, the influence of compliances in the suspension and steering
system linkages, each wheel center of a real vehicle follows a trajectory through 3D
space, relative to the car body, as the suspension moves up and down. Due to the
kinematics of the suspension, the trajectory is usually not purely vertical. For most
vehicles, the wheels move out laterally as the suspensions are compressed, such that track
width increases with suspension compression. The wheels also move out longitudinally,
such that wheelbase increases with suspension compression.
The direction of the wheel trajectory (relative to the main body) determines how tire
shear forces in the ground plane are transmitted to the vehicle body through reaction
forces in the suspension linkages. In hand-written equations, roll and pitch moments due
to suspension reaction forces have been written with coefficients with names such as anti-
roll, anti-pitch, anti-dive, anti-squat, and jacking [3,4].
The multibody model accounts for the interaction between tire shear forces and roll and
pitch moments so long as the movement is constrained to follow the proper path. A
simple approximation is to assume the movement is in a straight line, as shown in Figure
2. Using an axis system based in the vehicle sprung mass (s x, sy, sz), the directions of the
movements of the four wheels are:
2Hrc,f 2H
left-front: dir(s z + Ltk,f sy + R p,f sx)right-front: dir(s z – L rc,f sy + Rp,f sx)
tk,f

Rev: July 27, 1997 208


Appendix F 3D Vehicle Handling Model

2H 2H
left-rear: dir(sz + L rc,r sy – Rp,r sx)right-rear: dir(s z – L rc,r sy – Rp,r sx) (1)
tk,r tk,r

where secondary subscripts f and r indicate parameters for the front and rear.
In the basic suspension analyses, the roll kinematics are analyzed to define a point called
a roll center [9]. For compatibility with this convention, the inclination of the wheel
movement in the roll direction is defined by the ratio of the roll center height to the half-
track distance. For pitch, a single coefficient (Rp) is used.

Masses and inertias


The user of a vehicle model must provide mass and inertia parameters for the bodies in
the model. For the wheel bodies, one may set the moments of inertia to zero, and locate
the mass centers at the wheel centers, nominally a height Hwc above the ground. The
mass of each wheel body should be set to that portion of vehicle mass supported by the
tire that is considered to move with the wheel. This value is commonly called the
unsprung mass, and usually includes some of the mass of the suspension elements.
The mass of the main body, called the sprung mass, must be set to the mass of the entire
vehicle minus the unsprung masses. The inertia properties are also required, including the
XZ product of inertia. (Due to lateral symmetry, the XY and YZ products are usually
zero.) It is much easier to measure inertia properties for the entire vehicle than for the
body alone. The multibody program can be made to calculate the mass and inertia
properties of the sprung mass from measurements made for the entire vehicle. This is
done by adding four more bodies and giving them negative masses. These four bodies
should be placed at the same locations as the wheel body mass centers. However, their
masses should be set to the negative values of the unsprung masses, and they should be
fully constrained with respect to the main vehicle body (i.e., zero DOF). In accounting for
the full constraint of these four bodies, AutoSim will in effect subtract the masses and
inertia properties, bringing the mass and inertias of the main body down to those of the
sprung mass alone.

Suspension Force Effects


Movement of a wheel along the line of motion allowed by the suspension kinematics is
affected by suspension springs, dampers, bump stops, and anti-sway bars. In each case,
some of the force generated by a component (e.g., a spring) acts to move the wheel,
affecting the transfer of mechanical energy to and from the sprung mass. In addition,
some of the force is reacted at other points or in other directions that do not move and
therefore cannot affect the transfer of mechanical energy. For example, consider the
spring shown in the suspension of Figure 3. If the wheel moves vertically an amount of ∆
relative to the body, the spring is compressed by a lesser amount, say, for example, R s ∆,

Rev: July 27, 1997 209


Appendix F 3D Vehicle Handling Model

where Rs is a coefficient that defines the mechanical advantage of the spring relative to
the wheel. The spring exerts a force Fs on the lower control arm. Some of the force is
reacted at the connection to the body, and some is reacted at the wheel by the vertical tire
force, as shown in the figure. Conservation of work requires that the change in force at
the wheel center multiplied by its movement must be equal to the change in spring force,
multiplied by its change in compression. Thus, the effect of the spring at the wheel is Rs
Fs. A similar analysis can be made for the damper, using a different ratio Rd.

spring force = Fs

displacement at
spring = Rs ∆

non-working
reacton force displacement
at wheel = ∆

working force at
wheel = Rs Fs
Figure 3. Mechanical advantage of suspension component.

This principle of mechanical advantage is used to include components such as springs


and dampers in the vehicle dynamics model without directly modeling their points of
attachment or the complex suspension linkage geometry. The effect of a suspension
component at the wheel is calculated in three steps:
1. multiply the suspension compression (measured at the wheel) by the kinematic
ratio to determine the compression at the component,
2. apply a known functional relationship (e.g., spring force vs. compression) to
determine the force generated by the component, and
3. multiply the component force by the kinematic ratio to obtain an effective vertical
force at the wheel.
For a linear spring, the three steps can be combined to define an effective spring rate at
the wheel: Ks Rs2. For nonlinear relations, it is necessary to perform all three steps. For
example, consider the addition of the suspension spring for the left-front wheel. In

Rev: July 27, 1997 210


Appendix F 3D Vehicle Handling Model

AutoSim, the force is added with a command called add-line-force, with arguments
shown in Table 1 for the spring force.
A similar treatment is made for the shock absorber, using the derivative of the suspension
displacement, the damper mechanical advantage Rd, and a functional relation between
damper force and stroke rate. In general, different geometric ratios are needed for the
suspension spring, the damper, and the bump stop. Different ratios are also used for front
and rear, but the same ratios are used between left and right wheel on the same axle.
Table 1. Adding a spring force to the model.
Property Value Description
Point 1 P1: Point on sprung mass Point on which force acts
Point 2 P2: Point on wheel Point in body taking the reaction force
Direction sz Direction of force vector
Magnitude Rs Fs(Rs sz • pos(P1, P2)) Magnitude of force vector

The effect of the anti-sway bar is modeled with a linear spring between the two wheels
linked by the bar. The two points in the add-line-force command are on the two
wheels, the direction of the force is sz, and the magnitude is a spring rate multiplied by
the vertical movement difference between the two points.

Tires
The primary challenge in developing a valid vehicle simulation model is to accurately
predict the tire forces. Although the multibody program handles the kinematics and
dynamics of the rigid bodies in the system, it is usually necessary to use an external
(user-defined) routine to compute tires forces and moments based on kinematic inputs.
Many tire models (algorithms) exist for calculating tire forces [10], and most require the
same inputs: vertical load (F z), longitudinal slip (κ), lateral slip (α), and inclination angle
(γ). (Some models also require surface friction and wheel speed.) As outputs, they
calculate longitudinal force (Fx), lateral force (Fy), and aligning moment (Mz).
To properly determine the tire forces and factor them into the vehicle model, it is
necessary to (1) define a point where the tire forces act on the multibody model; (2)
determine an expression for the vertical tire force F z that is required as an input for the
tire model; (3) establish the vector directions for the X and Y components of the tire
shear force relative to the vehicle model; (4) determine expressions for the kinematical
inputs required by most tire models (longitudinal slip, lateral slip, and inclination angle);
and (5) use a tire model to determine the magnitudes of F x, Fy, and Mz.

Tire Relaxation Length


Tires develop shear forces in response to deformation of the tire structure. The forces do
not develop instantly, but build as the tire rolls. Researchers have found that the dynamic

Rev: July 27, 1997 211


Appendix F 3D Vehicle Handling Model

delay of the forces is primarily linked to the spatial distance covered by the tire [11]. The
earliest approximation of this behavior was to treat the delay as a first-order lag. The
characteristic parameter is called relaxation length, and is similar to a time constant,
except that it has units of length rather than time. The response to steering is delayed
sufficiently that the lag interacts with the dynamics of the vehicle system at low speed
[12]. The lag for longitudinal slip is usually neglected.
Two methods are commonly used for including the tire lag in a vehicle model: (1) use a
tire model with the dynamics built in, or (2) use a static (steady state) tire model with a
separate filter to account for the lag. The second approach is preferable because it offers
two practical advantages. First, it allows us to use any static tire model from the
literature, independently of the method used to introduce lag. Second, it simplifies the
calculation of the kinematical variables used as inputs to the tire model. Thus, we will
introduce lag into the slip angle, such that the instant response calculated for the lagged
slip angle yields the lagged side force and aligning moment.

Center of Tire Contact


The point of application for the three components of the tire force is called the center of
tire contact (CTC). As the wheel moves up and down, point CTC remains in the ground
plane (see Figure 4). CTC lies on the (negative) Z axis of a wheel coordinate system
whose Y axis is the wheel’s spin axis and whose origin is the wheel center. The distance
between the wheel center Wc and CTC is the instant radius R:
r • pos(W )
R= zw •r c (2)
z z
where the function pos(Wc) defines a position vector going from any point fixed in the
ground plane to the wheel center.

wz
γ
WC
rz
R W0
CTC vy

VC vx
tz = rz
Fx Fy

Mz tx ty
Fz

Figure 4. Tire points and axes.

Rev: July 27, 1997 212


Appendix F 3D Vehicle Handling Model

Due to the simplified suspension kinematics described earlier, the rigid bodies
representing the wheels do not steer or incline relative to the main vehicle body. Thus,
they have the same roll and pitch angles relative to the ground as the main body. The
coordinate system origin is such that the coordinates of point CTC are nominally zero.
However, for an arbitrary vehicle configuration, the coordinates are:
Xc = θ R Yc = 0 Zc = Hwc – R (3)

Vertical Tire Force


The vertical tire load for a wheel is defined with the expression
M g
Fz = max(0, 2i – Kt Zc) (4)

where the index in M i indicates either the mass supported by the front or rear tires. This
definition of F z establishes the force to be the equilibrium value Mi g/2 when the vehicle
is in the nominal configuration. The use of the max function prevents the magnitude of
the force from going below zero.

Tire Axes
The tire X and Y axes, lie in the plane of the road and are parallel to unit-vectors tx and ty
shown in Figure 4. In our multibody model, we do not have the true wheel orientation
because of the simplified suspension kinematics. Thus, the tire X and Y axis directions
are defined as:
tx' = s y × rz ty' = rz × t x' (5)

tx = cos(δ) tx' + sin(δ) ty' ty = cos(δ) ty' – sin(δ) tx' (6)

where δ, the steer angle of the wheel plane relative to the vehicle body, is defined as:

δ = δs + δ k + δ c (7)

The first term, δs, accounts for the input of the driver and is typically defined with an
equation such as the following:
δ
δs = str(Rsw ) (8)
sg
where str is a table-lookup function that calculates steering angle as a nonlinear function
of geared-down steering input. Different functions would typically be used for the left
and right sides, to account for Ackerman geometry.
Note: The CarSimEd version of this model uses a simple gear ratio to
determine steer of the road wheel due to driver input:
δ
δs = Rsw
sg

The second term in eq. 7, δk, sometimes called bump steer, accounts for steer due to
suspension kinematics. It would typically be calculated using a nonlinear table-function

Rev: July 27, 1997 213


Appendix F 3D Vehicle Handling Model

relating toe to suspension compression. Toe is defined as positive with the wheels
steering inward. Therefore, δκ equals toe for the wheels on the right-hand side of the
vehicle, and δk equals negative toe on the left side. The third term in eq. 7, δc, accounts
for compliance in the suspension and steering system. It is typically calculated using
measured linear coefficients that define the amount of steer caused by unit changes in Fx,
Fy, and Mz.
Note: In CarSimEd, toe and compliance effects are handled with linear
coefficients. Table lookups are used in the more comprehensive
commercial CarSim models.

Kinematical Inputs to Tire Model


The slip quantities required by a tire model are based on the velocity of point CTC. In
nearly all vehicle dynamics models that have been developed by hand (without multibody
programs), approximations have been used because the exact expressions for the CTC
velocity can be complicated. With a multibody program such as AutoSim, the exact
expressions can be obtained with little effort on the part of the modeler. However, the
complexity of the exact equations results in longer equations, and slower simulation
speed. Most of the complexity comes from terms that are infinitesimal and negligible.
The wheel bodies are defined such that the origin of the wheel coordinate system (Wo)
nominally coincides with CTC. To obtain shorter run times, the point W o, fixed in the
wheel body, is used to define tire velocity rather than the point CTC. The local
components of speed are:
vx = vel(Wo) • tx vy = vel(Wo) • ty (9)
Longitudinal slip (κ) is defined for each wheel by the equation:

ω R – vx
κ= s v (10)
x

Under this definition of longitudinal slip, κ goes from –1 at full braking lock-up, to zero
for the free-rolling condition, to +∞ for spinning the wheel when the vehicle is at rest or
moving sideways (vx = 0). To avoid numerical problems, κ can be calculated with a
hand-written function that checks for conditions of vx approaching zero.
The wheel spin, ωs, is an auxiliary state variable whose derivative is defined as:

ωs
Mdy –Mby(pin) – R Fx
dωs |ωs|
dt = (11)
Is
(In AutoSim, the commands add-state-variable and add-equation are used to
insert auxiliary equations such as eq. 11.) The sign of ωs is used to ensure that the
braking torque (Mby) always opposes the wheel spin. The brake torque itself is a table-
lookup function (Mby) of a variable, pin, that is the input from the brake pedal. To avoid a

Rev: July 27, 1997 214


Appendix F 3D Vehicle Handling Model

divide-by-zero error, the computer function sign is actually used in the model, rather
than the ratio of ωs/|ωs|.

Dynamic lateral slip is defined as the arctangent of an auxiliary state variable, τ.

α = tan–1(τ) (12)
Recall that tire relaxation length adds a lag to the lateral slip angle. A method described
by Bernard [13] is used, in which a state variable is added for each wheel and defined
with a first-order differential equation:
dτ |vx| vy 1
dt = Lrelax [ |vx| – τ ] = Lrelax [vy – |vx| τ] (13)

The absolute value of vx is used in eq. 13 to maintain continuity in case the vehicle spins
out and vx assumes a negative value.
Inclination of the wheel plane relative to the ground is the sum of the roll (relative to the
ground at point CTC) and the roll of the wheel relative to the vehicle:
γ = sin–1(sy • rz) + φk + φc (14)

The kinematical term, φk, is typically a table-lookup function of camber vs. suspension
compression for each axle. Camber is defined as positive when the wheels lean out at the
top. Thus, for wheels on the right-hand side, φk equals camber, and on the left side, φk
equals negative camber. The compliance term, φc, can usually be neglected. If not, it is
defined by a linear compliance coefficient that relates change in wheel inclination to a
unit change in Fy.

Static Tire Model


A relatively simple tire model is used in CarSimEd to predict the linear cornering
behavior and the nonlinear limit behavior. Fxo, F yo, and M zo are values of longitudinal
force, lateral force, and aligning moment that would be obtained in the absense of friction
limits. They are obtained first, and then the values are reduced to account for frictional
limits using a normalization method described by Radt [15] and summarized in the
equations below.
Longitudinal force is mainly determined by the brake torque and rolling radius for sub-
limit behavior. The tire seeks a spin in which the torque balance of equation (11) is
maintained. The tire model mainly determines how much longitudinal slip occurs to
generate the longitudinal force. For the purpose of producing a longitudinal slip that is
within an order of magnitude of the correct one, a simple equation for longitudinal tire
force is used:
Fxo = Kfx κ (15)
Lateral force is determined for a the combined effect of camber and lateral slip:
Fyo = –Kfy(Fz) α + Kfγ γ (16)

Rev: July 27, 1997 215


Appendix F 3D Vehicle Handling Model

where Kfy is a nonlinear table-lookup that defines cornering stiffness as a function of


load. Aligning moment is defined as the product of lateral force and a moment arm called
pneumatic trail:
Mzo = Fyo • L trail(Fz) (17)
where Ltrail is a nonlinear table-lookup that defines trail as a function of load.
To account for friction limits, the following terms are defined. First, lateral slip and
inclination angle are combined:
K Fyγ
Teff = tan(α − γ) (18)
KFy

Next, longitudinal and lateral slip are combined:

(K ) + (K κ )
2 2
T
Fy eff Fx
K= (19)
µFZ

where µ is the tire/road friction coefficient.


A normalized force is defined to provide a shape for the transition from linear to sliding.
K K K3
F=K– + (20)
3 27

Plot of equation 20.

A different shape function is used to define normalized aligning moment.


K 3 K K3
M =K – KK + – (21)
3 27

Rev: July 27, 1997 216


Appendix F 3D Vehicle Handling Model

Plot of equation 21.

A coefficient “ν” is defined to transition between linear and full sliding:


If (K > 2π) then
ν=1
else
1 K K K
ν = 2 (1 + KFy – (1 – KFy ) cos( 2 ) (22)
Fx Fx

A force scaling factor is defined:


µF Z
F0 = (23)
κ 2 + (νTeff )
2

The scaled forces and moment are:


Fx = κ F F0

Fy = –ν Teff F F0

MZ = ν Ltrail Teff M F0 (24)

Sequence of Calculations
The vehicle simulation is run by numerically integrating a set of ordinary differential
equations. The model described above has 18 degrees of freedom (DOF): ten for the five
rigid bodies (six for the main body, and one for each wheel), and the other eight for the
auxiliary state varialbes ωs and τ that are added for each wheel. At the beginning of each
time step, the values of all of the state variables are known, including the ωs and τ
variables. The tire factors for the four wheels are then calculated in the following
sequence:
1. Compute terms that depend only on the state variables: Fz, γ, and κ. If camber
compliance is included, use the tire forces from the previous time step to compute
γ.
2. Compute Fx, Fy, and Mz with a static tire model.

Rev: July 27, 1997 217


Appendix F 3D Vehicle Handling Model

3. Compute wheel steer, including the effect of steer compliances coupled with tire
actions Fx, Fy, and Mz.
4. Determine the directions of the tire X and Y axes.
5. Calculate terms that depend on knowledge of the directions of the tire axes:
a. Apply forces Fx and Fy to the multibody model at the point CTC.
b. Calculate derivatives of ωs and τ.

Comparison Using Benchmark Model


The multibody model described in this appendix was compared with a full multibody
model for the Iltis Bombardier benchmark vehicle description contained in a special issue
of Vehicle System Dynamics [7]. The Iltis model has the equivalent of short-long arm
(SLA) suspensions at all four wheels, with a tie rod to control steer angle. Neglecting
wheel spin, the system has 18 moving parts, and ten dynamical DOF. There are three
springs for each wheel: a leaf spring with a linear spring rate, a nonlinear spring within
the shock absorber, and a bump stop. The damping is nonlinear. The tire forces and
moments are calculated with the Calspan tire model. As part of the preparation of the
special issue, the full Iltis equations of motion were generated by using AutoSim. Table 2
compares the 18-DOF model and the full multibody model in terms of model complexity
and simulation speed.
Note: The full CarSim model was used for these comparisons. The
differences between CarSim and CarSimEd are minor for the range
of motions covered.
Table 3 compares the eigenvalues for five models. The mode descriptions and the
Medyna and Simpack eigenvalues are taken from the published benchmark description
[7]. The values in the AutoSim column are from the full Iltis model, and the other two
columns are for the 18-DOF model, with and without the effect of tire relaxation length
(Lrelax ≈ 0, Lrelax = 0.6 m). The eigenvalues were calculated for the case of the vehicle in
equilibrium, running at 20 m/s. Although slight differences can be seen due to tire
relaxation, the differences are small at this speed. (The effect becomes more significant at
lower speeds.)

Rev: July 27, 1997 218


Appendix F 3D Vehicle Handling Model

Table 2. Comparison of model complexity.


Full 18-DOF
Number of moving bodies handled by AutoSim 18 5
Number of auxiliary state variables 0 8
Total number of DOF 10 18
Suspension kinematics Full Simple
Mechanical advantage of springs and dampers Exact Linear ratio
Change in steer, camber due to suspension compression Exact Table
Tire model Calspan Calspan
Tire relaxation delay, wheel spin dynamics No Yes
Nonlinear spring, damper Exact Table
Suspension/steering compliance None Linear
Number of multiplies and divides 6847 1081
Number of adds and subtracts 4951 1033
Number of function calls 115 80
Time step for normal handling 0.005 0.005
Ratio: Computation time / Simulated time (on HP 715) 2.12 0.25

Table 3. Comparison of Eigenvalues for five versions of the Iltis benchmark.


Mode Medyna Simpack AutoSim 18-DOF1 18-DOF2
veh. long. ±0.0003 -0.000±0.000i 0 0 0
veh. lateral +0.003 +0.000 0 0 0
veh. lateral 0 -0.000 0 0 0
cabin roll –17.7 –16.8 –17.5 –17.9 –14.6
cabin roll –40.4 –41.0 –37.6 –33.9 –28.0
lat., roll –3.61 ± 4.40i –3.95 ± 4.10i –3.72 ± 4.15i –3.62 ± 4.31i –3.13 ± 4.74i
pitch –4.00 ± 9.30i –3.96 ± 9.47i –3.98 ± 9.50i –4.01 ± 9.15i –4.10 ± 9.22i
bounce –4.86 ± 11.1i –4.92 ± 11.1i –4.94 ± 11.1i –4.83 ± 11.2i –4.79 ± 11.2i
hop/roll –27.0 ± 73.4i –26.8 ± 73.4i –28.8 ± 73.1i -27.0 ± 73.8i –25.7 ± 70.9i
hop/bounce –28.8 ±82.4i –29.9 ± 81.9i –30.2 ± 82.0i –28.4 ± 80.5i –27.8 ± 81.6i
hop/pitch –30.8 ± 82.3i –29.8 ± 82.8i –30.1 ± 82.9i –28.6 ± 81.6i –27.8 ± 82.5i
hop/yaw –29.3 ± 85.9i –29.4 ± 85.9i –29.7 ± 86.1i -28.5 ± 84.5i –27.8 ± 85.1i
relax ≈ 0; 18-DOF model with Lrelax = 0.6 m
1 18-DOF model with L 2
3 numbers whose magnitude are > 0 and < 0.0005 are shown as ±0.000

Figure 5 compares time histories for a step-steer input at three vehicle speeds, as
described in the benchmark. The runs start at -3 seconds with the vehicle in its nominal
configuration. The first plot shows how both models bounce a little as they go into static
equilibrium. The other three plots cover the range of 0 to 5 seconds. The lateral
acceleration and yaw rate plots show close agreement between the detailed and 18-DOF
models, but the plot of roll angles shows a difference of 0.1° at the steady state. This is
perhaps due to the difference between the full kinematical representation of the
suspension in the detailed model and the simplified one in the 18-DOF model.

Rev: July 27, 1997 219


Appendix F 3D Vehicle Handling Model

Suspension Jounce - m Vehicle yaw rate - deg/s


-2
1.4x10 0

-2
1.2x10 -1

-2 Front
10 -2

-3
8x10 -3
10 m/s
-3
6x10 -4
Rear
-3
20 m/s
4x10 -5

-3
2x10 -6 30 m/s

0 -7
-3 -2 -1 0 0 1 2 3 4 5
Time - sec Time - sec
Vehicle lateral acceleration - g's Roll - deg
0 0

-.05 10 m/s 10 m/s


-.5
-.1

-.15 20 m/s -1 20 m/s

-.2
-1.5 30 m/s 18 DOF
-.25 30 m/s 18 DOF
Detailed Detailed
-.3 -2
0 1 2 3 4 5 0 1 2 3 4 5
Time - sec Time - sec

Figure 5. Time histories from two models of Iltis.

Closure
An 18-DOF model was presented that is intended to capture the essential braking and
handling behavior of an automobile with independent suspensions on a flat surface. It
was described for the engineer who has a multibody program and wants a working
vehicle dynamics model. Unlike many other vehicle multibody models, this has a simple
generic representation of suspension kinematics that can represent almost any kind of
independent suspension. A known benchmark vehicle model was run with the 18-DOF

Rev: July 27, 1997 220


Appendix F 3D Vehicle Handling Model

model and shown to provide nearly identical results in comparison with the fully detailed
multibody description.
Although the Iltis model description provides a valuable resource for verifying new
computer models, it lacks two important features of real vehicles: (1) steering compliance
(due to bushings and bending of metal), and (2) tire relaxation length.

References
1. Segel, L., “Keynote Address: Some Reflections on Early Efforts to Investigate the
Directional Stability and Control of the Motor Car,” Transportation Systems, ASME
Publication AMD, Vol. 108, 1990.
2. Segel, L., “Theoretical Prediction and Experimental Substantiation of the Response of the
Automobile to Steering Control,” The Institute of Mechanical Engineers, London, 1956.
3. Jindra, F. “Mathematical Model of Four-Wheeled Vehicle for Hybrid Computer Vehicle
Handling Program,” National Highway Traffic Safety Administration, DOT HS 801800,
1976
4. Wade Allen, Henry T. Szostak et. al., Vehicle Dynamic Stability and Rollover, National
Highway Traffic Safety Administration, DOT HS 807 956, June 1992.
5. Orlandea, N. and M.A. Chace, “Simulation Of A Vehicle Suspension With The Adams
Computer Program,” SAE Paper No. 770053, 1977.
6. Antoun, R. J. et. al., “Vehicle Dynamic Handling Computer Simulation – Model
Development, Correlation, and Application Using ADAMS,” SAE Paper No. 860574,
1986
7. Kortüm,W. Sharp, R.S., eds., Multibody Computer Codes in Vehicle System Dynamics,
Lisse, Swetz and Zeitlinger, 1993.
8. Sayers, M.W., “Symbolic Vector/Dyadic Multibody Formalism for Tree-Topology
Systems.” Journal of Guidance, Control, and Dynamics, Vol. 14, No. 6, Nov/Dec 1991,
1240-1250.
9. Gillespie, T. D., Fundamentals of Vehicle Dynamics, SAE, Warrendale, PA, 1992
10. Pacejka, H., Sharp, R.S. “Shear Force development by Pneumatic Tyres in Steady State
Conditions: A Review of Modelling Aspects” Vehicle System Dynamics, 20 (1991), pp.
121-176, Eqs. 88-93.
11. Von Schlippe, B., Dietrich, R., “Das Flatten Eines Pepneuten Rades (Shimmying of a
Pneumatic Wheel),” Bericht 140 der Lilienthal–Gesellschaft fur Luftfahrtforschung
(Translated in NACA TM 1365).
12. Loeb, J.S. et. al., “Lateral Stiffness, Cornering Stiffness and Relaxation Length of the
Pneumatic Tire,” SAE Paper No. 900129, 1990.

Rev: July 27, 1997 221


Appendix F 3D Vehicle Handling Model

13. Bernard, J. E., Clover, C. L., “Tire Modeling for Low–speed and High–speed
Calculations,” SAE Paper No. 950311, 1995
14. Sayers, M.W., and Mink, C., “A Simulation Graphical User Interface for Vehicle
Dynamics Models,” SAE Paper No. 950169, 1995.
15. H. Radt, “Tire Data Treatment,” Chapter 14 of Race Car Vehicle Dynamics, W.F.
Milliken and D.L. Milliken, SAE, 1995. pp. 473-487.

Rev: July 27, 1997 222


Appendix G — Model Output Variables
The following list of output variables was created from within the software for the 3a2a
tractor-semitrailer vehicle.
To create a similar list for other vehicle models, do the following:
1. Go to the Runs library, and find a run involving the vehicle of interest.
2. If the run has not already been made, click the Run button.
3. Click the Plot button to bring up WinEP.
4. Select the menu item Save Channel List (ctrl-S) from the File menu.
5. A Save File dialog box will come up.
6. Enter a name for the text file and locate it in a directory where you can find it later.
7. Click the Save button to create the file.
8. You will be returned to the WinEP graphics window.
9. Exit WinEP.

Output Variables for the 3D Handling Model


File: C:\CARSIMED\RUNS_3D\625.ERD
File generated by WinEP: 07/29/98 11:49:01

Channel Names
0. Time : Time - sec
1. AAy_LF : LF wheel angular acceleration - rev/s2
2. AAy_LR : LR wheel angular acceleration - rev/s2
3. AAy_RF : RF wheel angular acceleration - rev/s2
4. AAy_RR : RR wheel angular acceleration - rev/s2
5. Alpha_LF: LF wheel slip angle, without lag - deg
6. Alpha_LR: LR wheel slip angle, without lag - deg
7. Alpha_RF: RF wheel slip angle, without lag - deg
8. Alpha_RR: RR wheel slip angle, without lag - deg
9. AVx : Body roll rate - deg/s
10. AVy : Body pitch rate - deg/s
11. AVy_LF : LF wheel angular velocity - rev/s
12. AVy_LR : LR wheel angular velocity - rev/s
13. AVy_RF : RF wheel angular velocity - rev/s
14. AVy_RR : RR wheel angular velocity - rev/s
15. AVz : Vehicle yaw rate - deg/s

— 223 —
Appendix G Model Output Variables

16. Ax : Vehicle long. acceleration - g's


17. Ay : Vehicle lateral acceleration - g's
18. Az : Vehicle vertical acceleration - g's
19. Beta : Vehicle slip angle - deg
20. Fd_LF : LF damping force - N
21. Fd_LR : LR damping force - N
22. Fd_RF : RF damping force - N
23. Fd_RR : RR damping force - N
24. Fs_LF : LF spring force - N
25. Fs_LR : LR spring force - N
26. Fs_RF : RF spring force - N
27. Fs_RR : RR spring force - N
28. Fx_LF : LF tire longitudinal force - N
29. Fx_LR : LR tire longitudinal force - N
30. Fx_RF : RF tire longitudinal force - N
31. Fx_RR : RR tire longitudinal force - N
32. Fy_LF : LF tire lateral force - N
33. Fy_LR : LR tire lateral force - N
34. Fy_RF : RF tire lateral force - N
35. Fy_RR : RR tire lateral force - N
36. Fz_LF : LF tire vertical load - N
37. Fz_LR : LR tire vertical load - N
38. Fz_RF : RF tire vertical load - N
39. Fz_RR : RR tire vertical load - N
40. Gamma_LF: LF wheel inclination angle - deg
41. Gamma_LR: LR wheel inclination angle - deg
42. Gamma_RF: RF wheel inclination angle - deg
43. Gamma_RR: RR wheel inclination angle - deg
44. JounceLF: LF susp. comp. deflection - mm
45. JounceLR: LR susp. comp. deflection - mm
46. JounceRF: RF susp. comp. deflection - mm
47. JounceRR: RR susp. comp. deflection - mm
48. Kappa_LF: LF tire longitudinal slip - -
49. Kappa_LR: LR tire longitudinal slip - -
50. Kappa_RF: RF tire longitudinal slip - -
51. Kappa_RR: RR tire longitudinal slip - -
52. Mybrk_LF: LF brake torque - N-m
53. Mybrk_LR: LR brake torque - N-m
54. Mybrk_RF: RF brake torque - N-m
55. Mybrk_RR: RR brake torque - N-m
56. Mydrv_LF: LF drive torque - N-m
57. Mydrv_LR: LR drive torque - N-m
58. Mydrv_RF: RF drive torque - N-m
59. Mydrv_RR: RR drive torque - N-m
60. Mz_LF : LF tire aligning moment - N-m
61. Mz_LR : LR ire aligning moment - N-m

Rev: July 27, 1997 224


Appendix G Model Output Variables

62. Mz_RF : RF tire aligning moment - N-m


63. Mz_RR : RR tire aligning moment - N-m
64. Pbrk_con: Brake control input - MPa
65. Pitch : Body pitch - deg
66. Roll : Body roll - deg
67. Rot_WLF : Rotation of LF wheel - rev
68. Rot_WLR : Rotation of LR wheel - rev
69. Rot_WRF : Rotation of RF wheel - rev
70. Rot_WRR : Rotation of RR wheel - rev
71. Steer_LF: LF road wheel steer angle - deg
72. Steer_LR: LR road wheel steer angle - deg
73. Steer_RF: RF road wheel steer angle - deg
74. Steer_RR: RR road wheel steer angle - deg
75. Steer_SW: Steering-wheel angle - deg
76. Throttle: Throttle input - -
77. Vx : Vehicle longitudinal velocity - kph
78. Vx_IErr : Integrated velocity error - m
79. Vx_LF : LF wheel rolling speed - kph
80. Vx_LR : LR wheel rolling speed - kph
81. Vx_RF : RF wheel rolling speed - kph
82. Vx_RR : RR wheel rolling speed - kph
83. Vy : Vehicle lateral velocity - kph
84. Vz : Vehicle vertical velocity - kph
85. Xo : X position of car origin - m
86. X_CG : X position of vehicle CG - m
87. X_WLF : X coordinate of LF wheel center - m
88. X_WLR : X coordinate of LR wheel center - m
89. X_WRF : X coordinate of RF wheel center - m
90. X_WRR : X coordinate of RR wheel center - m
91. Yaw : Vehicle yaw - deg
92. Yaw_WLF : Yaw angle of LF wheel - deg
93. Yaw_WLR : Yaw angle of LR wheel - deg
94. Yaw_WRF : Yaw angle of RF wheel - deg
95. Yaw_WRR : Yaw angle of RR wheel - deg
96. Yo : Y position of car origin - m
97. Y_CG : Y position of vehicle CG - m
98. Y_WLF : Y coordinate of LF wheel center - m
99. Y_WLR : Y coordinate of LR wheel center - m
100. Y_WRF : Y coordinate of RF wheel center - m
101. Y_WRR : Y coordinate of RR wheel center - m
102. Zo : Z position of car origin - m
103. Z_CG : Z position of vehicle CG - m
104. Z_WLF : Z coordinate of LF wheel center - m
105. Z_WLR : Z coordinate of LR wheel center - m
106. Z_WRF : Z coordinate of RF wheel center - m
107. Z_WRR : Z coordinate of RR wheel center - m

Rev: July 27, 1997 225


Appendix G Model Output Variables

Output Variables for the 2D Ride Model


File: C:\CARSIMED\RUNS_2D\640.ERD
File generated by WinEP: 07/29/98 11:51:06

Channel Names
0. Time : Time - sec
1. AVy : Body pitch rate - deg/s
2. Az : Vehicle vertical acceleration - g's
3. Fd_LF : LF damping force - N
4. Fd_LR : LR damping force - N
5. Fs_LF : LF spring force - N
6. Fs_LR : LR spring force - N
7. Fz_LF : LF tire vertical load - N
8. Fz_LR : LR tire vertical load - N
9. Pitch : Body pitch - deg
10. Vz : Vehicle vertical velocity - km/h
11. Xo : X position of car origin - m
12. X_CG : X position of vehicle CG - m
13. X_WLF : X coordinate of LF wheel center - m
14. X_WLR : X coordinate of LR wheel center - m
15. Zo : Z position of car origin - m
16. Zroad : Zroad - m
17. Z_CG : Z position of vehicle CG - m
18. Z_WLF : Z coordinate of LF wheel center - m
19. Z_WLR : Z coordinate of LR wheel center - m

Output Variables for the 3D Suspension Kinematics Model


File: C:\CARSIMED\RUNS_SUS\641.ERD
File generated by WinEP: 07/29/98 11:51:32

Channel Names
0. Time : Time - sec
1. Bx : X movement of wheel center - mm
2. By : Y movement of wheel center - mm
3. Bz : Z movement of wheel center - mm
4. Gamma(L): Inclination angle (L. side) - deg
5. Steer(L): Steer angle (L. side) - deg
6. Q(1) : Abs. X rot. of R1p - deg
7. Q(2) : Z rot. of R1 rel. to R1p - deg
8. Q(3) : X rot. of WCpp rel. to R1 - deg
9. Q(4) : Y rot. of WCp rel. to WCpp - deg
10. Q(5) : Z rot. of WC rel. to WCp - deg
11. Q(6) : Abs. X rot. of R2p - deg

Rev: July 27, 1997 226


Appendix G Model Output Variables

12. Q(7) : Z rot. of R2 rel. to R2p - deg


13. Q(8) : Abs. X rot. of R3p - deg
14. Q(9) : Z rot. of R3 rel. to R3p - deg
15. Q(10) : Abs. X rot. of R4p - deg
16. Q(11) : Z rot. of R4 rel. to R4p - deg
17. Q(12) : Abs. X rot. of R5p - deg
18. Q(13) : Z rot. of R5 rel. to R5p - deg

Rev: July 27, 1997 227

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy