Journal file UDF
Hi, there's a way to write a journal file for compiling a UDF (without hooking the function), run calculate for one time step, hooking the function and run calculate for other time steps?
Best Answers
-
paola_1 Member
Of course.
File example is a file with the UDF but not with the hooked functions.
/file/read-case /example.cas
/file/read-data /example.dat
/solve/set/time-step 0.002
/solve/dual-time-iterate 1 50
/define/user-defined/function-hooks
adjust
n1::libudf
n2::libudf
n3::libudf
""
q
/solve/dual-time-iterate 18 50
/file/write-case /ex1.cas
/file/write-data /ex1.dat
exit
OK
-
DrAmine GermanyForum Coordinator
Yes for sure. You need to just record the journal and navigate in TUI to execute the commands. The finalized journal can be then used to automate it.
Answers
Yes for sure. You need to just record the journal and navigate in TUI to execute the commands. The finalized journal can be then used to automate it.
Can you help me? I can't find the command to hook the functions.
I did it. Thank you.
@paola_1 please post the answer here so the next time someone's looking for it they can thank you for sharing.
Of course.
File example is a file with the UDF but not with the hooked functions.
/file/read-case /example.cas
/file/read-data /example.dat
/solve/set/time-step 0.002
/solve/dual-time-iterate 1 50
/define/user-defined/function-hooks
adjust
n1::libudf
n2::libudf
n3::libudf
""
q
/solve/dual-time-iterate 18 50
/file/write-case /ex1.cas
/file/write-data /ex1.dat
exit
OK
Yes for sure. You need to just record the journal and navigate in TUI to execute the commands. The finalized journal can be then used to automate it.