找回密码
 注册
Simdroid-非首页
查看: 646|回复: 10

【求助】怎么输入这个函数?

[复制链接]
发表于 2002-12-4 22:27:34 | 显示全部楼层 |阅读模式 来自 东南大学
各位大侠:
      若f(x)=a  当10<x<20
         f(x)=b   当20<x<50
      在ADAMS中以什么函数输入?我用STEP函数的形式输入是不对的。
发表于 2002-12-4 23:17:03 | 显示全部楼层 来自 北京

回复: 【求助】怎么输入这个函数?

Simdroid开发平台
用if函数:if(exp1:exp2,exp3,exp4)如简单分段函数f(x)=a 当0<x<10;f(x)=b 当10<x<无穷;写法如下:if(x-10:a,a,b).你的问题可以用IF嵌套。
      
         

评分

1

查看全部评分

发表于 2002-12-5 08:32:57 | 显示全部楼层 来自 北京理工大学

回复: 【求助】怎么输入这个函数?

ADAMS 12好像不支持IF的说。
发表于 2002-12-5 11:37:55 | 显示全部楼层 来自 台湾台北

回复: 【求助】怎么输入这个函数?

IF syntax is no problem in R12.
  
Johnson

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2002-12-5 16:31:30 | 显示全部楼层 来自 东南大学

回复: 【求助】怎么输入这个函数?

首先谢谢各位。我能使用IF函数基本上实现所要求的运动,另外我想请问一下在那里调出Joint Motion 对话?我今天试了很久没找到。还有IF函数的每一项的意义是什么,有没有这方面的帮助可看。
发表于 2002-12-5 19:50:35 | 显示全部楼层 来自 陕西西安

回复: 【求助】怎么输入这个函数?

点MOTION图标,右键,MODIFY就行。
另外所有函数说明在ADAMS/HELP里都有。如HELP 可从
AVIEW->HELP->ON LINE GUIDE-出来ROAD MAP TO ADAMS DOCUMENTATION->选PRODUCT GUIDES->VIEW->USING THE FUNCTION BUILDER->INDEX->-IJ->IF
  
----
IF
Definition Allows you to conditionally define a function expression.
Note: Using the IF function will likely cause discontinuities in the
derivatives of the function evaluation, which can cause the
integrator to decrease the time step size or fail. We recommend
that you use the STEP function instead of the IF.
Format IF(Expression1: Expression2, Expression3, Expression4)
Arguments Expression1
The expression ADAMS evaluates.
Expression2
If the value of Expression1 is less than 0, IF returns Expression2.
Expression3
If the value of Expression1 is 0, IF returns Expression3.
Expression4
If the value of Expression1 is greater than 0, IF returns
Expression4.
Using the ADAMS/View Function Builder
Run-Time Functions
611
Example In the following illustration, the expression returns different values
depending on the value of the variable called time:
See Also Overview of Constants & Variables, 535
Function IF(time-2.5:0,0.5,1)
Result 0.0 if time < 2.5
0.5 if time = 2.5
1.0 if time > 2.5
//1 2 3 0//该行错误,应要求删除
1 .. .
. . .

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×

评分

1

查看全部评分

发表于 2002-12-5 19:52:32 | 显示全部楼层 来自 陕西西安

回复: 【求助】怎么输入这个函数?

最后那行1.2.3.0搞错了, 没来得及删, 斑竹帮忙改一下吧.
 楼主| 发表于 2002-12-5 21:57:17 | 显示全部楼层 来自 东南大学

回复: 【求助】怎么输入这个函数?

Elvis :
      首先谢谢你们的指点,Elvis ,管理员应该给你多加点分。另外不知Elvis 试过没有,我在中ADAMS12就是找不到johnson_liao 上面一样的Joint_Motion对话框?能不能请教johnson_liao 指点一下。
  
   
  
   
  
    
  
发表于 2002-12-6 05:39:22 | 显示全部楼层 来自 台湾

回复: 【求助】怎么输入这个函数?

johnson是用translational joint motion~~~
  
在main toolbox 下有一個像馬達的選項~~
  
按右鍵會彈出許多選項~~
  
有一個在一個機器旁畫上下箭頭的就是了~~~~
发表于 2002-12-7 17:56:07 | 显示全部楼层 来自 北京航空航天大学

回复: 【求助】怎么输入这个函数?

满足wunanxing的要求,已经给ELIVS加分了!wunanxing也要努力哟!
 楼主| 发表于 2002-12-7 21:55:22 | 显示全部楼层 来自 东南大学

回复: 【求助】怎么输入这个函数?

谢谢suwenk给我鼓励。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2026-1-7 04:03 , Processed in 0.058371 second(s), 18 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表