摘要
应用C语言编制用户自定义函数或子程序的问题,是应用ADAMS进行二次开发的焦点。利用ADAMS提供的模板编写C语言函数,在VC++6.0环境下编译生成目标文件,利用动态连接库技术实现其与ADAMS/View的链接,生成ADAMS用户自定义函数,可以满足用户特殊要求。通过编制产生服从正态分布的伪随机数的用户自定义函数的实例,详细介绍了上述技术的实现过程。
It is a key to redevelop ADAMS of wrhing User- Written Subroutine in C Programming Language. In this paper, a User- Written Subroutine is specified to satisfy user' s particular needs by writing C subroutine referring to the template offered by ADAMS; compiling the C subroutine to create object in Visual C + + 6. 0; and linking the object to ADAMS/View using DLL (dynamic link libraries) . Finally, the process above is demonstrated with an example of writing a User- Written Subroutine for creating a series of pseudo - random values which accords whh the normal distribution.
出处
《机械设计与制造》
北大核心
2006年第1期101-103,共3页
Machinery Design & Manufacture