-
-
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- You must be logged in to reply to this topic.
Ansys Innovation SpaceBoost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.Â
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- Suppress Fluent to open with GUI while performing in journal file
- error: Received signal SIGSEGV
- Using GPU in FLUENT
Top Contributors-
8786
-
4658
-
3151
-
1680
-
1468
Top Rated Tags© 2023 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.
-