找回密码
 注册
查看: 936|回复: 0

学习UDF遇到问题,请高手点播一下

[复制链接]
发表于 2006-5-2 16:42:00 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

x
练习使用UDF中的例子,安其步骤作的,但在后处理中看不到储存在记忆中Memory 1的结果呢?
请高手提示一下,如何在后处理中看到记忆结果。
这是例子的步骤
Steps to take to make it work:
   1. Build UDF library
   2. Read in the converged case and data
   3. Hook the UDF (Define->User Defined->Function->Compiled)
   4. Hook adjust function (Define->User Defined->Function Hooks->
      Adjust Function)
   5. Define UDM (Define->User Defined->Memory 1)
   6. Define UDS (Define->User Defined->Scalars 1)
   7. Define BC for UDS (the same as the function for which you
      want gradient)
   8. Change UR for UDS to 1e-6 (Solve->Controls->Solution)
   9. Turn off all equations except UDS (Solve->Controls->Solution)
   10 Do A FEW iterations
   11 Execute store_gradient (Define->User Defined->Execute On Demand)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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