没有合适的资源?快使用搜索试试~ 我知道了~
MSC/adams 函数详解
需积分: 42 25 下载量 117 浏览量
2014-06-18
09:51:29
上传
评论
收藏 4.08MB PDF 举报
温馨提示
试读
671页
MSC/adams关于函数的帮助文档,详细解释了adams支持的所有函数并有相应的example。如求整个模型质心的函数AGGREGATE_MASS()、位置方向相关的函数等等等等。这些函数不仅在Function Builder可以使用,二次开发时也是支持的。多查看帮助文档,了解adams自带函数可以减轻许多的工作量
资源推荐
资源详情
资源评论
1
Using the Adams/View Function Builder
Using the Adams/View Function Builder
The Adams/View Function Builder is a versatile tool inside of Adams/View, part of the Adams 2012
®
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.
Adams/View Function Builder
Learning Function Builder Basics
2
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
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
.
Category:
Math Functions
Location/Orientation Functions
Modeling Functions
Matrix/Array Functions
String Functions
Database Functions
Miscellaneous Functions
3
Using the Adams/View Function Builder
Learning Function Builder Basics
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
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
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
For this operation: Use this mode:
Building Expressions Expression
Creating or Modifying Computed Measures Expression
Adams/View Function Builder
Learning Function Builder Basics
4
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:
Building Design-Time Functions Expression
Building Run-Time Functions Run-time
Creating or Modifying Function Measures Run-time
For this operation: Use this mode:
5
Using the Adams/View Function Builder
Learning Function Builder Basics
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
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:
This operator: Has this role:
( ) Grouping
- Unary minus = negation
** Exponentiation
/ Division
* Multiplication
+ Addition
- Subtraction
剩余670页未读,继续阅读
资源评论
蛀天虫
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功