measure create function

An Adams Solver function measure allows you to create a measure in Adams View that Adams Solver evaluates during simulations. Because Adams Solver function measures are only evaluated during simulations, function measures remain unevaluated until you run a simulation. The Adams Solver function measure is convenient because it lets you reference any user-defined Adams Solver function or subroutine. Function measures are built from Adams Solver run-time functions.

Format:

 
measure create function
measure_name =
new function measure
function =
function
user_function =
real
routine =
string
units =
string
create_measure_display =
boolean
legend =
string,
comments =
string

Example:

 
measure cre function measure =
.model_1.function_mea_1 &
function =
"0.5*wz(.model_1.part_2.cm)**2*(15*(50**2 + 300**2) + 15000)/1000" &
units =
no_units &
create_measure_display =
yes

Description:

 
Parameter
Value Type
Description
Measure_name
New name for measure
Specifies the name of the measure.
function
Function
Specifies function to be evaluated during the simulation.
user_function
Real
Specifies a real number
routine
String
Specifies a string for the routine.
units
String
Specifies any units that have to be associated.
create_measure_display
Yes/No
Specifies yes if the strip chart of the measure needs to be displayed.
legend
String
Specifies the text that will appear on the top of the measure dialog.
Comments
String
Specifies any comments about the function measure.

Cautions:

1. Be careful, however, about the number of Adams Solver function measures you create because Adams View writes each measure to the Adams Solver dataset as a VARIABLE statement. Each VARIABLE statement adds another equation to the overall set of equations. The more equations Adams Solver must solve, the longer your simulation takes.