Journal file UDF

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?

Best Answers

  • paola_1paola_1 Member
    Accepted Answer

    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

Answers

This discussion has been closed.