马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
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)
|