-
-
November 27, 2020 at 12:41 pm
paola_1
SubscriberHi, 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?
November 27, 2020 at 1:14 pmDrAmine
Ansys EmployeeYes 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.
November 27, 2020 at 7:46 pmpaola_1
SubscriberCan you help me? I can't find the command to hook the functions.
November 28, 2020 at 12:01 pmpaola_1
SubscriberI did it. Thank you.
November 30, 2020 at 1:46 pmRob
Forum Moderatorplease post the answer here so the next time someone's looking for it they can thank you for sharing.
November 30, 2020 at 7:58 pmpaola_1
SubscriberOf 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
December 1, 2020 at 8:02 amDrAmine
Ansys EmployeeYes 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.
Viewing 6 reply threads- The topic ‘Journal file UDF’ is closed to new replies.
Innovation SpaceTrending discussionsTop Contributors-
5824
-
1906
-
1420
-
1305
-
1021
Top Rated Tags© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.