-
-
February 26, 2025 at 4:06 pm
zhou333708124
SubscriberI set 2 UDFs in my case
One is "DEFINE_EXECUTE_ON_LOADING" type, this UDF can be auto run and it execute correctly.
The other is "DEFINE_EXECUTE_AT_END" type, this UDF need to be hooked and it cannot execute in calculation process.
I check the "start_coupled.jou" and "fluent.log" written by RockyDEM, and I found Rocky set its own UDF by "/define/user-defined/function-hooks/execute-at-end "exchange_rocky_fluent_coupling_data::rocky_fluent_coupling" "inject_remove_particles::rocky_fluent_coupling" """
This command hooks those two UDFs to execute-at-end, my UDF has been replaced or just not get hooked, so I cannot use UDFs that need hooking in coupling. This command is execute automaticly by Rocky.
As the Rocky coupling start, there are nothing I can do to pause the process or exchange the files, so if there are anyway to hook my UDFs automaticly?
-
March 7, 2025 at 12:12 pm
Jackson Gomes
Ansys EmployeeHi Zhou,
Rocky automatically sets its own UDFs in execute-at-end, replacing yours. To work around this:
- Use a different hook, like DEFINE_ADJUST.
- Modify
start_coupled.jou
before execution to add your UDF. - Append your UDF to the same hook manually if possible.
-
March 10, 2025 at 7:04 am
zhou333708124
SubscriberThanks Jackson.
DEFINE_ADJUST cannot be hooked normally. As you can see, execute-at-end, initialization and adjust are all replaced.
But some of DEFINE_PROFILE UDFs can be executed.
To modify start_coupled.jou or hook my UDF manually have the same problem that I can’t pause the process, the calculation is automaticlly execute by Rocky, and if I change the .jou file the process will be shut down.
If there are any option for user to pause the process and adjust the setting manually?
Best wish for you
-
March 12, 2025 at 6:08 pm
Jackson Gomes
Ansys EmployeeDear Zhou,
Which Rocky version are you using? Also, can you check your
.cas
file in a text editor like Notepad++ and look forudf/execute-at-end-fcns
,udf/init-fcns
, orudf/adjust-fcns
?If Rocky is replacing everything, have you tried running Fluent in interactive mode before starting the coupling?
-
- You must be logged in to reply to this topic.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- I am doing a corona simulation. But particles are not spreading.
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Issue to compile a UDF in ANSYS Fluent
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
-
3892
-
1414
-
1241
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.