Fluids

Fluids

DEFINE_OUTPUT_PARAMETER not working in UDF

    • c.bruno
      Subscriber

      Hello everyone,

      In my simulations I am computing the values of shear stress inside the fluid domain (using DEFINE_EXECUTE_AT_END(shear_stress_calc)) and then I am trying to find the percentage of elements whose shear stress is higher than a 10Pa threshold (using DEFINE_EXECUTE_AT_EXIT(ss_threshold)).

      I would like my UDF to output the value of the percentage but I am not sure how to do it. Using the UDF manual I realised that I could use DEFINE_OUTPUT_PARAMETER but when I run my simulations it doesn't seem to work.

      I can interpret correctly my UDFs but I don't get any output parameter. Does anybody know what I am doing wrong?

      This is my UDF for computing and returning the percentage of shear stress:

      Thank you in advance.

    • DrAmine
      Ansys Employee

      Which Ansys Fluent Version are you using? There is a new macro to do that in the recent Ansys Fluent released and supported versions.

    • c.bruno
      Subscriber

      I am using Ansys 19.0. Is the new macro available in this version?

    • DrAmine
      Ansys Employee

      Should be: check DEFINE_REPORT_DEFITION_FN and I recommend to update a supported version. Release 19.0 is not supported anymore.

    • c.bruno
      Subscriber

      I will, thank you! 

Viewing 4 reply threads
  • You must be logged in to reply to this topic.