-
-
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 pmAmine Ben Hadj Ali
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 amAmine Ben Hadj Ali
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.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3382
-
1052
-
1050
-
886
-
847
Top Rated Tags© 2025 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

Welcome to Ansys Assistant!
An AI-based virtual assistant for active Ansys Academic Customers. Please login using your university issued email address.

Hey there, you are quite inquisitive! You have hit your hourly question limit. Please retry after '10' minutes. For questions, please reach out to ansyslearn@ansys.com.
RETRY