Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
November 2015
• Compute values
– ADAMS/View performs the calculations
– Prevents errors
– Results in higher accuracy
Evaluated
• Parameterize a model
– Model characteristics can contain references to other data
– Dependencies are established
– One change propagates through the model
– Similar to defining a spreadsheet cell as a function of another cell
• Example
MOTION_1
FUNCTION
.shaft_speed
Design variable
.input_RPM
Design variable
– MOTION_1 references a design variable, .shaft_speed, which references
another design variable, .input_RPM.
– You could also reference the design variables above in other places in the
model at the same time. When you change a design variable, the change would
then be reflected in multiple places.
Politecnico di Milano November 2015
EXPRESSIONS: PARAMETERIZE
• When Adams/View
reads an expression,
it either:
– Evaluates and then
stores it in the
database.
– Stores the expression
itself.
• Integer • Object
– Whole numbers – Database objects
– Example: 3 – Example:
• Real .model_1.part_1.marker_2
– Most numeric values • Matrix
– Example: 3.14159 – One- or two-dimensional
• String collections of values of the same
– Character strings of varying type, or one of the other objects.
length – Example: (Array of strings)
– Example: “x” {“ {“x”, “y”}”}
– Example: (Array of reals)
{[1.1, 3.4], [2.2, 4.5], [2, 3.3]}
• Design-time functions
– System-supplied
• Example:
(LOC_RELATIVE_TO({0,0,0},.model_1.ground.marker_1))
(SIN(30d)*500)
(DB_DEFAULT(.system_defaults,“MODEL”))
– User-written
• Example:
MID_PT(marker_2,marker_3) marker_3)
.model_1.motion_1.comments
.model_1.circle_1.adams_id
.model_1.part_1.location
.model_1.joint_1.i
Expression
categories
• Math • Database
– Apply to scalar numbers or – Facilitate your access to the
matrixes. database
• Location/Orientation • File
– Compute one or more – Allow you to read information from
locations or orientations from and write information to files.
a variety of input parameters
• Miscellaneous
• Modeling – Database functions
– Return a requested – Interface (GUI) functions
displacement measurement – String functions
between markers or parts
– System functions
• Matrix/Array
– Allow you to easily perform
common matrix operations
• String
– Allow you to manipulate
character strings
• LOC_RELATIVE_TO
– Definition
• Returns an array of three numbers, representing a location, by transforming a
specified location that is relative to a coordinate system object.
– Format
• LOC_RELATIVE_TO(Location, Frame Object)
– Example
• LOC_RELATIVE_TO({16,8,0}, marker_2) (-4,22,0)
x̂
(16,8,0)
ŷ
ŷ G
marker_2
ẑ (4,6,0)
(0,0,0)
ẑ G
x̂ G
• ORI_ALONG_AXIS
– Definition
• Returns the alignment of a specified axis from one coordinate system object to
another. ORI_ALONG_AXIS has an underlying parameter that allows it to
express the resulting orientation in the correct coordinate system object.
– Format
• ORI_ALONG_AXIS (From Frame, To Frame, Axis Name)
– Example
• ORI_ALONG_AXIS(marker_1, marker_2, “y”)
ŷ ẑ
marker_2
(400,300,0)
ŷ ŷ
ŷ G x̂
x̂ ŷ
(0,0,0)
ẑ marker_1
(250,150,0)
ẑG x̂G
• DM
– Definition
• Returns the magnitude of the translational displacement from one coordinate
system object to another.
– Format
• DM (Object 1, Object 2)
– Example
• DM (marker_O1, marker_O2)
• Overview
– Design variables
• Define independent parameters that can be tied to objects.
• Organize the critical parameters of the design into a concise list of values that
can be easily reviewed and modified.
– Example
• You can create a design variable called Cylinder_length to control the lengths of
all three cylinders as shown next:
Cylinder_length =150
Cylinder_length =300
• Features
– Range
– List of allowed values
• Enter a discrete list of values to use in the
design study.
– Allow design study to ignore list
• Lets you switch back and forth between
using a range and using a list of values,
without re-entering the list each time.
– Default levels
• If you specify a range only, ADAMS/View
uses equally spaced levels across the
range. You specify the number of default
levels.
• If you specify a list of values and Ignore
List is not selected, ADAMS/View runs a
simulation using each value, ignoring the
number of default levels specified.
• Update graphics
• Strip charts
• Show report
• Update graphics
– When you want to update the model:
– Never
– At Simulation End
• Most often used for multi-run simulations
– At Output Step
– At Contact / Output Step
– At Integration Step
– At Iteration
• Strip Charts
– Chart objective
Depending on the type of parametric analysis, displays a strip chart of the following:
• Objective value versus variable value for a design study.
• Objective value versus trial for a DOE.
• Objective value versus iteration number for an optimization.
– Chart variables
Displays a strip chart of the following for each design variable:
• Variable value versus trial or iteration number.
– Save curves
Clears all displayed measures at the
beginning of the parametric analysis
and automatically saves the curve
from each trial or iteration.
• Show Report
– Automatically displays a tabular report at the end of the parametric simulation.
Note: You can use the Tabular Report tool to display this table at any time,
write it to a file, and control its format.
• Stop On Errors
– Stops the analyses if ADAMS/Solver
encounters an error during the simulation.
• What is DOE?
– DOE is a collection of procedures and statistical tools for planning experiments
and analyzing the results.
– DOE shows the effects of varying several design variables simultaneously.
• Types
– Screening: Identifies which factors and combinations of factors most affect the
behavior of the system.
– Robust design: Methodology developed by Dr. Genichi Taguchi for improving
quality by controlling the effects of variations in a system.
– Response surface methods (RSM): Fit polynomials to the results of the runs,
which gives you an easy-to-use approximation of your system’s behavior.
• Direct input
– Does not directly specify factor values.
– Specifies indexes to the levels for each factor. The indexes center on zero. This means that for a
two-level factor, the only possible values are -1 and +1; for three-levels, -1, 0 and +1; for four-
levels, -2, -1, +1, +2; and so on.
– Example
• File input
– Specify the name of the file containing the trial matrix.
– First line of file must contain:
• number of factors
• number of levels
• number of runs
Politecnico di Milano November 2015
METHODS OF DEFINING DESIGN VARIABLES
• Specify Range
– Adams/View will then work behind the scenes to
evenly space your values according to the number
of levels specified.
– Value Range by:
• Absolute Min and Max Values
• +/- Delta Relative to Value
• +/- Percent Relative to Value
– The minimum and maximum values are always
included.
• Design variables
– Purpose and setup for optimization studies is the same as for design studies
and DOEs.
– By default, Adams/View uses the design variable lower and upper limit (that is,
the range) as constraints for optimization studies.
– You can tell Adams/View to “Allow Optimization to ignore range.”
Note: Only available for DOT or user-defined algorithms.
• Constraint functions
– Setup is analogous to Objective Functions.
– During optimization study, ADAMS/View ensures that evaluated constraint
functions are always negative, and therefore not violated.
• Algorithm types
• Convergence tolerance
• Iterations
• Differencing
• Debugging
• Minimum converged
• Convergence Tolerance
– The limit below which subsequent differences of the objective must fall before
an optimization is considered successful.
– Satisfied when:
ABS(objective[new] - objective[new-1]) < convergence tolerance.
• Iterations:
– Maximum
• Tells the optimizer algorithm how many iterations it should take before it admits
failure.
– Rescale
• The number of iterations after which the design variable values are rescaled.
• If you set the value to -1, scaling is turned off.
Note: Option is only available for DOT and user-defined algorithms.
• Debugging
– Sends detailed optimizer diagnostics to the window that launched ADAMS/View.
• Minimum Converged
– The number of consecutive iterations for which the absolute or relative
convergence criteria must be met to indicate convergence.
– Only applicable for the DOT Sequential Linear Programming method.
Politecnico di Milano November 2015