logo资料库

adams自定义函数帮助文档.pdf

第1页 / 共673页
第2页 / 共673页
第3页 / 共673页
第4页 / 共673页
第5页 / 共673页
第6页 / 共673页
第7页 / 共673页
第8页 / 共673页
资料共673页,剩余部分请下载后查看
Using the Adams/View Function Builder
Learning Function Builder Basics
Types of Functions
Design-Time Functions
Run-Time Functions
Function Builder Modes
Expression Mode
Run-Time Mode
Accessing the Function Builder
Working in Expression Mode
Building Expressions
Creating or Modifying Computed Measures
Building Design-Time Functions
Working in Run-Time Mode
Setting Default Database Object References
To set the default function references:
Building Run-Time Functions
To access the run-time mode from a box:
Creating or Modifying Function Measures
To access the run-time mode from the Build menu:
Performing Operations in the Function Builder
Function Builder Operations
Getting Object Names and Data Dictionary
To get object data:
To insert an object name into the function definition:
To access the data dictionary:
Evaluating Functions
To evaluate a function:
Plotting Using the Function Builder
To set plot limits:
Verifying Function Syntax
To verify function syntax:
Setting Measure Attributes
To set measure attributes:
Creating a Measure Strip Chart
To create a measure strip chart:
Getting Assistance
To get assistance:
Inserting Operators in Function Definitions
To insert operators in a function definition:
Displaying System-Supplied Function Categories
To display system-supplied function categories:
Expression Language Reference
Using Expressions in Adams/View
Expression Syntax
Data Types
Operands
Accessing the Database
Data Dictionary
Operators
Naming Conflicts
Circular Expression Updating
Location and Orientation
Arrays
Empty Arrays
Concatenating Arrays
Matrices of Real Numbers
Units
Unit Sensitivity
Unit Labels
Adams/View Function Builder Glossary
A - B
Acceleration Functions
Adams/View
Akima Fitting Method
Aliases
Argument
Array
C - D
Coercion
Command Window
Compiled Functions
Constant
Contact Functions
Cubic Fitting Method
Data Dictionary
Data Types
Database Access
Database Functions
Database Objects
Design-Time Functions
Design Variables
Displacement Functions
E - F
Empty Array
Expressions
Expression Mode
Force
Force in Object Functions
Function
Function Builder
Function Category
I - J
Interpreted Functions
K - L
Location / Orientation Functions
M - N
Math Functions
Matrix
Matrix / Array Functions
Miscellaneous Functions
Modeling Functions
O - P
Object
Operands
Operators
Optimization
Orientation Angles
Parameterization
Q - R
Resultant Force Functions
Run-Time Functions
Run-Time Mode
S - T
Single-Component Force
Spline Functions
String Functions
Symbolic Constant
System-supplied Functions
U - V
User-written Functions
Velocity Functions
Design-Time Functions
About Design-Time Functions
User-Written Functions
Interpreted Functions
Compiled Functions
To create your own compiled function:
Examples Involving Compiled Functions
System-Supplied Functions
Math Functions
Location/Orientation Functions
Modeling Functions
Matrix/Array Functions
String Functions
Database Functions
Miscellaneous Functions
Design-Time Function Descriptions
Functions: A - C
ABS
Format
Argument
Example
ACOS
Format
Argument
Examples
AGGREGATE_MASS
Format
Arguments
Examples
AINT
Format
Argument
Examples
AKIMA_SPLINE
Format
Arguments
Example
AKIMA_SPLINE2
Format
Arguments
ALERT
Format
Arguments
Example
ALERT2
Format
Arguments
Example
ALERT3
Format
Arguments
Example
ALIGN
Format
Argument
Examples
ALLM
Format
Argument
Examples
ANGLES
Format
Arguments
Example
ANINT
Format
Argument
Examples
ANYM
Format
Argument
Examples
APPEND
Format
Arguments
Example
Array HOT_SPOTS (Name array, Integer array, Real array)
Arguments
Returns
Array TOP_SPOTS (Name array, Integer array, Real array)
Arguments
Returns
ASIN
Format
Argument
Example
ATAN
Format
Argument
Example
ATAN2
Format
Arguments
Example
AX
Format
Arguments
symbol
Example
AY
Format
Arguments
symbol
Example
AZ
Format
Arguments
symbol
Example
BACKUP_FILE
Format
Argument
Example
BALANCE
Format
Arguments
Example
BARTLETT
Format
Arguments
Example
BARTLETT_WINDOW
Format
Arguments
Example
BLACKMAN
Format
Arguments
Example
BLACKMAN_WINDOW
Format
Arguments
Example
BODEABCD
Format
Arguments
Examples
BODELSE
Format
Arguments
Examples
BODELSM
Format
Arguments
Examples
BODESEQ
Format
Arguments
Extended Definition
BODETFCOEF
Format
Arguments
Examples
BODETFS
Format
Arguments
Examples
BUTTER_DENOMINATOR
Format
Argument
Example
BUTTER_FILTER
Format
Argument
BUTTER_NUMERATOR
Format
Arguments
Example
BUTTORD_FREQUENCY
Format
Arguments
Example
BUTTORD_ORDER
Format
Arguments
Example
CEIL
Format
Argument
Example
CENTER
Format
Argument
Equation
Example
CHDIR
Format
Argument
Example
CLIP
Format
Arguments
Example
COLS
Format
Argument
Examples
COMPRESS
Format
Arguments
Examples
COND
Format
Argument
CONVERT_ANGLES
Format
Arguments
Example
COS
Argument
Example
COSH
Argument
Example
CROSS
Format
Arguments
CSPLINE
Format
Arguments
Example
CUBIC_SPLINE
Format
Arguments
Example
Functions: D - E
DB_ACTIVE
Format
Argument
Example
DB_ANCESTOR
Format
Argument
Example
DB_CHANGED
Format
Argument
Example
DB_CHILDREN
Format
Arguments
Example
DB_COUNT
Format
Arguments
Example
DB_DEFAULT
Format
Arguments
Example
DB_DEFAULT_NAME
Format
Arguments
Examples
DB_DEFAULT_NAME_FOR_TYPE
Format
Arguments
Examples
DB_DELETE_DEPENDENTS
Format
Argument
Example
DB_DEL_PARAM_DEPENDENTS
Format
Argument
Example
DB_DEL_UNPARAM_DEPENDENTS
Format
Argument
Example
DB_DEPENDENTS
Format
Arguments
Example
DB_EXISTS
Format
Argument
Example
DB_FIELD_FILTER
Format
Arguments
Example
DB_FIELD_TYPE
Format
Arguments
Example
DB_FILTER_NAME
Format
Arguments
Example
DB_FILTER_TYPE
Format
Arguments
Example
DB_FULL_NAME_FROM_SHORT
Format
Arguments
Examples
DB_FULL_TYPE_FIELDS
Format
Argument
Example
DB_IMMEDIATE_CHILDREN
Format
Arguments
Examples
DB_OBJECT_COUNT
Format
Argument
Example
DB_OBJ_EXISTS
Format
Arguments
Examples
DB_OBJ_EXISTS_EXHAUSTIVE
Format
Arguments
Examples
DB_OF_CLASS
Format
Arguments
Example
DB_OF_TYPE_EXISTS
Format
Argument
Example
DB_OLDEST_ANCESTOR
Format
Argument
Example
DB_REFERENTS
Format
Arguments
Example
DB_SHORT_NAME
Format
Arguments
Examples
DB_TWO_WAY
Format
Arguments
Example
DB_TYPE
Format
Argument
Examples
DB_TYPE_FIELDS
Argument
Example
DET
Format
Argument
Example
DETREND
Format
Arguments
DIFF
Format
Arguments
Example
DIFFERENTIATE
Format
Argument
Example
DIM
Format
Arguments
Example
DM
Format
Arguments
symbol
Example
DMAT
Format
Argument
Example
DOE_MATRIX
Format
Arguments
Examples
DOE_NUM_TERMS
Format
Arguments
Examples
DOT
Format
Arguments
Example
DX
Format
Arguments
symbol
Example
DY
Format
Arguments
symbol
Example
DZ
Format
Arguments
symbol
Example
EIG_DI
Format
Arguments
Examples
EIG_DR
Format
Arguments
Examples
EIG_VI
Format
Arguments
Examples
EIG_VR
Format
Arguments
Examples
EIGENVALUES_I
Format
Arguments
Examples
EIGENVALUES_R
Format
Arguments
Examples
ELEMENT
Format
Arguments
Examples
EXCLUDE
Format
Arguments
Example
EXECUTE_VIEW_COMMAND
Format
Argument
Example
EXP
Format
Argument
Example
EXPR_EXISTS
Format
Argument
Examples
EXPR_REFERENCE
Format
Argument
Examples
EXPR_STRING
Format
Argument
Examples
Functions: F - L
FFTMAG
Format
Arguments
Example
FFTPHASE
Format
Arguments
Example
FILE_ALERT
Format
Argument
Example
FILE_DIRECTORY_NAME
Format
Argument
Example
FILE_EXISTS
Format
Argument
Examples
FILE_MINUS_EXT
Format
Argument
Examples
FILE_TEMP_NAME
Format
Argument
Example
FILTER
Format
Arguments
Example
FILTFILT
Format
Argument
FIND_MACRO_FROM_COMMAND
Format
FIRST
Format
Argument
Examples
FIRST_N
Format
Arguments
Examples
FLOOR
Format
Argument
Examples
FREQUENCY
Format
Arguments
Example
GETCWD
Format
Argument
Example
GETENV
Format
Argument
Example
GRIDDATA
Format
Argument
Example
GUICLEANUP
Format
Argument
Example
HAMMING
Format
Argument
Example
HAMMING_WINDOW
Format
Arguments
Example
HANNING
Format
Argument
Example
HANNING_WINDOW
Format
Arguments
Example
HERMITE_SPLINE
Format
Arguments
Example
INCLUDE
Format
Arguments
Example
INT
Format
Argument
Examples
INTEGR
Format
Arguments
Example
INTEGRATE
Format
Argument
Example
INTERP1
Format
Argument
Example
INTERP2
Format
Argument
Example
INTERPFT
Format
Argument
Example
INVERSE
Format
Argument
Example
LAST
Format
Argument
Examples
LAST_N
Format
Arguments
Examples
LINEAR_SPLINE
Format
Arguments
Example
LOC_ALONG_LINE
Format
Arguments
Example
LOC_BY_FLEXBODY_NODEID
Format
Returns
Example
LOC_CYLINDRICAL
Format
Arguments
Example
LOC_FRAME_MIRROR
Format
Arguments
Example
LOC_GLOBAL
Format
Arguments
Example
LOC_INLINE
Format
Arguments
Examples
LOC_LOC
Format
Arguments
Example
LOC_LOCAL
Format
Arguments
Example
LOC_MIRROR
Format
Arguments
Example
LOC_ON_AXIS
Format
Arguments
Examples
LOC_ON_LINE
Format
Arguments
Example
LOC_PERPENDICULAR
Format
Arguments
Example
LOC_PLANE_MIRROR
Format
Arguments
Example
LOC_RELATIVE_TO
Format
Arguments
Example
LOC_SPHERICAL
Format
Arguments
Example
LOC_TO_FLEXBODY_NODEID
Format
Arguments
Example
LOC_X_AXIS
Format
Argument
Example
LOC_Y_AXIS
Format
Argument
Example
LOC_Z_AXIS
Format
Argument
Example
LOG
Format
Argument
Example
LOG10
Format
Argument
Example
Functions: M - P
MAG
Format
Arguments
Example
MAX
Format
Argument
Example
MAXI
Format
Argument
Example
MEAN
Format
Argument
Example
MEASURE
Format
Argument
Example
MESHGRID
Format
Arguments
Example
MIN
Format
Argument
Example
MINI
Format
Argument
Example
MKDIR
Format
Argument
Example
MOD
Format
Arguments
Example
NINT
Format
Argument
Examples
NODE_ID_CLOSEST
Format
Arguments
Returns
Example
NODE_ID_IS_INTERFACE
Format
Arguments
Example
NODE_IDS_CLOSEST_TO
Format
Arguments
Returns
Example
NODE_IDS_IN_VOLUME
Format
Arguments
Returns
Example
NODE_IDS_WITHIN_RADIUS
Format
Arguments
Returns
Example
NODE_NODE_CLOSEST
Format
Arguments
Example
NORM
Format
Argument
Example
NORM2
Format
Argument
Example
NORMALIZE
Format
Argument
Example
NOTAKNOT_SPLINE
Format
Arguments
Example
ON_OFF
Format
Argument
Example
ORI_ALIGN_AXIS
Format
Arguments
Example
ORI_ALIGN_AXIS_EUL
Format
Arguments
Example
ORI_ALL_AXES
Format
Arguments
Examples
ORI_ALONG_AXIS
Format
Example
ORI_FRAME_MIRROR
Format
Example
ORI_GLOBAL
Format
Arguments
Example
ORI_IN_PLANE
Format
Example
ORI_LOCAL
Format
Arguments
Example
ORI_MIRROR
Format
Arguments
Example
ORI_ONE_AXIS
Format
Arguments
Examples
ORI_ORI
Format
Arguments
Example
ORI_PLANE_MIRROR
Format
Arguments
Examples
ORI_RELATIVE_TO
Format
Arguments
Example
OTABLE_CHANGED_CELLS
Format
Arguments
Example
PARAM_STRING
Format
Argument
Examples
PARSE_STATUS
Format
Arguments
Examples
PARZEN
Format
Argument
Example
PARZEN_WINDOW
Format
Arguments
Example
PHI
Format
Arguments
Example
PICK_OBJECT
Format
Argument
Example
PITCH
Format
Arguments
Example
POLYFIT
Format
Arguments
Examples
POLYVAL
Format
Arguments
Example
PROD
Format
Argument
Example
PSD
Format
Arguments
Example
PSI
Format
Arguments
Example
PUTENV
Format
Arguments
Example
PWELCH
Format
Arguments
Functions: R - S
RAND
Format
Argument
Examples
Real LIFE (FlexBody [, Analysis])
Arguments
Returns
Real MAX_STRESS (Body, Criterion)
Arguments
Returns
RECTANGULAR
Format
Argument
Example
RECTANGULAR_WINDOW
Format
Argument
Example
REMOVE_FILE
Format
Argument
Example
RENAME_FILE
Format
Arguments
Example
RESAMPLE
Format
Arguments
Example
RESHAPE
Format
Arguments
Examples
REVERSE
Format
Arguments
Example
RMDIR
Format
Arguments
Examples
RMS
Format
Argument
Example
ROLL
Format
Arguments
Example
ROWS
Format
Argument
Example
RTOI
Format
Argument
Examples
SECURITY_CHECK
Format
Argument
Examples
SELECT_DIRECTORY
Format
Argument
Example
SELECT_FIELD
Format
Argument
Example
SELECT_FILE
Format
Arguments
Example
SELECT_MULTI_TEXT
Format
Argument
Example
SELECT_OBJECT
Format
Arguments
Example
SELECT_OBJECTS
Format
Arguments
Example
SELECT_REQUEST_IDS
Format
Argument
Example
SELECT_TEXT
Format
Argument
Example
SELECT_TYPE
Format
Argument
Example
SERIES
Format
Arguments
Example
SHAPE
Format
Argument
Example
SERIES2
Format
Arguments
Example
SIGN
Format
Arguments
Example
SIM_STATUS
Format
Argument
Return Codes
Example
SIM_TIME
Format
Argument
Example
SIN
Format
Argument
Example
SINH
Argument
Example
SORT
Format
Arguments
Example
SORT_BY
Format
Arguments
Examples
SORT_INDEX
Format
Arguments
Example
SPLINE
Format
Arguments
Example
SQRT
Format
Argument
Example
SSQ
Format
Argument
Example
STACK
Format
Arguments
Example
STATUS_PRINT
Format
Argument
Example
STEP
Format
Arguments
Example
STOI
Format
Arguments
Examples
STOO
Format
Arguments
Examples
STOR
Format
Arguments
Example
STR_CASE
Format
Arguments
Examples
STR_CHR
Format
Argument
Example
STR_COMPARE
Format
Arguments
Examples
STR_DATE
Format
Argument
Windows Only
Examples
STR_DELETE
Format
Arguments
Examples
STR_FIND
Format
Arguments
Examples
STR_FIND_COUNT
Format
Examples
STR_FIND_IN_STRINGS
Format
Arguments
Example
STR_FIND_N
Format
Arguments
Examples
STR_INSERT
Format
Arguments
Examples
STR_IS_REAL
Format
Argument
Examples
STR_IS_SPACE
Format
Argument
Examples
STR_LENGTH
Format
Argument
Examples
STR_MATCH
Format
Arguments
Examples
STR_PRINT
Format
Argument
Examples
STR_REMOVE_WHITESPACE
Format
Argument
Example
STR_SPLIT
Format
Arguments
Examples
STR_SPRINTF
Format
Arguments
Example
STR_SUBSTR
Format
Arguments
Examples
STR_TIMESTAMP
Format
Argument
Example
STR_XLATE
Format
Arguments
Example
SUM
Format
Argument
Examples
SYS_INFO
Format
Argument
Example
Functions: T - Z
TABLE_COLUMN_SELECTED_CELLS
Format
Arguments
Example
TABLE_GET_CELLS
Format
Arguments
Example
TABLE_GET_DIMENSION
Format
Arguments
Examples
TABLE_GET_REALS
Format
Arguments
TABLE_GET_SELECTED_COLS
Format
Arguments
Example
TABLE_GET_SELECTED_ROWS
Format
Arguments
Example
TAN
Format
Argument
Example
TANH
Format
Argument
Example
TERM_STATUS
Format
Argument
Return Codes
Example
THETA
Format
Arguments
Example
TILDE
Format
Argument
Example
TIMER_CPU
Format
Argument
Example
TIMER_ELAPSED
Format
Arguments
Example
TMAT3
Format
Arguments
Example
TMAT
Format
Arguments
Example
TRANSPOSE
Format
Argument
Examples
TRIANGULAR
Format
Argument
Example
TRIANGULAR_WINDOW
Format
Argument
Example
UNIQUE
Format
Argument
Example
UNIQUE_FILE_NAME
Format
Argument
Example
UNIQUE_ID
Format
Argument
Example
UNIQUE_FULL_NAME
Format
Argument
Example
UNIQUE_LOCAL_NAME
Format
Argument
Examples
UNIQUE_NAME
Format
Argument
Example
UNIQUE_NAME_IN_HIERARCHY
Format
Argument
Example
UNIQUE_PARTIAL_NAME
Format
Arguments
Example
UNITS_STRING
Format
Argument
Example
UNITS_CONVERSION_FACTOR
Format
Argument
Examples
UNITS_TYPE
Format
Arguments
Examples
UNITS_VALUE
Format
Argument
Examples
UNWRAP
Format
Argument
USER_STRING
Format
Argument
Example
VAL
Format
Arguments
Example
VALAT
Format
Arguments
Examples
VALI
Format
Arguments
Example
WELCH
Format
Argument
Example
WELCH_WINDOW
Format
Argument
Example
YAW
Format
Arguments
Example
Run-Time Functions
About Run-Time Functions
Run-Time Functions Categories
Displacement Functions
Velocity Functions
Acceleration Functions
Contact Functions
Spline Functions
Force in Object Functions
Resultant Force Functions
Math Functions
Run-Time Functions Descriptions
Functions: A - M
ABS
Format
Argument
Examples
Acceleration Along X (ACCX)
Format
Arguments
Equation
Example
Acceleration Along Y (ACCY)
Format
Arguments
Equation
Example
Acceleration Along Z (ACCZ)
Format
Arguments
Equation
Example
Acceleration Magnitude (ACCM)
Format
Arguments
Equation
Example
AINT
Format
Argument
Examples
ACOS
Format
Argument
Example
Algebraic Variable Value (VARVAL)
Format
Argument
Example
Akima Fitting Method (AKISPL)
Format
Arguments
Example
Angle About X (AX)
Format
Arguments
Equation
Example
Angle About Y (AY)
Format
Arguments
Equation
Example
Angle About Z (AZ)
Format
Arguments
Equation
Example
Angular Acceleration About X (WDTX)
Format
Arguments
Equation
Example
Angular Acceleration About Y (WDTY)
Format
Arguments
Equation
Example
Angular Acceleration About Z (WDTZ)
Format
Arguments
Equation
Example
Angular Acceleration Magnitude (WDTM)
Format
Arguments
Equation
Example
Angular Velocity About X (WX)
Format
Arguments
Equation
Example
Angular Velocity About Y (WY)
Format
Arguments
Equation
Example
Angular Velocity About Z (WZ)
Format
Arguments
Equation
Example
Angular Velocity Magnitude (WM)
Format
Arguments
Equation
Example
ANINT
Format
Argument
Examples
Array Element Value (ARYVAL)
Format
Arguments
Example
ASIN
Format
Argument
Example
ATAN
Format
Argument
Examples
ATAN2
Format
Arguments
Example
B-Spline Fitting Method (CURVE)
Format
Arguments
Example
B313 Sequence: 1st Rotation (PSI)
Format
Arguments
Example
B313 Sequence: 3rd Rotation (PHI)
Format
Arguments
Example
B313 Sequence: 2nd Rotation (THETA)
Format
Arguments
Example
B321 Sequence: 1st Rotation (YAW)
Format
Arguments
Example
B321 Sequence: 2nd Rotation (PITCH)
Format
Arguments
Example
B321 Sequence: 3rd Rotation (ROLL)
Format
Arguments
Example
Beam Force (BEAM)
Format
Arguments
Example
Bushing Force (BUSH)
Format
Arguments
Example
Chebyshev Polynomial (CHEBY)
Format
Arguments
Example
CONTACT
Format
Arguments
Examples
COS
Format
Argument
Example
COSH
Format
Argument
Example
Cubic Fitting Method (CUBSPL)
Format
Arguments
Example
Curve-to-Curve Force (CVCV)
Format
Arguments
Example
DELAY
Format
Arguments
The equations:
Example:
Differential Variable Integrated Value (DIF)
Format
Argument
Example
Differential Variable Value (DIF1)
Format
Argument
Example
DIM
Format
Arguments
Example
Distance Along X (DX)
Format
Arguments
Equation
Example
Distance Along Y (DY)
Format
Arguments
Equation
Example
Distance Along Z (DZ)
Format
Arguments
Example
Distance Magnitude (DM)
Format
Arguments
Equation
Example
DTOR
Format
Argument
Example
EXP
Format
Argument
Example
Field Force (FIELD)
Format
Arguments
Example
Fourier Cosine Series (FORCOS)
Format
Arguments
Example
Fourier Sine Series (FORSIN)
Format
Arguments
Example
Haversine Step (HAVSIN)
Format
Arguments
Example
IF
Format
Arguments
Example
Inverse Power Spectral Density (INVPSD)
Format
Arguments
Equation
Example
INTERP
Format
Arguments
Examples
Joint Force (JOINT)
Format
Arguments
Example
Joint Primitive Force (JPRIM)
Format
Arguments
Example
LOG
Format
Argument
Example
LOG10
Format
Argument
Example
MIN
Format
Arguments
Example
MAX
Format
Arguments
Example
MOD
Format
Arguments
Examples
MODE
Format
Argument
Example
Motion Force (MOTION)
Format
Arguments
Example
Functions: N - Z
Multipoint Force (NFORCE)
Format
Arguments
Example
One-sided Impact (IMPACT)
Format
Arguments
Equation
Examples
PI
Format
Argument
Example
PLANT INPUT VALUE (PINVAL)
Format
Arguments
Example
Plant Output Value (POUVAL)
Format
Arguments
Examples
Point-to-Curve Force (PTCV)
Format
Arguments
Example
Polynomial Fitted (POLYFIT)
Format
Arguments
Examples
Polynomial (POLY)
Format
Arguments
Examples
RTOD
Format
Argument
Example
SIGN
Format
Arguments
Example
Simple Harmonic (SHF)
Format
Arguments
Equation
Example
SIN
Format
Argument
Example
Single-component Force (SFORCE)
Format
Arguments
Example
SINH
Format
Argument
Example
Six-component Force/Torque (GFORCE)
Format
Arguments
Example
Spring-Damper Force (SPDP)
Format
Arguments
Example
SQRT
Format
Argument
Example
STEP
Format
Arguments
Extended Definition
Example
STEP5
Format
Arguments
Example
Sum of Forces Along X (FX)
Format
Arguments
Equation
Example
Sum of Forces Along Y (FY)
Format
Arguments
Equation
Example
Sum of Forces Along Z (FZ)
Format
Arguments
Equation
Example
Sum of Forces Magnitude (FM)
Format
Arguments
Equation
Example
Sum of Torques About X (TX)
Format
Arguments
Equation
Example
Sum of Torques About Y (TY)
Format
Arguments
Equation
Examples
Sum of Torques About Z (TZ)
Format
Arguments
Equation
Example
Sum of Torques Magnitude (TM)
Format
Arguments
Equation
Example
SWEEP
Format
Arguments
Equation
Example
TAN
Format
Argument
Example
TANH
Format
Argument
Example
Three-component Force (VFORCE)
Format
Arguments
Examples
Three-component Torque (VTORQ)
Format
Arguments
Example
TIME
Format
Argument
Example
Two-sided Impact (BISTOP)
Format
Arguments
Equation
Example
USER
Format
Argument
Example
Velocity Along Line-of-Sight (VR)
Format
Arguments
Equation
Example
Velocity Along X (VX)
Format
Arguments
Equation
Example
Velocity Along Y (VY)
Format
Arguments
Equation
Example
Velocity Along Z (VZ)
Format
Arguments
Equation
Example
Velocity Magnitude (VM)
Format
Arguments
Equation
Example
Product-Specific Functions
Adams/Solver (C++)
Adams/Durability
Template-Based Products
Adams/View Function Builder Examples
Expression Example
Example - Building Functions for Motions
To build a function for motion:
Example - Parameterizing Values for Marker Locations
To parameterize a location:
Using the Adams/View Function Builder 125 Using the Adams/View Function Builder The Adams/View Function Builder is a versatile tool inside of Adams/View, part of the Adams 2013® suite of software, that lets you write expressions, functions, and subroutines to define forces, measures, and motion in Adams products. You can create and modify functions and parameterize values for various entities. This section provides references and procedures for writing expressions, functions, and subroutines using the Function Builder in Adams/View.
126 Adams/View Function Builder Learning Function Builder Basics Learning Function Builder Basics You use two major types of functions in the Function Builder: design-time and run-time functions. Depending on the type of function you want to use, you can work either in the expression mode or the run-time mode of the Function Builder. • Types of Functions • Function Builder Modes Types of Functions The following two sections provide details about the two major types of functions you can use in the Function Builder: • Design-Time Functions • Run-Time Functions Design-Time Functions Design-time functions allow you to parametrically configure your model for optimization and sensitivity studies. Adams/View evaluates design-time functions only during the design process, and not during a simulation, except for optimization and design studies. The Function Builder gives you access to over two hundred design-time functions. In addition, you can create your own user-written functions. The Function Builder categorizes all system-supplied functions based on their functionality. The following table lists the design-time functions categories: Design-Time Function Categories Category: Math Functions Location/Orientation Functions Modeling Functions Matrix/Array Functions String Functions Database Functions Miscellaneous Functions Besides the categories listed above, the Function Builder includes a category called All Functions that lists all design-time functions in alphabetical order. For more information and examples for each design-time function, see Design-Time Function Descriptions.
Using the Adams/View Function Builder Learning Function Builder Basics 127 Run-Time Functions Run-time functions allow you to specify mathematical relationships between simulation states that directly define the behavior of your model. Adams updates the run-time functions only during a simulation. The Function Builder gives you access to over one hundred run-time functions, that it categorizes based on their functionality. The following table lists the run-time functions categories: Run-Time Function Categories Category: Displacement Functions Velocity Functions Acceleration Functions Contact Functions Spline Functions Force in Object Functions Resultant Force Functions Math Functions Data Element Access User-Written Subroutine Invocation Constants & Variables Besides the categories listed above, the Function Builder includes a category named All Functions. This category contains all the run-time functions, grouped by functionality. For more information and examples for each run-time function, see Run-Time Function Descriptions. Function Builder Modes The Function Builder has two different modes: expression mode and run-time mode. Adams/View gives you access to the appropriate Function Builder mode based on the type of operation you want to perform. The following table shows what types of operations you can perform in each mode. Operations and Function Builder Mode For this operation: Use this mode: Expression Building Expressions Creating or Modifying Computed Measures Expression
128 Adams/View Function Builder Learning Function Builder Basics For this operation: Building Design-Time Functions Building Run-Time Functions Creating or Modifying Function Measures Use this mode: Expression Run-time Run-time The following two sections introduce you to the Function Builder modes: • Expression Mode • Run-Time Mode Expression Mode In expression mode you can create expressions, which are the basis of all parameterization. Adams updates expressions when it detects that dependencies have been changed. Performing optimization and design studies can affect the dependencies for some expressions. In addition to design-time functions, expressions can include the following elements: • Design variables • Operators • Operands • Database Access For detailed information on expressions and their elements, see Expression Language Reference. To learn more about the expression mode, see Working in Expression Mode. Run-Time Mode When working in run-time mode, the Function Builder allows you to combine run-time functions with a variety of elements to build functions. After you define the functions, Adams/Solver uses them during the simulation process. The following sections introduce you to the run-time function elements. • Design Variables • Numerical Values • Operators Design Variables Design variables are a means of storing data that you can later use and modify. You can use design variables throughout the Adams/View command language. For example, you can define the radius of a cylinder in terms of a design variable:
Using the Adams/View Function Builder Learning Function Builder Basics 129 variable create variable=my_radius real=40 units=lengthgeometry modify shape cylinder &cylinder_name = .model_1.PART_1.CYLINDER_1 &radius = (my_radius) For more information on design variables, see Expression Language Reference. Numerical Values In run-time mode you can use integers and real numbers. Adams doesn't support complex numbers at this time. Operators You can use the standard set of FORTRAN operators in the functions you create in run-time mode. The operators table below lists the operators Adams/View supports in this mode. The table lists the operators by precedence, with grouping being the highest precedence operator. • Different from FORTRAN convention, when in run-time mode, the unary minus operator has precedence over the exponentiation operator, and exponentiation associates from left to right. Operators This operator: ( ) - ** / * + - Has this role: Grouping Unary minus = negation Exponentiation Division Multiplication Addition Subtraction To learn more about the run-time mode, see Working in Run-Time Mode. Accessing the Function Builder You can access the Function Builder in different ways, depending on the operation you are performing. Adams/View displays the Function Builder in either the run-time or expression mode, reflecting the way you accessed it. For an overview of the Function Builder modes, see Learning Function Builder Basics. The following table shows what types of operations you can perform in the expression mode, and how you can access it:
130 Adams/View Function Builder Learning Function Builder Basics Accessing the Expression Mode for Basic Operations To do the following: Access the expression mode from: The Build menu Build expressions Create or modify computed measures The Build menu Build design-time functions Text boxes that accept expressions The following table shows what types of operations you can perform in the run-time mode, and how you can access it: Accessing the Run-Time Mode for Basic Operations To do the following: Access the run-time mode using: Create or modify function measures The Build menu Build run-time functions Text boxes that accept run-time functions The following sections provide step-by-step instructions on accessing the Function Builder modes: • Working in Expression Mode • Working in Run-Time Mode Working in Expression Mode You access the Function Builder in expression mode in several ways, depending on the operation you are performing. The Function Builder might look slightly different depending on the operation for which you intend to use it. For example, if you open the Function Builder to build a custom function, you'll notice that it includes boxes for entering general attributes for functions. For information on design-time functions, functions you can use in expression mode, see Design-Time Function Descriptions. In expression mode you can perform three basic types of operations: • Building Expressions • Creating or Modifying Computed Measures • Building Design-Time Functions Building Expressions You use the expression mode when you want to build expressions to use in various operations. Some of the operations for which you can use expressions include parameterizing values for point and marker
Using the Adams/View Function Builder Learning Function Builder Basics 131 locations, parameterizing values for geometry dimensions, and working with design variables. For more information on expressions, see Expression Language Reference. To perform such operations, you can access the expression mode from the pop-up menus of boxes that can be parameterized. To access the expression mode from a box: 1. Right-click any box that accepts expressions, point to Parameterize, and then select Expression Builder. The Function Builder appears in expression mode, as shown next. 2. Build your expression, and then select OK. Adams/View inserts the expression in the box from which you displayed the Function Builder. Creating or Modifying Computed Measures If you want to create or modify computed measures, you use the expression mode of the Function Builder. To create or modify computed measures, access the expression mode from the Build menu, as shown below: To access the expression mode from the Build menu:
132 Adams/View Function Builder Learning Function Builder Basics 1. From the Build menu, point to Measure, point to Computed, and then select New. The Function Builder appears as shown next 2. Create your computed measure, and then select OK. Building Design-Time Functions You can also use the expression mode when you want to build custom functions. To build functions, you can access the expression mode from the Build menu. To access the expression mode from the Build menu:
分享到:
收藏