Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduction
Hands On Examples
Animation
Navigation and controls
Data Files
Vehicle model (Overview)
Batch and advanced test control Phil Mather
Simulink and VehicleSim (VS) Commands
tech@carsim.com 10/19/09
Mechanical Simulation 1
What is CarSim?
Computer simulation of a vehicle
Vehicle dynamics testing: braking,
acceleration, handling, ride (limited)
Response to driver controls, ground,
air
Runs under Windows
Options for real-time HIL testing
Mechanical Simulation 2
CarSim Product
Marketing Tools
Controls
Test with Software
in the Loop
Development
System Simulate
with CarSim Aftermarket
Definition
Vehicle Requirements,
Vehicle Capabilities, Capacities
Definition
3
CarSim Hands On
4
Hands On Examples
Get started
Use animator
Making new runs
Making new vehicles
and run them
Overlay results
View Plots
Using CarSim 5
CarSim Software Controls
6
VS Browser Overview
The database is organized Screens show data in context
with over 175 graphic screens Help for all controls
Each screen accesses a Start by copying existing data
library of data sets sets and making changes
Navigate like a web browser Past runs are part of the
Standard buttons are at the top CarSim database
of every screen
Use pull-down menus to select
data sets from libraries
Using CarSim 7
Graphical database
Surface animator
Using CarSim 8
Libraries and Datasets
Libraries are made up of Datasets
Using CarSim 9
VS Browser
Librarybrowsing(Back,Forward)
The VS Browser
Moving around
Icon Bars Datasetbrowsing
(Previous,Next)
Linked Data Tree
Keyboard
Adding and deleting data sets
Export and Import
Organizes data for math models,
plotter, animator, Simulink
Using CarSim 10
Viewing Animations
Click the Animate button
Change the camera settings
Overlay other runs for
comparison
Using CarSim 11
Viewing Plots
Click the Plot button
Zoom in on plots
Get data points
Using CarSim 12
Documentation
Right-click
Help
View
CarSim Documentation 13
CarSim Data
14
Parameters
Simple Properties
Known to be significant
Shown on screen in context
Dimensions, masses, ratios
Measurable
No need to be a simulation specialist to
understand them
For payload and trailer examples, see the category {Trailers and
Payloads} in the example CarSim datasets.
24
Table Options
27
3D Roads
Simple tabular descriptions
Horizontal, vertical, 3D incremental elevation Roads can be open-ended or
Tables are independent looped
Data from CAD, spreadsheet, GPS, etc.
Can choose type of interpolation and Automatically create shapes for
extrapolation surface animator
Textures can be added for realism
Friction maps applied to the surfaces for
use by the math model
CarSim Roads 28
Road Shapes
Geometry used by math models also used to generate shape files
based on lanes
Additional shapes can be added
Copies of an object can be located along the road
Saved view from
BMP file made by
animator Lane animation
definitions
Click to View
CarSim Roads 29
Examples 3 Click Along
1. Go to Libraries -> Roads -> Road: 3D Surface.
2. Select the dataset {Straight} Flat and Long
3. Click the View with Animator button
4. Create a new road {Class Roads} Long with Hills
5. Change Centerline Elevation of the new road with dataset FHWA Alt
3
6. Update Shapes and view with Animator
CarSim Roads 30
Examples 4 Student Exercise
1. Go to the Datasets menu and select {Scenic Roads} Alt 3 from
FHWA.
2. Create a new dataset {Class Roads} Example Road.
3. Change Centerline Elevation to {Racetrack} Road course elevation.
4. Change the Off-center elevation to {Racetrack} Road course
banking
5. Update Shapes and View with Animator
CarSim Roads 31
Road Segment Builder
Look at example {Road Segment Builder} Cloverleaf
CarSim Roads 32
Road X-Y-Z
Look at example Road: X-Y-Z Coordinates of Centerline {Racetrack}
Road Course
CarSim Roads 33
Variable Width Roads
Look at example {Variable Width Roads} Trough Wander Road
CarSim Roads 34
(More) CarSim Animation
35
Animation Shapes
Shape is defined by set of STL and OBJ files accessed
triangles using Animator: Shape File
Two open-standard file types: Link screen
STL and OBJ Some lighting properties can
STL and OBJ files created by be specified on the screens.
third-party software
CarSim Animation 36
Saving Animations
CarSim Animation 37
Playing Animations in Powerpoint
Open SurfAnim
1. Make an animation you like, and set the
screen size, view, etc.
2. Select the menu File->Save Video or
File->Save EXE File As
3. Type in your title and save to your
prefered folder
4. Capture an image of the animation
5. Insert image into PowerPoint
6. Right click on image
7. Select Action Settings
A. If Video, select Hyperlink to -> Other
File
i. Select the video
B. If EXE, select Run Program
i. Select EXE file
CarSim Animation 38
CarSim Data Files
39
Several parsfiles
Parsfiles
Used by database
Used by math models
Used by animator
Used by plotter
Simple format
View with text editor
View with Linked Data Tree
41
Exporting Data
Export Expanded Parsfiles
Use File->Export Expanded Parsfile for one file
Use the Library tool to append or include many data sets
Use to transfer data and also make archives
NOTE: Animator shapes NOT exported (must be copied separately)
Export Encrypted Expanded Parsfile
Export Consolidated Parsfile
45
Procedures
Event Programming
50
New Plots
Event Programming
CarSim Outputs 51
ERD output settings ERD file converter
53
Main Modeling Objectives
Predict vehicle system Tires are very important
response to: Need realistic shear forces and
Driver steering control moments from the tire model:
Driver braking control Fx, Fy, Fz, Mx, My, Mz
Driver throttle and shifting Must calculate realistic input
control
variables for the tire model:
Road friction and 3D
, , , R
geometry
Air and wind Predict transfer of forces to the
sprung mass by the suspension
CarSim Vehicle Models 54
Tire
Testing
Inertia
Measurement
Built on 30 Years of Research at UMTRI
Modeling,
Algorithms, &
Suspension
Simulation Measurement
10
0 0
-10
-0.5 0 10 20 -20 0 10 20
Road Test
CarSim
System-Level Modeling
Ideal model complexity for chassis control
development & proving ground correlation.
Models are computationally stable
Models run faster than real time on PCs
All model parameters can be measured
Wheel Spin
Slip angles
Front
Degrees of Freedom
x(t1+ t) True
function
x(t1) x(t)
61
Aerodynamics
Tires
The built-in model uses test data for pure longitudinal and lateral
The built-in model uses similarity for different tire/ground friction
The built-in model uses Pacejka combined slip theory
Alternate models are available (magic formula, extended camber)
External models can be used
T Wheel pressure
P
Brake torque
Ntrans
Te e Ttcin e tco Tg
g
e
Engine to Transmission
AT or MT selected
Lockup clutch over the torque converter
Fuel consumption calculated
whRF Tg whRR
TgF TgR MyRR
MyRF
Inter-axle
Front Differential Differential Differential Rear
MyLF MyLR
gF gR
whLF whLR
Drive shafts F,R
FxRF (hwc+@zRF)+MybkF FxLR (hwc+@zLR)+MybkR
71
Final Example
Problem: Create an example with the E-Class, SUV LWB on the Class Road.
1. Start with the existing example: {Class Examples} DLC SUV Baseline
2. Create a new dataset: {Class Examples} Final
3. Select the E-Class, SUV LWB
4. Click on the pull down arrow next to the Procedure link: DLC @ 120 km/h and [Copy and
Link Dataset]
a. Name this dataset {Class Procedure} Final Procedure
5. Click on the new blue link Final Procedure
6. Change the speed to Constant 80 km/h
7. Set the Braking control to No Braking
8. Set the Shifting control to AT 7th mode
9. Change the steering controller to {Constant Position} 1.65 m to the Right
10. Select the road {Class Roads} Example Road
11. Set the Stop time to 30, Start Station to 200, and Select Stop run at specified time
12. Click Home, and then Run Math Model, and Animate
73
Events
Event Programming
Example:
3 different road friction
Batch run: Matrix and 3 different
Vehicles -> 9 different
simulations are run
with one click.
3 different road friction
3 different Vehicles
10 11
4
12
3
5
77
Simulink
Simulink (add-on to MATLAB) is the most used simulation
environment
Add custom controllers
Replace model components
80
VehicleSim (VS) Commands
82
Forums
www.CarSim.com 83
CarSim Tech Support
84
Forums
www.CarSim.com 85
Introduction to CarSim
Introduction
Hands On Examples
Animation
Navigation and controls
Data Files
Vehicle model (Overview)
Batch and advanced test control
Simulink and VehicleSim (VS) Commands Phil Mather
tech@carsim.com
Mechanical Simulation 86
Introduction to CarSim
tech@carsim.com
734-668-2930
Phil Mather
tech@carsim.com
Mechanical Simulation 87