Académique Documents
Professionnel Documents
Culture Documents
Release 2003
ADAM*V2003*Z*INST*Z*SM-ADM730-TG
The information in this document is furnished for informational use only, may be revised from time to time, and
should not be construed as a commitment by MSC.Software Corporation. MSC.Software Corporation assumes no
responsibility or liability for any errors or inaccuracies that may appear in this document.
Copyright Information
This document contains proprietary and copyrighted information. MSC.Software Corporation permits licensees of
MSC.ADAMS software products to print out or copy this document or portions thereof solely for internal use in
connection with the licensed software. No part of this document may be copied for any other purpose or distributed or
translated into any other language without the prior written permission of MSC.Software Corporation.
Copyright 2003 MSC.Software Corporation. All rights reserved. Printed in the United States of America.
Trademarks
ADAMS, EASY5, MSC, MSC., MSC.ADAMS, MSC.EASY5, and all product names in the MSC.ADAMS Product
Line are trademarks or registered trademarks of MSC.Software Corporation and/or its subsidiaries.
NASTRAN is a registered trademark of the National Aeronautics Space Administration. MSC.Nastran is an enhanced
proprietary version developed and maintained by MSC.Software Corporation. All other trademarks are the property of
their respective owners.
Government Use
Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in FAR 12.212
(Commercial Computer Software) and DFARS 227.7202 (Commercial Computer Software and Commercial
Computer Software Documentation), as applicable.
Copyright
&217(176
&RQWHQWV3
:HOFRPH WR $'$06,QVLJKW5
About MSC.Software 6
Course Overview 7
Getting Help 8
,QWURGXFWLRQ11
&RQWHQWV
5HVXOWV,QWHUSUHWDWLRQ77
Equation Order 78
Exporting and Importing 80
The Work Space Column Calculator 81
Analyzing Results 82
Workshop 5Results Interpretation 87
8VLQJWKH$6&,,&RQGXLW101
Overview 102
Templates and Execution 103
Process 104
Workshop 6Using the ASCII Conduit 105
$GYDQFHG7RSLFV115
130
131
133
134
135
137
Contents
:(/&20( 72 $'$06,16,*+7
7KLVVHFWLRQLQFOXGHV
About MSC.Software, 6
Course Overview, 7
Getting Help, 8
$ERXW06&6RIWZDUH
)LQGDOLVWRI06&6RIWZDUHSURGXFWVDW
http://www.mscsoftware.com/products/products.cfm
)LQGDOLVWRI06&$'$06SURGXFWVDW
http://www.mscsoftware.com/products/products_detail.cfm?PI=413
)LQGDGGLWLRQDOWUDLQLQJDW
http://www.engineering-e.com/training/
5XQWKURXJKYHULILFDWLRQSUREOHPVDW
http://support.adams.com/kb/faq.asp?ID=kb9587.dasp
)LQGRXWDERXWRXUFRQVXOWLQJVHUYLFHV
http://www.mscsoftware.com/services/esg/
Welcome to ADAMS/Insight
&RXUVH2YHUYLHZ
/HFWXUH
+DQGVRQZRUNVKRSV
-5 <= X1 <= 5
-5 <= X2 <= 5
Welcome to ADAMS/Insight
*HWWLQJ+HOS
2QOLQHKHOS
To access the online help:
5HIHUHQFLQJWKHRQOLQHKHOS
While working in an ADAMS/Insight dialog box, you can press F1 to display online
help specific to that dialog box.
Once the online help is displayed, you can also search for any terms you are looking
for or browse through the index or table of contents.
Welcome to ADAMS/Insight
*HWWLQJ+HOS
3HUVRQDOL]HGQHZVDQGLQIRUPDWLRQ
To receive more consistent, targeted news and information, go to:
http://my.adams.com/cgi-bin/myadams.cgi, a Web personalization site for MSC.ADAMS
users. Some of the news channels this site provides are:
7HFKQLFDOVXSSRUW
To find your local support center, go to:
http://www.mscsoftware.com/support/contacts/index.cfm
NQRZOHGJHEDVH
Go to: http://support.adams.com/kb
For a quick tour of the knowledge base, go to:
http://www.adams.com/news/newsletter/vol3/kbtour.htm
Welcome to ADAMS/Insight
*HWWLQJ+HOS
06&9LUWXDO3URGXFW'HYHORSPHQW&RPPXQLW\
10
Welcome to ADAMS/Insight
Explain the VPD Community tool (previously known as the ASK List) and guide the students to register during class.
,1752'8&7,21
Use ADAMS/Insight to investigate the relationship between the landing gear link
lengths (the design variables) and the storage clearance and torque requirements
(the design objectives). Make the results accessible to others in a Web page
format.
7KLVPRGXOHLQFOXGHV
Open
Retracted - bad
Retracted - good
11
&ROODERUDWLRQZLWK$'$06,QVLJKW
Use ADAMS/Insight to explore the design space of a virtual prototype and optimize the design. Share the results
with colleagues and supervisors.
&RUSRUDWLRQVZDQWWR
'HVLJQHUVZDQWQHHGWR
$VROXWLRQ
&RPPRQ
GLDORJIRU
HQJLQHHULQJ
WHDPV
NQRZOHGJH
,QH[SHQVLYHHYDOXDWLRQRI
GHVLJQFKDQJHVVSHHG
9LUWXDOWHVWLQJRILQQRYDWLRQVFRVW
12
Introduction
We think of the pyramid as a structured solution for the common problems outlined above; starting with a cost-saving
base of virtual prototyping, a natural progression is to have a rapid manner to evaluate
different virtual prototypes. This is all great, but an intelligent way to choose prototypes, then process and distribute
information is key.
06&$'$063URGXFW6ROXWLRQV
06&$'$06SURGXFWVHQFRPSDVVWKHVROXWLRQ
Introduction
13
'2(7KHRU\DQG5HVSRQVH6XUIDFHV
'2(VIRUGHVLJQVSDFH
H[SORUDWLRQ
Minimize the number of design evaluations
using DOE theory to discretize the design
space intelligently.
5HVSRQVHVXUIDFHVIRU
LQWHUSUHWDWLRQ
Fit results of trial evaluations by assuming
design surface continuity, and gain the
ability to rapidly predict performance of
any model within the design space.
14
Introduction
5HFHQW'HVLJQ$GYDQFHV
9LUWXDO3URWRW\SLQJ
3DUDPHWULFV
&ROODERUDWLRQ
Virtual Prototyping
Parametrics
Collaboration
Introduction
Now lets talk about the three levels of the pyramid and the design trends in the recent years.
15
5HFHQW'HVLJQ$GYDQFHV
9LUWXDO3URWRW\SLQJ
9LUWXDO3URWRW\SLQJVV
3DUDPHWULFV
&ROODERUDWLRQ
16
Introduction
5HFHQW'HVLJQ$GYDQFHV
9LUWXDO3URWRW\SLQJ
3DUDPHWULFV
3DUDPHWULF0RGHOLQJV
&ROODERUDWLRQ
Introduction
17
5HFHQW'HVLJQ$GYDQFHV
9LUWXDO3URWRW\SLQJ
3DUDPHWULFV
&ROODERUDWLRQ
&ROODERUDWLRQSUHVHQW
18
Introduction
:RUNVKRS&ROODERUDWLRQZLWK$'$06,QVLJKW
This workshop takes about one hour to complete.
3UREOHPVWDWHPHQW
Use ADAMS/Insight to investigate the relationship between the landing gear link lengths (the
design variables) and the storage clearance and torque requirements (the design objectives).
Make the results accessible to others in a Web page format.
Retracted - bad
Open
Retracted - good
*HWWLQJVWDUWHG
Here you will start ADAMS/Insight, import the model, and run a simulation.
7RJHWVWDUWHG
1
UNIX:
Introduction
19
Make sure no other databases exist before starting class. Before using a database for the first time in the class, make
a new database.
:RUNVKRS&ROODERUDWLRQZLWK$'$06,QVLJKW
4
Run the simulation script retract_gear to see an example of the retraction exercise.
To run the model using this simulation script, from the Simulate menu, select Scripted
Controls.
From the Simulate menu, point to ADAMS/Insight, and then select Display.
Enter lg_experiment.xml.
Select OK.
ADAMS/Insight opens. You will learn about the elements of the ADAMS/Insight interface
in later modules. For now, note what happens when you expand the Factors node, and then
the Inclusions node in the treeview. These are the design variables that you can alter in the
model. Now, expand the Responses node, and then the Inclusions node. These are the
design objectives, or Responses, that you want to monitor as the variables are changed.
Next, youll run through some simple design tasks.
9HULI\LQJWKHGHVLJQVSDFH
Here you will use ADAMS/Insight to check the design space quickly through a process called
a perimeter study. The perimeter study evaluates your model at the extents of the design space,
giving you an indication of how robust the model is within the chosen design space.
7RUXQDSHULPHWHUVWXG\
1
In the treeview, select the + in front of Design, and then select Specification.
The Design Specification form appears.
20
Introduction
:RUNVKRS&ROODERUDWLRQZLWK$'$06,QVLJKW
2
Select Apply.
In the treeview, select Work Space Review to verify the model configurations. Select Lower
link mount or Upper link length in the chart at the bottom of the main window to see how
many times each design variable value appears in the matrix of model configurations. In
this case, each variable appears once at the lower, middle, and upper range of the variable
extents.
Introduction
21
:RUNVKRS&ROODERUDWLRQZLWK$'$06,QVLJKW
6
Now that ADAMS/Insight knows what model configurations need to be evaluated for the
perimeter study, it has enough information to go back to ADAMS/View and evaluate all of
the model configurations.
ADAMS/View opens and the model runs in several configurations. If there are problems
with the model in any of the configurations, you will see warnings and error messages. In
this experiment, you should just see the warnings that occur when the sensor fires.
7
When the simulations are complete, close the Information box and select OK in the Mdi
Insight Display dialog box.
To view the results data, in the treeview, expand the Design node, and select Work Space.
The chart shows the model configurations that were evaluated and the values for each of
the torque and clearance design objectives. These values were completed based on the
results of the previous ADAMS/View simulations.
Did all of the models evaluated run and give values for Maximum Torque and
Wingbox Clearance?
What is the difference between the highest and lowest Maximum Torque values?
____________________________
The perimeter study is intended to be a quick way to run the model at the low, middle, and high
values of the design variables, giving a quick indication of how robust the design space is. If
you notice any failures during the simulation process, or any design objective values appear odd
in the Work Space chart, now is the time to reconsider your model and the design space extents.
)LWWLQJDUHVSRQVHVXUIDFHDQGRSWLPL]LQJRQWKHVXUIDFH
One of the main functions of ADAMS/Insight is generating response surfaces. A response
surface is simply a polynomial fit between your inputs (the design variables in the model that
can be changed) and the outputs (the design objectives that you are monitoring as the inputs
change). A polynomial fit between the inputs and outputs has many benefits, including:
22
The ability to rapidly look up any solution within the design space (simple
polynomial evaluation at any valid input value).
Rapid analysis of design space shape; essential for sensitivity analysis studies.
Introduction
:RUNVKRS&ROODERUDWLRQZLWK$'$06,QVLJKW
Then, after the response surface has been fit to the input/output relationship in this design
problem, perform an optimization on this surface. You will do a simple optimization on the
surface such that the model has:
7RYLHZDQ$'$06,QVLJKWH[SHULPHQWRIDUHVSRQVHVXUIDFHILWWRWKLVGHVLJQ
SUREOHP
1
From the Simulate menu, point to ADAMS/Insight, and then select Display.
Enter lg_experiment_rs.xml.
Select OK.
Notice that there is an Analysis node containing a Model_1 node that represents the response
surface fit to the previous design problem.
7RSHUIRUPDQRSWLPL]DWLRQRQWKHVXUIDFH
1
Assign weighting factors for the objectives that you want to satisfy:
Maximum Torque:
Weight of 0
Wingbox Clearance:
Weight of 1
Set Op in the Design Objectives column (the optimization criteria) to Max for the
Wingbox Clearance.
Select Run.
The optimization should finish quickly.
What configuration of the model yields the maximum clearance, without regard for the
torque Objective?
________________________________________________________________
________________________________________________________________
Introduction
23
:RUNVKRS&ROODERUDWLRQZLWK$'$06,QVLJKW
6KDUHWKHUHVSRQVHVXUIDFHUHVXOWVZLWKRWKHUV
Since a response surface is simply a polynomial fit of the outputs to the inputs, it is easy to share
this information with others who dont know how to run MSC.ADAMS products. Response
surface data can be created in a dynamic Web page format from ADAMS/Insight, facilitating
in the sharing of the experimental data. Next, you publish a dynamic Web page from
ADAMS/Insight so that others can test model configurations within the design space, without
running the MSC.ADAMS products.
7RSXEOLVKWKHUHVSRQVHVXUIDFHUHVXOWVWRD:HESDJH
1
Leave the default name in the File Save text box, and select Save.
Now the results can be viewed and tested from within a Javascript-enabled Web browser.
Assuming that your boss is not an MSC.ADAMS user and just wants the answers, what
values would he or she get for the torque and wingbox clearance objectives if he or she
set the design variables at 58 cm for the Upper link length and 39 cm for the Lower link mount?
__________________________________________________________________
___________________________________________________________________
6XPPDU\
You used ADAMS/Insight to verify the design space that you were investigating. Then, a
response surface was fit to the design problem where you could rapidly optimize for different
criteria. Once you found the design configuration(s) that you were after, you published the
response surface data to a dynamic Web page so that others could share the results.
24
Introduction
)$&7256$1'5(63216(6
Change pump characteristics to realize maximum flow output. Publish factorto-response relationship to a Web page.
7KLVPRGXOHLQFOXGHV
25
'HILQLQJ'2()DFWRUV
2YHUYLHZ
Design variables
System inputs
Input parameters
([DPSOH
Changing R, the radius factor, directly affects the output of the pumping system.
R
)DFWRUVSHFLILFDWLRQ
26
'HILQLQJ'2()DFWRUV
2YHUYLHZ
)DFWRUVSHFLILFDWLRQ
Factors must have limited bounds that represent the range of possible values.
ADAMS/Insight can specify factors using:
Nominal +/relative:
Nominal +/percent:
Lower limit
10
15 - 5
15 - 15 * 33.3%
Upper limit
20
15 + 5
15 + 15 * 33.3%
Continuous: factors that can have all values within the upper and lower bounds.
Discrete: factors that can have only specified values within a range (for example,
car tires are available only in specified widths).
27
6SHFLI\LQJ'2(5HVSRQVHV
5HVSRQVHV
Are the quantities that youre interested in, asking questions such as:
([DPSOH
The piston stroke volume is dependent on the piston radius squared. Varying the piston radius
yields the volume-to-radius relationship shown below. We can now express this as an analytical
relationship.
Responses are defined indirectly in the MSC.ADAMS products using entities such as:
REQUESTs
Result sets
Measures
Function values
Macro values
28
It says that factors usually influence responses because sometimes they dont; thats one of the things ADAMS/
Insight is good for (the effects Pareto diagrams in the Web page show which factors influence which responses.)
:KDWDUH5HVSRQVH6XUIDFHV"
DOE techniques look to find a relationship between the factors and responses in your
model.
The data from the DOE trial runs is used to fit an algebraic relationship between the
factors and response. This relationship is called a Response Surface.
A simple example of this is the pump stroke volume-to-radius plot shown on page 28.
A slightly more complex response surface might show how two parameters affect a
system objective, looking something like this:
A response surface equation relates the response value to the factors, typically using
either a linear relationship, an interaction relationship, or a quadratic relationship.
29
:KDWDUH5HVSRQVH6XUIDFHV"
This analytical relationship means that what-if studies are simple and quick for
further combinations of factors. As the design space is continuously approximated by
the response surface equations, you dont need to do any physical (or virtual) testing
to determine a response value for a different set of factors.
30
Emphasize that this is one of the main goals of ADAMS/Insight -- generation of response surfaces for rapid what-if
studies and ease of collaboration.
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
This workshop takes about one hour to complete.
3UREOHPVWDWHPHQW
Change pump characteristics to maximize flow output. Publish factor-to-response relationship
to a Web page.
*HWWLQJVWDUWHG
First you will start ADAMS/View and import the model.
7RLPSRUWWKHPRGHO
1
31
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
9LHZLQJGHVLJQYDULDEOHV
Now, you will review the factors and responses, and then simulate the model.
In ADAMS/View there are two kinds of modeling entities that can be factors in
ADAMS/Insight. They are:
Design variables
Construction points
Design variables and construction points are used to parameterize a model in ADAMS/View,
so when ADAMS/Insight is given a model from ADAMS/View, it knows to look for these
particular parametric entities.
7RVHHWKHGHVLJQYDULDEOHVLQWKHPRGHO
1
From the Build menu, point to Design Variable, and then select Modify.
Which of the design variables likely doesnt affect the dynamics of the pump?
___________________________________________________________
There were no construction points used in this model. This is a bit unusual as most models use
construction points to parameterize key geometry locations or implement symmetry
relationships. To see a listing of construction points in a model, from the Tools menu,
select Table Editor. Then, select Points on the bottom as the filter criteria.
,GHQWLI\LQJWKHV\VWHPPHDVXUHPHQWVRUUHVSRQVHFDQGLGDWHV
ADAMS/Insight looks for design objectives when ADAMS/View gives it a model. A design
objective is a single value that is derived from simulation results, such as the maximum value
of a reaction force or the last value of a velocity measurement.
7RVHHDOOWKHGHVLJQREMHFWLYHVLQWKHPRGHO
1
From the Simulate menu, point to Design Objective, and then select Modify. Then, expand the
wobble_pump node.
Look at the piston volume objective. List the five kinds of entities that can be used to
define an objective in ADAMS/View:
___________, ____________, ____________, ____________, ____________
32
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
3
Note the objective obj_average_drive_torque. Apart from its oddly long name, it differs
from the other objectives in that it was defined based on a REQUEST. Workshop 3
Parametrics on page 50 covers the ways of making different kinds of objectives in
ADAMS/View.
6LPXODWLQJWKHPRGHO
You want to ensure that our design variables (potential factors) influence the objectives
(potential responses) before you perform a DOE. First, you must simulate the model to generate
a baseline dataset from which to work.
Having a simulation script that runs the model is good practice, particularly if you need to string
together analyses (for example, you always do a static first, then run your dynamic simulation).
7RFUHDWHDVLPXODWLRQVFULSWDQGUXQWKHPRGHO
1
From the Simulate menu, point to Simulation Script, and then select New.
3
4
Script Name:
run_pump
Script Type:
Simple Run
End Time:
2 seconds
Steps:
200
Simulation Type:
Transient - Dynamic
Select OK.
To run the model using this simulation script, from the Simulate menu, select Scripted
Controls.
33
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
/RRNLQJDWREMHFWLYHYDOXHV
There is no graphical way to view objective values in ADAMS/View unless youre explicitly
performing a DOE, design study, or optimization. To see objective values, you must use the
ADAMS/View command line.
7RYLHZREMHFWLYHYDOXHV
1
Continue typing a few letters and using the question mark key until you get optimize
objective evaluate analysis_name = on the line. Now, press the ? key again and the only
possible choice, Last_Run, should appear.
You can see how the ? key on the command line either fills in valid command language,
prompts you for command syntax completion, or lists the valid entities after an equal sign.
The final string on the command line should look like the following:
optimize objective evaluate analysis_name = Last_Run
objective_name = obj_piston_volume
Press Enter to write the current value of the objective to the command window.
Using this technique you'll evaluate the three objective values and fill in the first column in
the chart below. Then, you'll manually change the model twice in the next step and reevaluate the objective values to complete the chart.
Objective:
Baseline
value (270,
41, 300):
Baseline with
higher shaft
speed (270, 41,
330):
Baseline with
smaller radius
(270, 38, 300):
Obj_total_pump_output
Obj_piston_volume
Obj_average_drive_torque
Before performing a DOE, make sure that the design variables (potential factors) influence
the objectives (potential responses) in our model.
34
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
5
piston_length = 270 mm
piston_radius = 41 mm
Reset the variables to the baseline values before doing the DOE, next.
6HWWLQJXSWKH'2(
Now you will use ADAMS/Insight to fit a response surface to the relationship between the three
objectives and two of the design variables.
7RGHILQHIDFWRUVDQGUHVSRQVHV
1
From the Simulate menu, point to ADAMS/Insight, and then select Export.
Experiment:
exp_wobble
Model:
wobble_pump
Simulation script: use the simulation script that you wrote previously.
To see the current scripts in the model, from the Simulate menu, point to Simulation Script,
and then select Modify.
35
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
3
Expand the Factors node, then the Candidates node, and then the wobble_pump.
Why do you think the bearing_color design variable didnt appear as a potential factor?
__________________________________________________________
Factors arent included in the DOE until theyre promoted from the Candidates list to the
Inclusions list. To promote a candidate factor, select the factor name in the list then click
the Promote tool as shown below.
Promote the piston_radius and shaft_speed factors to the Inclusions list. Note that the
design variable characteristics of each factor have been retained from the ADAMS/View
model (the piston_radius factor is continuous, having a relative delta type; the
shaft_speed is also continuous, but has a relative percent delta type as specified by the
ADAMS/View design variable).
Note: For more information on factor and response specification methods, press F1 and
36
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
7
piston_radius: radius
shaft_speed: speed
Using the same procedures used earlier, promote the following responses to the
Inclusions list under the Responses node:
obj_average_drive_torque
obj_total_pump_output
obj_average_drive_torque: torque
obj_total_pump_output: pump_output
6HWWLQJWKH'HVLJQ6SHFLILFDWLRQ
After defining the factors and responses you are going to look at, you now need to specify the
kind of study youre going to do. Do you want to determine which variables most affect the
different outcomes and do a Screening study? Or, do you want to determine the equations that
describe the input/output relation by doing a Response Surface fit?
This is a small experiment with only a few factors and responses. You are confident that each
factor influences at least one of the responses, so you will fit a response surface to the input and
output entities.
7RVSHFLI\DOLQHDUUHVSRQVHVXUIDFHPRGHO
1
Note: For more information on the entries in the toolbar, press F1 and review the online
help.
2
Set Model to Linear. This means that you want to fit a linear relationship between the
responses and factors so that you can write an equation relating them as follows:
37
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
You know that the total pump output varies with the piston radius squared
(cylinder volume = PI * cylinder_length * cylinder_radius**2), so youre simplifying
things assuming a linear relationship. The results will show whether or not this is a valid
assumption.
4
Select Apply.
*HQHUDWLQJWKHSURMHFWZRUNVSDFH
ADAMS/Insight now knows the kind of response surface being fit, as well as boundary
information about the factors in the model. Using this information, ADAMS/Insight determines
what trials (experiments) to run so that enough information is obtained to calculate the response
surface equations.
Each experiment is called a trial; a sequence of trials with factor values is called a project
workspace.
7RJHQHUDWHWKHSURMHFWZRUNVSDFH
1
Select the Design Space and Work Space items under the Design node. They should display
as follows:
These tables indicate that four trials need to be evaluated with the factor values (as shown
in the Work Space table) in order to fit a linear response surface between the factors and
responses.
3
What is the significance of the -1 and 1 values in the Design Space table?
___________________________________________________
How do these match up to the factor values as shown in the Work Space table?
___________________________________________________
38
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
3UHYLHZLQJPRGHOFRQILJXUDWLRQV
ADAMS/Insight displays the design position of all the model configurations that it is going to
evaluate. This allows you to inspect all of the models that will be evaluated.
7RLQVSHFWWKHPRGHOV
1
From the Data menu, point to Simulation, and then select Preview.
ADAMS/Insight closes and ADAMS/View displays.
To pause after each frame, select Yes in the Warning box that appears.
The first model configuration displays.
Look at the piston and cylinder radii as you select Next frame in the Warning box. The
changes are subtle, but noticeable.
From the Simulate menu, point to ADAMS/Insight, and then select Display.
Select OK.
The model configuration changes for this model werent too exciting, as the only thing that
visibly changes is the radius (you cant see the speed function changing in the design
configuration). For a larger model with many geometric factors, you can see how this could
be useful in verifying what is about to be done.
39
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
(YDOXDWLQJWKHWULDOV
The Work Space table on the previous page didnt have torque and pump_output values for each
of the trials. To get the response values for each trial, you must run the model in ADAMS/View
(or ADAMS/Car, ADAMS/Chassis, and so on) to see the performance at each configuration.
ADAMS/Insight closes and ADAMS/View displays, running the model with the four
different configurations.
9LHZLQJUHVXOWVDQGSXEOLVKLQJD:HESDJH
Here you will view your results and publish them to a Web page.
7RYLHZDQGILWWKHUHVXOWV
1
From the Simulate menu, point to ADAMS/Insight, and then select Display.
Select OK.
In the treeview, expand the Design node, and then select Work Space.
Notice that all of the response values are now filled in.
To review the statistics for the fit, select Model_1 in the treeview. In the two columns at
the bottom, note the following:
Summary Rules of Thumb: The yellow and red indicators show that the linear fit
Torque Fit: The red indicators mean that a linear response surface isn't the best
Pump Output Fit: The green indicators mean that there is some meaning in
relating the pump output to the design variables using a linear relationship.
40
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
You will learn more about the statistics in Results Interpretation on page 77, but for now,
you can make a simple change to your design to get additional information.
Since the linear fit assumes no interaction between the two design variables being studied,
you can change the assumed relationship to include the interactions between the variables.
5
From the Tools menu, point to Refine Model, and then select Change Order.
41
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
7RSXEOLVKWRD:HESDJH
1
Select Save.
You can now open your results file in a Web browser.
9HULI\LQJUHVXOWV
Now you will use a Web page to verify the response surface fit.
7RYHULI\\RXUUHVXOWV
1
Verify that the response values on the Web page change as the factors are varied.
Fill in the table below with the response surface values when the model is in the baseline,
higher speed, and smaller radius configurations that were defined in the table on page 34.
Objective:
Obj_total_pump_output
Obj_average_drive_torque
42
Baseline
value:
Baseline
with higher
shaft
speed:
Baseline
with
smaller
radius:
(1.085E+6)
(1.412E+6)
(9.309E+5)
(191.31)
(195.55)
(191.21)
Considering the differences shown above, do you think that a linear model was a good
choice? _____________
What were the four choices for the response-surface model fit?
Linear
__________
Quadratic
__________
Factors and Responses
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
5
Check the Stats and Effects boxes on the Web page. The effect of each factor on each
response is shown as a Pareto chart. The speed should have a large effect on the drive
torque response and the piston radius should have about half the effect of the speed on the
pump output response.
0RYLQJDKHDG
This module considered the differences between factors and responses. A typical goal when
running a DOE is to fit a response surface between the factors and responses so that physical or
virtual testing runs need not be done; an analytical relationship is used to predict the system
response for other configurations.
Some of the key elements that need further exploration are:
43
:RUNVKRS8QGHUVWDQGLQJ)DFWRUVDQG5HVSRQVHV
%RQXVPDWHULDO&DOFXODWLQJWKHSXPSRXWSXW
To calculate the pump output, we assumed that the pump only discharges flow in one stroke
direction. To determine when the pump was discharging, a state variable (piston_velocity) was
created, having a positive velocity value when the piston moves into the cylinder.
MSC.ADAMS can integrate values in time using the DIFF statement, so the differential pump
volume needs to be written as a differential with respect to time.
If:
V = volume
v = velocity
then:
A = piston area
dx = v dt
dV = A v dt
Therefore, the differential pump output can be written as A v dt. This value is continuously
calculated in the state variable piston_volume_differential. This is then used in a DIFF statement
(diff_integrated_volume) to calculate the pump output as a function of time.
44
3$5$0(75,&6
Use the parametrics in ADAMS/View to investigate how to prepare a model
for an ADAMS/Insight DOE.
7KLVPRGXOHLQFOXGHV
Nominal Models, 47
Workshop 3Parametrics, 50
45
2XWGDWHG3DUDPHWULFVE\+DQG
3DUDPHWULFVE\KDQG
Without parametric preprocessors, the dataset model needs to be changed by hand, simulated,
and the results exported and accounted for.
Create
Simulate
46
Parametrics
1RPLQDO0RGHOV
2YHUYLHZ
A robust model is one that has defined solutions throughout the design space,
meaning no ADAMS/Solver failures and physically realistic model configurations.
Most models are robust within a range of the variables being studied (that is, the
design space). The extent of the range is determined by the model. You should start
with a good idea of what these limits are.
The DOE method essentially tweaks the model about some operating point, so the
operating point needs to be within a robust design space.
Parametrics
47
Note the fourth point: DOE techniques tweak the model, so its very important that the model is robust within the
design space.
&UHDWLQJ)DFWRUVLQ06&$'$06
2YHUYLHZ
Factors are typically the objects in an ADAMS/View model that are defined parametrically.
These are:
Construction points: These are inherently parametric, made to be varied and have
other entities update as they change.
Design variables: Similar to construction points in that these elements define the
parametrics in your model. When you alter a design variable, anything referencing it
is also updated.
([DPSOH
As in the earlier pump radius example, changing R directly affects the output of the pumping
system.
48
Parametrics
&UHDWLQJ5HVSRQVHVLQ06&$'$06
2YHUYLHZ
Responses are the system quantities being monitored. These are defined as objective entities
within ADAMS/View.
Objectives can be defined by the following:
Measure characteristic
REQUEST characteristic
ADAMS/View function
([DPSOH
An objective might calculate the maximum reaction in a joint or a derived quantity that
MSC.ADAMS doesnt automatically provide for you.
Parametrics
49
:RUNVKRS3DUDPHWULFV
This workshop takes about two hours to complete.
3UREOHPVWDWHPHQW
Use the parametrics in ADAMS/View to prepare a model for use in an ADAMS/Insight DOE
study.
*HWWLQJVWDUWHG
First you will start ADAMS/View.
7RVWDUW$'$069LHZ
1
50
UNIX:
:RUNVKRS3DUDPHWULFV
&RQVLGHULQJWKHPRGHOEHLQJLQYHVWLJDWHG
Next you will run several simulations.
7RUXQWKHILUVWVLPXODWLRQ
Run a dynamic simulation with the default model for 2 seconds and 100 output time steps.
Modify the suspension geometry by filtering the table editor on Points (in the lower left
corner of the window), and change the x-location of hpl_tierod_outer from 417 to 422.
Parametrics
51
:RUNVKRS3DUDPHWULFV
6
Simulate the model again and overlay the new plot with the original from step 2, above.
Your plot should look something like the one shown next.
This verifies how easy it is to make modeling changes in the parametric ADAMS/View
environment. Next you will repeat this manually to get a feel for how difficult this process is
without a parametric modeling tool.
52
Parametrics
:RUNVKRS3DUDPHWULFV
3HUIRUPLQJSDUDPHWULFVE\KDQG
To get an idea of how a DOE study might have been conducted in the past, you will alter the
model by hand. You will then explore the design space for the mechanism to determine settings
for a baseline, or nominal, model from which to start a future DOE.
Performing the process manually requires an ADAMS/Solver dataset model (.adm) file. For
each configuration of the model that must be analyzed, you will alter this dataset file and run it
through ADAMS/Solver to generate results. You can then analyze the resulting set of output
files for all of the configurations.
7RPRGLI\SDUDPHWULFVE\KDQG
1
Write out a dataset .adm model file that ADAMS/Solver can understand by doing the
following:
Keep the default file and model names and select OK.
Run the dataset file through ADAMS/Solver to generate results for the original model.
The file run_default.acf has commands to load the model file named car_suspension.adm,
run the simulation for 2 seconds and 100 steps, and save the results with a filename prefix
of default_results.
Ensure youve written the .adm file out as car_suspension.adm and then simulate from the
command line as follows:
UNIX:
You should now have results files with .out, .gra, .msg, and .req extensions.
4
Open the .adm file in a text editor. You will change the model geometry by editing the
.adm file and running the simulation again.
Parametrics
When the students get to this point, make sure to emphasize that its tough and error-prone to do this by hand.
53
:RUNVKRS3DUDPHWULFV
There are two markers in the model that are affected by the location of the point
hpl_tierod_outer in the ADAMS/View model. These are MARKER/18 on PART/6 (the left
tierod) and MARKER/17 on the left knuckle part. When you changed the location of
hpl_tierod_outer, these two markers changed locations due to the parametrics that have
been set up. The ADAMS/Solver dataset doesnt contain any parametrics; to mimic a
hardpoint change that you would make in ADAMS/View, change the marker locations in
the .adm file.
5
Save this modified dataset file as car_suspension1.adm. Change the x-location to 419, 420,
and 421, saving the files as car_suspension2.adm, car_suspension3.adm, and
car_suspension4.adm, respectively. Each of these will be simulated, yielding 4 sets of
ADAMS/Solver output files that you can analyze.
Run the run_all.acf file through ADAMS/Solver using the same commands as in step 3 on
page 53.
10 Should a simulation run for any variable value, or should there be a range limiting the
54
Parametrics
:RUNVKRS3DUDPHWULFV
3HUIRUPLQJDGHVLJQRUVZHHSVWXG\
You can run a design, or sweep, study in ADAMS/Insight to see what happens when you run a
factor linearly through a range of values. This is often done when initially exploring the design
space of a model to help understand how a design variable influences a particular aspect of the
model.
7RUXQDVWXG\WKDWLVVLPLODUWRWKHSUHYLRXVFRPPDQGOLQHDQGWH[WHGLWRU
SURFHVVIURP$'$06,QVLJKW
1
Experiment: sweep_test
Model:
Script:
Last_Sim
Sweep Study
Linear
Number of Runs: 5
Select Apply.
10 Is it reasonable that the right toe angle is not dependent on the left tierod location?
_______________
Parametrics
55
:RUNVKRS3DUDPHWULFV
/HDUQLQJDERXWQRPLQDOPRGHOV
Any kind of design study, be it a DOE, optimization, variable sweep, and so on, requires bounds
for the variables that are being investigated. A response surface fit, for example, assumes that
the factor-to-response relationship can be expressed as a polynomial of some order. This means
that solutions exist for each combination of variables within the design space being considered.
A nominal model is one that represents a typical solution within the design space, and is also
robust when changes are made to it, meaning that it still solves in ADAMS/Solver correctly and
the results make physical sense.
Using the Table Editor as in the first section of the module, verify that you can alter
the location of the hpl_tierod_outer hard point by +/- 10 units in any direction, and the
model will solve without problems.
5HYLHZLQJHQWLWLHVWKDWFDQEHIDFWRUV
Only certain entities inside of ADAMS/View are automatically identified by ADAMS/Insight
as potential factors. These are construction points (or hard points) and design variables. Other
entities, such as marker locations or geometry attributes, arent inherently parametric, so they
arent considered factors in ADAMS/Insight. If a model doesnt contain the parametrics that
you need, you can always add the required parametric relationships.
7RLQYHVWLJDWHSDUDPHWULFVZLWKLQ$'$069LHZ
1
Run a simulation for 2 seconds and 100 steps to create a simulation script in the
background.
Export the model to ADAMS/Insight, specifying the current model and Last_Sim as the
simulation script.
Close the ADAMS/Insight window, returning to ADAMS/View. Open the Table Editor
(From the Tools menu, select Table Editor) and filter on Points in the lower left corner.
56
Parametrics
:RUNVKRS3DUDPHWULFV
8
10 How many potential factors are there now that one of the construction points is gone?
_______________________________________
11
Return to ADAMS/View and add a design variable to the model. Create a design variable
that specifies the tire thickness as follows:
This creates a design variable having the current length value of the cylinder.
From the Build menu, point to Design Variable, and then select Modify. Change the
standard value of the design variable and the wheel width should update accordingly.
Parametrics
57
:RUNVKRS3DUDPHWULFV
5HYLHZLQJHQWLWLHVWKDWFDQEHUHVSRQVHV
ADAMS/Insight looks for all of the defined design objectives within an ADAMS/View model
to determine candidate responses. The objective entity can be created in a number of different
ways within ADAMS/View. You can view these methods in the Modify Design Objective
dialog box.
7RYLHZWKHH[LVWLQJREMHFWLYHVZLWKLQWKHFDUBVXVSHQVLRQPRGHO
1
From the Simulate menu, point to Design Objective, and then select Modify.
As in the previous module, list the five ways in which a design objective can be defined:
1. __________________________
2. __________________________
3. __________________________
4. __________________________
5. __________________________
(YDOXDWLQJREMHFWLYHV
Because a proper objective formulation is important in correctly defining your DOE study,
youll create one objective of each type for this model. Before creating the objectives, you need
a method to evaluate an objective value.
7RHYDOXDWHWKHREMHFWLYH
1
page 25.
58
Parametrics
:RUNVKRS3DUDPHWULFV
&UHDWLQJREMHFWLYHV
You can create an objective based on the following:
Creating objectives based on result set component and existing result set component
&UHDWLQJREMHFWLYHVEDVHGRQPHDVXUHV
Objectives based on measures are the simplest kind of objectives to create: make a measure
object in ADAMS/View, then create an objective and reference the measure object. Select from
properties of the measure such as maximum value, last value, average value, and so on.
In this section youll create an objective of this type that measures the maximum displacement
magnitude in the upper left ball joint, joint jl_uca_ball.
7RFUHDWHWKHREMHFWLYH
1
Right-click on the ball joint jl_uca_ball and create a measure on the marker
gel_upper_control_arm.marker_10 that measures the displacement magnitude. Name the
measure meas_marker_displacement.
From the Simulate menu, point to Design Objective, and then select New. Create an objective
with the following parameters:
Name: obj_max_displacement
Definition: Measure
Measure: meas_marker_displacement
Rerun the simulation and evaluate this objective on the command line to verify that it
works as expected.
Parametrics
59
:RUNVKRS3DUDPHWULFV
&UHDWLQJREMHFWLYHVEDVHGRQUHVXOWVHWFRPSRQHQWDQGH[LVWLQJ
UHVXOWVHWFRPSRQHQW
These are simple objectives to create as well. Instead of getting data from a measure object, the
objective gets data from a REQUEST or an existing result set. The existing results set method
is a newer way to create objectives. It can access the same data as REQUESTs, but it gives you
the advantage of browsing through a results set in ADAMS/View, looking for the component
you want.
The existing objectives in the model, toe_left_REQ and toe_right_REQ, are based on
REQUESTs.
7RFUHDWHDQREMHFWLYHEDVHGRQ5(48(67V
In the Result Set Component text box, specify the REQUEST name.
7RFUHDWHDQREMHFWLYHEDVHGRQDQH[LVWLQJUHVXOWVHWFRPSRQHQW
1
Use the Browse option to navigate through the result set objects to specify the result you
want.
&UHDWLQJREMHFWLYHVEDVHGRQ$'$069LHZIXQFWLRQV
These are more powerful, but somewhat difficult to create. An ADAMS/View function can
operate on the data returned from a simulation, accessing the rich functions available in
ADAMS/View (see the guide, Using the ADAMS/View Function Builder, for a reference of all
available functions). You would use an ADAMS/View function to calculate a quantity that isnt
a minimum, maximum, last, or average value that is provided with the REQUEST- and
measure-based techniques.
For example, you use a function if you want to calculate a quantity in the frequency domain. A
Fast Fourier Transform (FFT) can be done on a dataset using the ADAMS/View function
FFTMAG(). Because the FFT must be done on a complete dataset, the calculation must be done
after a simulation is run, which is the case with an ADAMS/View function-based objective.
60
Parametrics
:RUNVKRS3DUDPHWULFV
To get the maximum magnitude in the frequency domain of a joint angle measure named
JointAngle, for example, the ADAMS/View expression language would be:
AmpMax = MAX(FFTMAG(JointAngle, COLS(JointAngle)))
Create a measure named meas_uca_angle that tracks the joint angle in the revolute joint
jl_uca.
Function:
MAX(FFTMAG(meas_uca_angle, COLS(meas_uca_angle)))
Arguments:
analysis
Passing analysis as the argument to the function is essential because the objective calls the
function and passes into it the analysis object containing all results from the last simulation.
Without this analysis object, the function wouldnt know from which analysis to extract the
meas_uca_angle data.
Parametrics
61
:RUNVKRS3DUDPHWULFV
5
Test the function by selecting Evaluate. Name the function func_max_fft_mag and select OK.
The Create Design Objective dialog box should now look as shown next.
Ensure that there are simulation results in the model, then test the objective by evaluating
it on the command line.
&UHDWLQJREMHFWLYHVEDVHGRQ$'$069LHZYDULDEOHDQGPDFUR
This is probably the most powerful way to create an objective, as macros allow for a lot of
flexibility in calculating quantities. While an ADAMS/View function is a single function
expression that can get long and complicated, a macro can contain lines of computations in the
same manner that a FORTRAN or C subroutine does. Macros are, therefore, more readable than
an ADAMS/View function expression.
In addition, macros can directly interact with the ADAMS/View environment. For example, a
macro could run the model for a bit longer if the simulation didnt reach a desired configuration
within the simulation time. For more information on creating macros, see Automating Your
Work Using Macros, in the guide, Customizing ADAMS/View.
To illustrate this, youll create an objective based on a macro that does the same computation as
the ADAMS/View function example did.
62
Parametrics
:RUNVKRS3DUDPHWULFV
7RFUHDWHWKHREMHFWLYH
1
Because there is no macro created yet, right-click on the Macro text box and select Create.
Name the macro mac_find_max_freq_mag and enter commands that are equivalent to the
ADAMS/View expression presented previously. Heres what the macro commands could
look like, splitting up the expression and adding comments to make things more readable:
!$analysis:T=analysis
! Macro to find max magnitude in frequency spectrum of
! measure named meas_uca_angle
!
! Create and initialize a variable that is the FFT of the measure:
variable set variable_name = the_fft &
real_value = (eval(FFTMAG(meas_uca_angle, COLS(meas_uca_angle))))
!
! Create and initialize a variable that contains the max value of above FFT:
variable set variable_name = max_mag real_value = (eval(max(the_fft)))
!
! To finish up, copy this value into variable named var_max_mag, as
! the objective expects:
variable set variable_name = var_max_mag real_value = (eval(max_mag))
Comment lines in macros start with exclamation points, with the exception of the very first line
which defines the type and name of any arguments passed into the macro.
Parametrics
63
:RUNVKRS3DUDPHWULFV
4
Specify the variable name that the objective uses. This must be the same name as the
result variable, var_max_mag. The Create Design Objective dialog box should now have
these parameters:
Again, check the objective value on the command line. It should return the same result as
the ADAMS/View function objective definition.
Export the model to ADAMS/Insight to check that the new objective appears as expected.
There are several ways to create objectives in ADAMS/View. The higher complexity in
ADAMS/View functions and macros offers powerful flexibility for creating very specific
measures. Standard MSC.ADAMS quantities are very easy to capture using the Measure and
Request methods.
64
Parametrics
&/$66,&$/'2(6
Use a classical DOE approach to represent a complex mechanical system as a
Web page model for others to use.
7KLVPRGXOHLQFOXGHV
65
,GHQWLI\LQJ:KDW<RX:DQWWR/HDUQ$ERXW
,GHQWLI\LQJWKHUHVSRQVHVWRVWXG\
As the designer, you must identify the qualities you are trying to affect and identify
which measurables indicate these qualities.
You may need to set up new objectives and modify existing ones to ensure that the
quantities being measured are correct.
Dont try to create a single, all-encompassing objective. You can create several
different basic objectives, then later create a combined objective with weighting
factors.
([DPSOH
The loads department may be interested in bearing reactions while the motor expert may only
be interested in drive torque requirements. You could create an objective for each of these to
satisfy both groups.
66
Its important to stop and think about what youre really interested in before starting a DOE study.
Classical DOEs
6FUHHQLQJ'2(VIRU,PSRUWDQW)DFWRUV
6RPHIDFWRUVDUHPRUHLPSRUWDQWWKDQRWKHUV
For any model with a large number of factors, it is very difficult to gauge which
factors affect which responses.
Confounding (factors interacting with one another) confuses the issue even more,
making design sweep study results misleading.
A screening DOE simply queries the system about an operating point and relates the
response changes to factor changes. This roots out the big player factors, letting you
intelligently reduce the size of your design space.
Screening DOE
Factor effect
indicators
Reduced design
space
Classical DOEs
67
Once youve identified what youre interested in (the responses), you typically need to cut down the
number of factors that contribute to your responses, therefore the screening study. This just identifies the major
players in the factors.
)LWWLQJ5HVSRQVH6XUIDFHVDQG3XEOLVKLQJ'DWD
)LWWLQJUHVSRQVHVXUIDFHV
Once a minimum set of factors has been identified, a response surface can be fit.
Linear
Quadratic
Cubic
3XEOLVKLQJGDWD
68
This allows others to enter factor values and see the response results immediately.
Classical DOEs
A response surface is used to relate the inputs (factors) and outputs (responses). It is easy to share with others and
does quick calculations.
:RUNVKRS&ODVVLFDO'2(
This workshop takes about one hour to complete.
3UREOHPVWDWHPHQW
Your supervisor and your co-worker want to test different specifications on your pump model,
but dont use MSC.ADAMS regularly. Use a classical DOE process to create a response surface
model in a Web page that lets them easily investigate their respective design problems.
*HWWLQJVWDUWHG
First, you will start ADAMS/View and import the model.
7RVWDUW$'$069LHZ
1
Start ADAMS/View from the command line, by doing one of the following:
UNIX:
Windows:
Classical DOEs
69
:RUNVKRS&ODVVLFDO'2(
3
Run the simulation script run_pump to generate results and verify the pump motion.
Verify the outputs by browsing through the plots in ADAMS/PostProcessor. Note the
new measure main_bearing_axial_load.
Return to ADAMS/View and look at the design variables in the model. There should be
new variables named:
drive_shaft_radius
full_on_time
orifice_damping_coefficient
6SHFLI\LQJLPSRUWDQWUHVSRQVHV
The first step is to determine which responses relate to which design goals. Look through the
objective definitions in the model and select one for each of the design tasks specified by your
co-workers. Write the objective name in the blanks below.
Design Tasks:
Best Objective:
____________________________________
Co-worker is studying stresses on the base
part and sizing the bearing needed for the
main shaft.
____________________________________
For reference, you would choose obj_average_drive_torque to satisfy the supervisors design
requirements and obj_max_bearing_load for the co-workers task.
70
Classical DOEs
:RUNVKRS&ODVVLFDO'2(
,GHQWLI\LQJLPSRUWDQWIDFWRUVWKHVFUHHQLQJVWXG\
To provide your supervisor and co-worker with a viable design tool, youll have to pare down
the factor list. You could simply perform a response surface fit of the two responses with respect
to all of the factors, but a better way is to perform a screening DOE first.
Before doing a screening DOE, investigate the model and try to determine which factors will
affect the responses. In the exercise below, draw a line from each response on the left to each
of the two factors that you think will affect the response the most. One has been done for you.
Youll verify the predictions in the screening study next.
([HUFLVH
Response:
Factor:
obj_average_drive_torque
drive_shaft_radius
full_on_time
orifice_damping_coefficient
obj_max_bearing_load
outer_ring_color
piston_length
piston_radius
shaft_speed
Now perform a screening DOE to test your predictions. A screening DOE is generally used to
identify the major contributors to the responses. It simply perturbs the model (evaluates at the
design space extents) and records the responses. It can show you which factors have the biggest
effect and which have relatively little effect so that you can perform a response surface fit with
a reduced set of factors.
Classical DOEs
71
:RUNVKRS&ODVVLFDO'2(
7RSHUIRUPDVFUHHQLQJ'2(ZLWKWKHPRGHO
1
Promote all six design variable candidates to the inclusions list. Go through the list and
change the abbreviation for each to the factor name.
Interactions
Note: For more information on Design Specification parameters, press F1 and review
Look at the Design Type choices. How many runs are needed to do a Full Factorial
experiment? _________________
Select Apply.
72
Fit the results in ADAMS/Insight, and export the results to a Web page. Name the Web
page screening_study.htm.
Classical DOEs
:RUNVKRS&ODVVLFDO'2(
12 Look at the results in the ADAMS/Insight window.
The results will be covered in more depth in the next module, but for now look at the Rules
Summary node under Summary. The icons indicate that the model fit is good, but the
The next module goes through all of the results presented. For now youre only interested
in the Web page results.
14 In the upper window, select Effects checkbox.
This creates Pareto diagrams of the relative factor effects, giving a visual idea of which
factors are most important for each response.
15 What are the top two factors that effect obj_average_drive_torque?
__________________________, _______________________________
16 What are the top two factors that effect obj_max_bearing_load?
__________________________, _______________________________
17 To pare down the size of the design space, remove two of the factors to leave four
Classical DOEs
73
:RUNVKRS&ODVVLFDO'2(
)LWWLQJUHVSRQVHVXUIDFHVDQGSXEOLVKLQJGDWD
Now you can perform a response surface fit using the four factors and two responses.
7RILWWKHUHVSRQVHVXUIDFH
1
Save the screening study as screening_study.xml, so you can return to the results later if you
need to.
To speed up the evaluations, go back to ADAMS/View and make sure that the execution
display is set to Never update.
Promote the four factors and two responses, remembering to give them meaningful
abbreviations.
Select the Design Specification tool to create a new design. This time, use the parameters:
Interactions
Look at the number of runs for a Full Factorial design. This should be far less than seen
previously.
The Full Factorial runs every permutation of the factors and typically is a lot larger than the
other schemes. In this case, you likely have the time to run all 16 trials, so choose Full
Factorial.
Run the trials then return to the ADAMS/Insight window by displaying the experiment.
Fit the results to generate the statistics.
Look at the entries for each of the two responses. The Residuals node presents a table with
the actual and estimated values. Compare the differences for each response.
_________________________________________
74
Classical DOEs
:RUNVKRS&ODVVLFDO'2(
11
Look at the response magnitudes and compare these to the residual values. The residuals
shouldnt be too different as a percent error value.
4XHVWLRQV
1
An interactions model was used to fit the results. What do the interaction terms
represent? ______________________________
If you changed the model order to a quadratic model, would there be more or less trials
needed? ______________________________
$GGLWLRQDOWDVNV
If you have time, create an experiment named rs_quadratic that performs a quadratic model fit
on the data. Use the D-Optimal model with about half of the number of runs that a Full Factorial
would need.
1
Do the term values seem to improve with this higher order (and more expensive) model?
______________________________
Classical DOEs
75
:RUNVKRS&ODVVLFDO'2(
76
Classical DOEs
5(68/76,17(535(7$7,21
Use ADAMS/Insight to design an experiment to discover a known response.
Use visual cues to refine the experiment.
7KLVPRGXOHLQFOXGHV
Equation Order, 78
Analyzing Results, 82
-5 <= X1 <= 5
-5 <= X2 <= 5
77
(TXDWLRQ2UGHU
:KDWHTXDWLRQRUGHUVKRXOGEHXVHG"
ADAMS/Insight lets you model your system as a fit of the responses with respect to the factors.
The fits are:
Linear
Interactions
Quadratic
Cubic
You can easily visualize Linear, Quadratic, and Cubic least-squares regression fits for 1 factor
and 1 response. The following are examples of these fits:
Linear
Quadratic
Cubic
78
Results Interpretation
(TXDWLRQ2UGHU
The order of fit, corresponding equations, and minimum number of data points (trials) are
shown below:
Fit Type:
Equation:
Unknowns:
Linear
A + BX1 + CX2
Interactions
Quadratic
Cubic
10
Results Interpretation
GX1X22
79
([SRUWLQJDQG,PSRUWLQJ
([SRUWLQJDGHVLJQVSDFH
This is typically used for physical DOEs, such as the tuning of a physical prototype at
a testing track. This isnt usually applicable if youre using ADAMS/Insight solely
with the other MSC.ADAMS products.
,PSRUWLQJDZRUNVSDFH
80
After filling in the response values, you can then import a csv file into
ADAMS/Insight as a work space. You can perform the fitting on the data that you
entered for the responses.
Results Interpretation
7KH:RUN6SDFH&ROXPQ&DOFXODWRU
The Work Space Column Calculator is a built-in tool for manipulating factor or response
column data. It is used when you want to scale a factors column value, or create a user-defined
response value from a simple algebraic expression.
It is easy to assign a known response value:
Response = 3 + 7X1 + X2 + 4X1X2 + 5X2^2
The expression language is standard Python syntax. Press F1 in the calculator window for more
information on:
Python syntax
Examples
Results Interpretation
81
$QDO\]LQJ5HVXOWV
*UDSKLFDOLQGLFDWRUV
6WDWLVWLFV
82
ADAMS/Insight compares the assumed solution to the actual data and provides a
wealth of statistical information. Refer to the ADAMS/Insight online help for
definitions of the terms, including:
Term significance
Coefficients
Residual values
Results Interpretation
$QDO\]LQJ5HVXOWV
5XOHVRIWKXPEVXPPDU\
Provides a quick overview of the three main indicators for each response in the
model. Indicates important quantities to focus on for each response.
*RRGQHVVRIILW
How do the predicted values in the model compare with the actual data?
R-squared and R-squared-adjusted indicate the variance in the predicted results versus
the real data. A score of 1 is a perfect fit.
Regression Significance (P) is the probability that the fitted model has no useful
terms. Small values of P (less than 0.02) indicate that the fit does have useful terms.
R/V: Range-to-Variance values greater than 10 mean that the fit likely predicts values
well. R/V scores less than 4 mean that values may not have high confidence.
Results Interpretation
83
$QDO\]LQJ5HVXOWV
*RRGQHVVRIILWH[DPSOH
One dataset, two regression fits. The statistics back up the visual effect.
84
Results Interpretation
$QDO\]LQJ5HVXOWV
7HUP6LJQLILFDQFHV
Term significances estimate the probability that the term is insignificant in the calculated fit.
Very low scores mean that the term is highly significant in the fit.
The example below is the quadratic fit from page 84. Note that the constant term and factor_01
squared are most significant. Is it possible for a valid fit without including the second (factor_1)
term?
6WXGHQWL]HG5HVLGXDOV&RRNVVWDWLVWLFV
These quickly show the influence of each run on the fit. They can help identify outlier results
that can be removed before the model is re-fit.
Results Interpretation
85
$QDO\]LQJ5HVXOWV
7HUPFRHIILFLHQWV
Summarizes the fitted model characteristics. For each response, it shows the coefficient
(multiplier) for each term used in the fit.
Each row has the term definition
(constant, factor, factor*factor,
factor squared, and so on) with the
coefficient in front of each factor
coming from the fit process.
This means:
Response_2 = 3.2567 * 1 1.1103 *X1 1.4707*X2 + 3.1864*X3 + 1.421 *X1*X2 +
0.68597*X1*X3 + 1.0783*X2*X3
and,
Response_1 = 3*X1 + 4*X2 + 5*X1*X
86
Results Interpretation
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
This workshop takes about two hours to complete.
3UREOHPVWDWHPHQW
Use ADAMS/Insight to design an experiment to discover a known response. Use visual cues
and the ADAMS/Insight online help when considering statistics.
Defined Response = 3 + 7X1 + X2 + 4X1X2 + 5X22
-5 <= X1 <= 5
-5 <= X2 <= 5
*HWWLQJVWDUWHG
First you will start ADAMS/Insight.
7RVWDUW$'$06,QVLJKW
1
UNIX:
adams03 -c ainsight
&RQVLGHULQJWKHPRGHOWKDWLVEHLQJLQYHVWLJDWHG
7RUHYLHZWKHPRGHO
1
Look at the response that has been defined. This equation is the real system that
ADAMS/Insight will model. What is the highest order term in this equation?
_____________________________________
Results Interpretation
87
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
2
ADAMS/Insight can fit response surfaces to your system that are linear, interactions,
quadratic, or cubic. Referring to the general form of each equation presented earlier and
the order of the defined response above, circle the model below that is likely the best fit
for this experiment:
Linear
Interactions
Quadratic
Cubic
%XLOGLQJWKHPRGHO
You will build a full factorial RSM experiment using two factors and a quadratic model to
capture the squared term effects in the response definition equation.
7REXLOGWKHPRGHO
1
88
Results Interpretation
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
3
Name:
leave default
Type:
Continuous
Delta Type:
Absolute
Settings:
-5, 5
Assign a meaningful abbreviation (response_1) to your response. Leave all other default
values.
Select Apply.
From the Define menu, point to Experiment Design, and then select Set Design
Specification.
Quadratic
Full Factorial
No simulation script
10 Select Apply.
11
Results Interpretation
89
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
8VLQJWKH:RUN6SDFH&ROXPQ&DOFXODWRU
Now that the experiment is built, the response values must be filled in. To do this you can export
a workspace from ADAMS/Insight as a comma-separated value (csv) file that can be read in to
most spreadsheet applications, or use the workspace column calculator that is built into
ADAMS/Insight.
In this module, we will use the workspace column calculator in ADAMS/Insight to enter the
formula for the known response.
This calculator lets you enter simple expressions for any column of the workspace. So, you can
use it to:
The instructions for exporting a workspace in the form of a .csv file are included for reference
only.
7RXVHWKHZRUNVSDFHFROXPQFDOFXODWRU
1
90
Results Interpretation
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
4
Select OK.
Your workspace should now be complete and look as shown next.
7RH[SRUWWKHZRUNVSDFH
Following are the instructions for exporting a workspace in the form of a .csv file. They are
included for reference only, as we used the workspace calculator instead. If you had data coming
from a different source, or the workspace calculator didnt suit your needs, you can use the
following steps to export the incomplete workspace and then import the completed workspace.
1
From the File menu, point to Export, and then select Work Space.
Import this new .csv file into a spreadsheet application and fill in the response column
using the formula from the problem definition:
Response = 3 + 7X1 + X2 + 4X1X2 + 5X22
Save the completed spreadsheet as workspace_completed.csv and import the workspace into
ADAMS/Insight (from the File menu, point to Import, and then select Work Space).
Results Interpretation
91
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
)LWWLQJUHVXOWV
Before analyzing the results, the fit must be done on the work space.
7RILWWKHUHVXOWV
Fit the model to the data using the Fit results tool on the toolbar.
$QDO\]LQJUHVXOWV
Now you can analyze the results by looking at the model analysis summary.
7RDQDO\]HWKHUHVXOWV
1
7RILQGGHILQLWLRQVLQWKHRQOLQHKHOS
1
92
Results Interpretation
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
5HYLHZLQJVXPPDU\UHVXOWV
7RUHYLHZVXPPDU\UHVXOWV
1
Though we havent talked about these items yet, does it seem reasonable that the Fit and
Residuals items have green lights for good?
_______________________________________________________
5HYLHZLQJJRRGQHVVRIILWUHVXOWV
7RUHYLHZJRRGQHVVRIILWUHVXOWV
1
Inspect the Fit statistics by selecting the Goodness-of-fit item. All of the statistics presented
indicate how well the model fits the measured data. Open the ADAMS/Insight glossary
and look up the definition of R-squared (the R2 statistic under Goodness-of-fit). Does the
model fit the experimental data well?
_______________________________________________________
Next look at the Adjusted R-squared definition in the ADAMS/Insight glossary. The
present model should have a value of 1, indicating a perfect fit. If you had fit a linear
model and found poor R2 and R2adjusted statistics, you could go back and re-fit a
quadratic model to your results.
Results Interpretation
93
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
3
The P statistic indicates whether or not a regression or term is insignificant. In the model
summary context, the P statistic refers to whether or not the regression fit is insignificant
(see Probability and Regression Significance in the ADAMS/Insight glossary for more
information). What is the value for the present model? ____________________
Does this mean that there is a high or low probability that the model fit is a good one for
this experiment (circle one)?
High
Low
The R/V or Range-to-variance ratio, indicates how well the model predicts values at the
data points. The ADAMS/Insight glossary indicates that a high value for the
R/V ratio is what? ________________
5HYLHZLQJVLJQLILFDQFHV
The statistics presented in this node indicate which terms of your model are useful and which
arent. This means that if youve used a quadratic model and all of the squared terms related to
your factors are insignificant, then perhaps you should reduce the order of your model (to an
interactions model, or a linear one).
Before looking at the significance values, investigate the terms displayed. Remember the
general form of the model that you have fit in this experiment. The single response is to be
approximated as a quadratic response surface equation in the two unknowns (factors).
Therefore, ADAMS/Insight fits the trial run data to an quadratic equation of the form:
Response = A + BX1 + CX2 + DX1X2 + EX12 + FX22
where the least-squares fitting process determines the A, B, C, D, E, and F coefficients. Take a
look at the description of each line in the Term column.
94
Results Interpretation
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
7RUHYLHZVLJQLILFDQFHUHVXOWV
1
How many terms were actually specified in the problem statement equation?
_______________
As stated in the ADAMS/Insight glossary, the Term Significance values under response_1
show the probability that the particular term does not affect the response.
Is it proper that the terms with very small values have green (good) icons?
__________________
Is it proper that the only term having a bad icon (red with an X) is one of the squared
terms? (Refer to the response definition equation specified earlier.) Why is the squared
term bad?
_____________________________________________________________________
To emphasize the above, suppose the response definition equation that was initially
specified had looked like this:
Response = 3 + 7X1 + X2 + 4X1X2
and you had fit the same quadratic model.
Which of the terms in the Significances table would likely have had bad icons?
_____________________________________________
Results Interpretation
95
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
5HYLHZLQJ&RHIILFLHQWV
7RUHYLHZFRHIILFLHQWUHVXOWV
1
Scroll down to the Term coefficients entry. Consider the assumed response surface equation:
Response = A + BX1 + CX2 + DX1X2 + EX12 + FX22
and the response definition equation:
Response = 3 + 7X1 + X2 + 4X1X2 + 5X22
Its quite clear from this table the term coefficients that ADAMS/Insight has determined for
the unknowns (A, B, C, D, E, F) in the quadratic model.
All of the coefficients are correct (the constant term is 3, the X1 term is 7, and so on)
except for the X12 term. Shouldnt this term be zero?
_____________________________________________
96
Results Interpretation
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
5HYLHZLQJ5HVLGXDOV
The last item that youll look at under the Summary node is Residuals. This column is a quick
way to verify that your response surface is accurate, showing the difference between the actual
trial value and the value as predicted by the response surface equations. These values are all
essentially zero for this experiment, as expected.
Each response has a Terms node underneath it that quickly summarizes the important points
discussed previously.
7RORRNDWWKHUHVSRQVHV
1
Probability that the term is not insignificant (icons show this at a glance)
The Fit entry gives model statistics at a glance. The R2 and R2adjusted values are likely of
the most interest; you can review the other statistics if the R2 and R2adjusted values dont
look good.
The difference between the least squares predicted response surface and the actual model
value is shown under the Residuals node for each of the trial runs that was performed.
3
Look at the values under the Residuals entry to ensure that the residual (error) values are
about the same for each trial.
An even distribution of error throughout all the trial runs is likely a sign of a reasonable
response surface fit to the design space. If only a few of the runs contained most of the error,
perhaps your design space is too complex for the order of model that youre trying to fit.
The ADAMS/Insight glossary defines the condition number, warning against results that
present large condition numbers.
Results Interpretation
97
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
5HILQLQJWKHPRGHO
The simple example that youve been looking at presents all the ideal statistics (R2 = 1,
P = 1.58E-30, and so on) that likely wont be found in a real experiment. What can you do if the
statistics indicate problems with your model? You can refine your model by doing the
following:
Remove Outliers: Lets you completely remove a single trial from the results. This is
more applicable in a physical DOE when you have inadvertently altered other
factors and want to remove the trial.
Remove Terms: Lets you remove a term from the fit. Perhaps your fit has an
interactions term, but there is no actual confounding in the experiment. The
interactions term has a high probability of not affecting the response (the red
circle with black X), so you want to remove this term completely from the fit
model.
Change Order: Lets you change the entire model order. This does the same thing as
the Remove Terms function, changing the assumed equation of the response
surface.
Now refine the existing model by getting rid of the bad term in the response equation.
7RPDNHWKHILWHYHQEHWWHU
98
Referring back to the Terms node under response_1, which term could be removed from the
assumed response equation? ______________________________________
Remove the X12 term from the model. Before doing this, write down the value of P in the
Goodness-of-fit node. ___________________
From the Tools menu, point to Refine Model, and then select Remove Terms.
Select factor_12.
Results Interpretation
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
4
The response surface equation and the defined response now have the exact same terms so the
model fit is even better. What if you had originally chosen an interactions fit for the model? How
good of a fit could you achieve with a linear model for this problem? This can be investigated
as well using the Refinements node.
7RUHGXFHWKHPRGHORUGHUWRDQLQWHUDFWLRQVILW
1
From the Tools menu, point to Refine Model, and then select Remove Terms.
Select OK.
From the Tools menu, point to Refine Model, and then select Change Order.
Select Interactions.
Select OK.
7RORRNDWWKHQHZILWVWDWLVWLFV
1
Investigate the Fit and Terms nodes under response_01. How well does the interactions
model approximate the response? __________________
A linear model isnt appropriate for fitting the current design space. What if the factor
range was reduced to a smaller interval such as -0.5 <= X <= 0.5. Could a linear
response surface be used on a smaller portion of the design space?
___________________________________
Results Interpretation
99
:RUNVKRS5HVXOWV,QWHUSUHWDWLRQ
100
Results Interpretation
86,1*7+($6&,,&21'8,7
Use ADAMS/Insight and ASCII conduit with ADAMS/Solver simulation files
that represent a bungy-jump event.
7KLVPRGXOHLQFOXGHV
Overview, 102
Process, 104
101
2YHUYLHZ
102
7HPSODWHVDQG([HFXWLRQ
Stores file templates that you can parameterize using the interface.
Allows you to specify pre- and post-run steps, and other customizable features.
103
3URFHVV
Run ADAMS/Insight.
Model files
104
ASCII Editor
ADAMS/Insight
:RUNVKRS8VLQJWKH$6&,,&RQGXLW
This workshop takes about one hour to complete.
3UREOHPVWDWHPHQW
Use ADAMS/Insight and ASCII conduit with ADAMS/Solver simulation files that represent a
bungy-jump event.
*HWWLQJVWDUWHG
Here you will create your working directory and copy the necessary files.
7RJHWVWDUWHG
1
Create a working directory called ain_asc_adm. This directory will contain all of the files
for this tutorial.
Copy the following files from <install_dir>/ainsight/examples to the newly created working
directory:
ain_tut_101_asc_adm.acf
ain_tut_101_asc_adm.adm
From a command prompt in the ain_asc_adm directory, copy the two MSC.ADAMS
simulation files by executing the following commands:
On Windows:
On UNIX:
cp ain_tut_101_asc_adm.acf bungy.acf
cp ain_tut_101_asc_adm.adm bungy.adm
105
:RUNVKRS8VLQJWKH$6&,,&RQGXLW
4
3DUDPHWHUL]LQJWKHV\VWHP
Here, you will create an ADAMS/Insight ASC system. You will first start the
MSC.ADAMS/ASC editor and import two text files, bungy.adm and bungy.acf. You create an
ASC template by importing a text file(s) into an ASC system. In this tutorial, you import two
text files, which results in two ASC templates. (An ADAMS/Insight ASC system can have
many ASC templates.)
Once youve created these ASC templates, you will use the ADAMS/Insight ASC editor to
parameterize the ASC templates by annotating them. This process involves delineating regions
of text in the templates. In this way, you can identify parts of the template that will subsequently
be replaced. This substitution process occurs when variants of the nominal system are
automatically generated as part of a design study or DOE.
106
:RUNVKRS8VLQJWKH$6&,,&RQGXLW
7RSDUDPHWHUL]HWKHV\VWHP
1
From the command prompt, start the ADAMS/Insight ASC Editor from the working
directory as follows:
From the File menu, select Import, or select the Import text file toolbar button.
Select the ASCII files bungy.acf and bungy.adm by holding the Ctrl key and clicking each
file.
Select Open.
Annotate the two ASCII templates by identifying the regions that will be substituted, as
follows:
For example, if you have a string such as, PART/02 , MASS = 160.0, CM = 0203 and you
want to alter the mass of the part, you would first highlight the numeric value of 160.0,
and then right-click and assign the highlighted text to a variable (by either creating a new
variable, or referencing an existing variable displayed in the shortcut menu). When
creating a new variable, you can define the following:
Format: Controls how the value will be printed. The convention follows the C
printf() convention of %d for integer, %f for float, %e scientific, and %s for string.
On UNIX, use the man printf command to get more information on this numeric
formatting convention. In most cases, you dont need to modify the default value.
Note: The double curly brace delimiters '{{' '}}' that appear in the text file are the
107
:RUNVKRS8VLQJWKH$6&,,&RQGXLW
8
Change the value of the Name text box from F_05 to mass.
Select OK.
The corresponding text is modified as follows:
From:
PART/02 , MASS = 160.0, CM = 0203
To:
PART/02 , MASS = {{mass=160.000000}}, CM = 0203
12 Highlight the numeric value of the function of the free-length variable.
13 Right-click and select Create.
14 In the Name text box, enter free_length.
15 Select OK.
16 Select the IC value of the free-length variable.
17 Right-click and select Replace.
18 Pick the variable free_length.
parameters:
From: VARIABLE/02, IC=4.0, FUNCTION=4.0
To: VARIABLE/02, IC={{stiffness}}, FUNCTION={{stiffness=4.0}}
108
:RUNVKRS8VLQJWKH$6&,,&RQGXLW
20 To parameterize the title of the simulation, add the predefined variable of ascTrialName to
the title description so that the first line of bungy.adm ASC Template looks as follows:
Bungy Jump (ADAMS/Insight ASCII Conduit) {{ascTrialName}}__bungy.adm
Note: Be sure that there are two underscores between the closing curly brace and
bungy.
following:
{{ascTrialName}}__bungy.adm
{{ascTrialName}}__bungy
Note: Be sure that there are two underscores between the closing curly brace and
bungy.
23 Specify ASC template properties specific to the bungy.acf ASC template: from the Edit
On Windows:
On UNIX:
109
:RUNVKRS8VLQJWKH$6&,,&RQGXLW
25 Enter the following Python dictionary definition in the Post Operations (Dict) text box:
{total_length:plts:max:req_1:3, max_acc:plts:max:req_1:4}
This string specifies what happens after the simulations are complete. Specifically, what
parts of the simulation results files will be interrogated or how the postprocessing will
occur.
Note: You can see an example of this string on a commented-out line in the bungy.adm
file.
26 Select OK.
Now you will specify some optional ASC system attributes, such as a name and
description. This can be helpful for future reference.
27 From the File menu, select ASC Properties.
Name: Jump
Select Save.
This creates a file on disk called j.xml. This is the ASC system with the two ASC
templates. You can view this file using a text editor or a browser.
31 From the File menu select Export Experiment.
110
:RUNVKRS8VLQJWKH$6&,,&RQGXLW
&UHDWLQJWKHH[SHULPHQW
Here you will create your experiment.
7RFUHDWH\RXUH[SHULPHQW
1
tool.
In the Design Specification form, select Full Factorial as the Design Type.
The *_mer.py file is generated in the current directory. This Python script file works with
the ASC system file, and can be used to build, run, and post-process the ASC systems
defined in the _mer.py file. You can run it from the command line using the
MSC.ADAMS Python commands, or from the ASC system editor using the toolbar
buttons diff, run one, and run all.
Note: For more information on the options available with the _mer.py file, execute one
Select Yes when youre prompted to process the ASC system file j.xml.
Click OK.
From the File menu, select Exit, being sure to save your experiment.
111
:RUNVKRS8VLQJWKH$6&,,&RQGXLW
5XQQLQJ\RXUH[SHULPHQW
Here you will run the ASC Multi-Event Regulator (_mer.py) file, test the configuration, and run
trials.
7RUXQWKH$6&0XOWL(YHQW5HJXODWRUILOH
1
Open a command prompt window and change to the ain_asc_adm working directory.
Note: To get help, enter one of the following:
To test the configuration and only run the first trial, enter one of the following
commands:
The results of this operation are placed in a subdirectory with the default prefix of tst.
3
To check that the results files were created, go to the tst_dir subdirectory and view its
contents.
Note: You can also use the toolbar icons to run the trials.
112
:RUNVKRS8VLQJWKH$6&,,&RQGXLW
,PSRUWLQJDQGUHYLHZLQJWKHUHVXOWV
Here you will import the results into ADAMS/Insight and then review them.
7RLPSRUWDQGUHYLHZWKHUHVXOWV
1
tool.
From the File menu, point to Import, and then select Results.
To review the workspace matrix, in the treeview, expand Design and then select Work
Space.
113
:RUNVKRS8VLQJWKH$6&,,&RQGXLW
114
$'9$1&('723,&6
Evaluate failure-prone model simulations in batch mode and investigate the
actual toe-curve shape as a response. Tie factors for efficiency.
7KLVPRGXOHLQFOXGHV
115
%DWFKLQJ6LPXODWLRQ5XQV
DOE trials that fail in the ADAMS/View simulation phase will prevent subsequent runs from
being evaluated. There are two ways to get around this:
2SWLRQ
Instead of evaluating the DOE trials within ADAMS/View, you can use ADAMS/View to
generate a sequence of .adm files and an .acf that runs the trials on the command line.
Simulation failures dont affect the .acf script file.
Build
Run
116
Advanced Topics
%DWFKLQJ6LPXODWLRQ5XQV
2SWLRQ
The other option is to specify that ADAMS/View use external Solver when simulating. This
means that ADAMS/View manages the simulation runs, but simulation failures in a single trial
dont halt the entire evaluation process.
Advanced Topics
117
6XSSUHVVLQJ&KDUW8SGDWHV
By default, ADAMS/View (and other MSC.ADAMS products) plots response and factor values
for each trial. For models with many trials, this may take some time, as ADAMS/View must
overlay many curves in the strip-chart displays.
To speed up this process, you can turn off this plotting feature using the ADAMS/View
Command Navigator. Make these changes before transferring to ADAMS/Insight:
118
Advanced Topics
&RPSRVLWH5HVSRQVHV
7\SLFDOUHVSRQVH
What if you want to capture information about the shape of the curve? What if you
need a mathematical description of how much curvature one data trace has with
respect to another? Composite responses allow you to do a simple polynomial fit to
mathematically capture the shape of a curve.
Examples where you might require a mathematical description of a data trace include
toe, caster, and camber curves in automobile suspensions, mechanism trajectories for
collision avoidance, and velocity profile matching.
Advanced Topics
119
&RPSRVLWH5HVSRQVHV
&RPSRVLWHUHVSRQVH
120
A composite response is a group of several values that describe the shape of a curve.
A third-order composite response would be four coefficients that vary with model
configuration, so that each model in the design space has a curve associated with it.
Composite responses are implemented as objectives that return an array of values, not
just a single value.
The built-in POLYFIT() function takes a dependant array, an independent array, and
an order and returns the coefficients of the polynomial fit to the curve.
Advanced Topics
&RPSRVLWH5HVSRQVHV
In ADAMS/Insight, composite responses look like four separate responses. Note the
response values r_01(0) through r_01(3) in the following figure:
The Web page now contains dynamic plots that change with the factors:
Advanced Topics
121
7\LQJ)DFWRUV
Ties relate common factor values to each another. A tie can be used whenever two
variables vary linearly with respect to each other for all design configurations. Ties
reduce the number of rows in the workspace, therefore reducing the total number of
trials to be evaluated.
One factor can be tied to another if the two vary in a linear manner.
Before tie:
122
After tie:
A common tie example is vehicle parameters. Changes on the left side of the vehicle
typically need to be tied to changes on the right side to ensure symmetry.
Tied factors display a Tie tab to help you calculate the individual factor values.
Advanced Topics
:RUNVKRS$GYDQFHG7RSLFV
This workshop takes about one hour to complete.
3UREOHPVWDWHPHQW
Run the trial evaluations from the command line instead of in interactive mode. Create a
composite response representing the pseudo toe caster camber curve.
*HWWLQJVWDUWHG
First you will start ADAMS/View and import the model.
7RVWDUW$'$069LHZ
1
Advanced Topics
123
:RUNVKRS$GYDQFHG7RSLFV
5XQQLQJWKHVLPXODWLRQ
1
Run the simulation. Note how the wheel twists as it translates up and down.
Open ADAMS/PostProcessor and plot the toe_angle vs. wheel_height measures. The plot
should look something like this:
Change the location of the construction point HP3 by +/-10 units in any direction.
Rerun the simulation and overlay the new toe curve on the original plot.
*HQHUDWLQJWKH'2(ILOHV
Here, you will explore how the location of HP3 affects the toe curve in ADAMS/Insight.
7RJHQHUDWHWKH'2(ILOHV
1
Set appropriate abbreviations for the x-, y-, and z-direction factors.
124
Advanced Topics
:RUNVKRS$GYDQFHG7RSLFV
4
Interactions
Full Factorial
Build the .adm and .acf files needed for the simulation by issuing the command:
mdi insight build experiment=toe_curve_experiment
directory.
11
Does the number of .adm files correspond to the number of trials required in
ADAMS/Insight? _______________________________________
5XQQLQJWKHWULDOVRQWKHFRPPDQGOLQH
7RUXQWKHWULDOV
1
Open a new shell in the directory containing the new .adm and .acf files.
View the directory listing. There should now be .req, .res, .msg, and .gra files for each of
the trials.
Advanced Topics
125
:RUNVKRS$GYDQFHG7RSLFV
,PSRUWLQJWKHUHVXOWVLQWR$'$069LHZ
7RLPSRUWWKHUHVXOWV
1
Load the results into ADAMS/View using the command line syntax:
mdi insight load experiment=experiment ain_cmd_file=tst_bat.cmd
&UHDWLQJDFRPSRVLWHUHVSRQVH
Here youll make a new objective in ADAMS/View that will become a composite response in
ADAMS/Insight. You will use an ADAMS/View function called POLYFIT(), which returns
polynomial coefficients of a curve, to represent the toe angle with respect to wheel height.
7RFUHDWHWKHFRPSRVLWHUHVSRQVH
1
In ADAMS/View, create a new function (from the Build menu, point to Function, and then
select New).
POLYFIT takes an independent array, a dependant array, and the maximum order of
the polynomial. (For more information about POLYFIT, see the guide, Using the
126
The composite response should represent toe angle vs. wheel height, so the
independent and dependant quantities are:
Independent: req_toe_angle_vs_wheel_height.f2
Dependent: req_toe_angle_vs_wheel_height.f3
Advanced Topics
:RUNVKRS$GYDQFHG7RSLFV
The dialog box should now look as shown next:
Create a new objective on the command line. The Objective Builder dialog box doesnt
understand multiple return values from an ADAMS/View function, but the command line
does. Enter the following command (all on one line):
optimize objective create objective_name = obj_composite function_name =
func_toe_angle_vs_wheel_height n_components = 4
Test the objective that you just created by running a model and then evaluating the new
objective on the command line as follows:
optimize objective evaluate objective_name = obj_composite analysis_name = Last_Run
The objective value returned should be an array of four numbers representing the curve
coefficients.
5
Inspect the new response in ADAMS/Insight. It has a slightly different property than the
other responses, having a Response Type of User rather than Scalar.
Promote the same location in the factors list as the last time. Promote only the new
response for the responses.
Advanced Topics
127
:RUNVKRS$GYDQFHG7RSLFV
9
Create the work space, evaluate the trials interactively, and then return to
ADAMS/Insight and fit the data.
10 Look at the resulting workspace. Note how obj_composite has four components
associated with it, as shown in the following image. Each component of the response has
the same statistics associated with it as a scalar response.
11
Export a Web page representation, and then open the Web page.
This creates a plot of the composite response that looks as shown next:
13 Change the factor values, and then select Update Plots to replot the new composite
response. Notice that the curves change dynamically as you alter the Web page.
128
Advanced Topics
$16:(5.(<
This appendix contains the answers to the questions listed in this training
guide.
:KDWVLQWKLVDSSHQGL[
129
$QVZHU.H\IRU:RUNVKRS
Step 8, page 22:
Yes
Step 5, page 23: Upper link length is at the minimum value; lower link mount is at maximum
value.
Step 4, page 24:
130
obj_wingbox_clearance = 1.9321e+01 cm
Answer Key
$QVZHU.H\IRU:RUNVKRS
Step 2, page 32: outer_ring_color
Step 2, page 32: measure, result set, existing result set, ADAMS/View function, ADAMS/View
Baseline value
(270, 41, 300):
Baseline with
higher shaft
speed
(270, 41, 330):
Baseline with
smaller radius
(270, 38, 300):
Obj_total_pump_output
1.0853175681E+
006 (mm**3)
1.4122400365E+0
06 (mm**3)
9.3099141277E+
005 (mm**3)
Obj_piston_volume
1.4258746577E+
006 (mm**3)
1.4258746577E+0
06 (mm**3)
1.2248441438E+
006 (mm**3)
Obj_average_drive_torqu
e
191.315
195.551
191.209
Objective:
design space should correspond to the variable lower-limit value in the work space.
Answer Key
131
$QVZHU.H\IRU:RUNVKRS
Step 2, page 42:
Objective:
Baseline
value:
Baseline with
higher shaft
speed:
Baseline with
smaller radius:
Obj_total_pump_output
1.1906E+06
1.3886E+06
1.0172E+06
(1.085E+6)
(1.412E+6)
(9.309E+5)
1.8270E+02
1.9677E+02
1.8235E+02
(191.31)
(195.55)
(191.21)
Obj_average_drive_torque
Step 3, page 42: The linear fit doesnt appear to be great. Perhaps a fit with higher order or
interaction terms might provide smaller differences between the predicted and actual responses.
Step 4, page 42: Linear, interactions, quadratic, cubic
132
Answer Key
$QVZHU.H\IRU:RUNVKRS
Step 8, page 54: Yes.
Step 9, page 54: Yes. Variable values change the model. Some models might not be physically
Answer Key
133
$QVZHU.H\IRU:RUNVKRS
Specifying important responses, page 70: Supervisor should use obj_average_drive_torque;
co-worker should use obj_max_bearing_load.
Exercise, page 71: Both responses use shaft_speed and orifice_damping_coefficient.
Step 6, page 72: 64 runs
Step 7, page 72: 22 to 64 runs
Step 15, page 73: shaft_speed, orifice_damping_coefficient
Step 16, page 73: shaft_speed, orifice_damping_coefficient
Step 17, page 73: shaft_speed, orifice_damping_coefficient, piston_radius, full_on_time
Step 10, page 74: The response obj_average_drive_torque has high residual values, but the
residuals need to be compared to the actual values. Comparing relative values for both responses
shows that the residuals arent that different for each.
Step 1, page 75: When you look at the percent error, the predicted values are similar for both
responses.
Step 2, page 75: Confounding of the factors; the factors dont affect each response in a simple
linear manner.
Step 3, page 75: More trials are needed for the quadratic model (covered in Workshop 5
Results Interpretation, page 87).
Step 1, page 75: Yes
Step 2, page 75: Better
134
Answer Key
$QVZHU.H\IRU:RUNVKRS
Step 1, page 87: 2nd order term (5X22)
Step 2, page 88: Quadratic
Step 4, page 93: Yes. Youre fitting a quadratic surface to a real quadratic, so hopefully you can
fit a good surface to the model. If the fit is good, the residuals should be low, therefore, good as
well.
Step 1, page 93: Yes. Should be perfect (a value of 1).
Step 3, page 94: 1.58 E-30
Step 4, page 94: High
Step 5, page 94: Greater than 10
Step 2, page 95: Yes. The quadratic model fitted has six terms.
Step 3, page 95: 5
Step 4, page 95: Yes
Step 5, page 95: The squared term is flagged as bad because ADAMS/Insight determined that
the term is not significant. This is true as this term was zero in the original model.
Step 6, page 95: Both of the squared terms would have bad significances.
Step 2, page 96: The term is nearly zero (-3.553E-16). In computation terms, this is essentially
zero.
Step 1, page 98: The X12 term.
Step 2, page 98: 1.58E-30
Step 4, page 99: 3E-40
Step 1, page 99: Not very well at all.
Step 2, page 99: The X1, X2, and interactions terms are actually correct, but the offset term is
Answer Key
135
$QVZHU.H\IRU:RUNVKRS
Step 3, page 99: The offset, or steady-state, term.
Step 4, page 99: Likely, yes. Typically, reducing the size of the design space makes linear
136
Answer Key
$QVZHU.H\IRU:RUNVKRS
Step 6, page 124: Yes, the curve should change somewhat.
Step 11, page 125: The number of .adm files should be the same as the number of trials.
Answer Key
137
1RWHV
138
Answer Key