Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Journal file UDF

    • paola_1
      Subscriber

      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?

    • DrAmine
      Ansys Employee
      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.
    • paola_1
      Subscriber
      Can you help me? I can't find the command to hook the functions.
    • paola_1
      Subscriber
      I did it. Thank you.
    • Rob
      Forum Moderator
      please post the answer here so the next time someone's looking for it they can thank you for sharing.
    • paola_1
      Subscriber
      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
      Ansys Employee
      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.
Viewing 6 reply threads
  • The topic ‘Journal file UDF’ is closed to new replies.