Fluids

Fluids

How to use an output parameter (report – surface integral) in udf?

    • Jad Diab
      Subscriber

      Dear all,

      I would like to use the surface integral of a UDMI i calculate in a udf, as a boundary condition.

      Could anyone please help do that? 

      I tried creating a new input parameter using scheme: (lambda (val) (ti-menu-load-string (format #f "/report/surface-integrals/integral/7 () udm-12 no")))

      but eventhough it shows in the TUI the integral value, when I use rpgetval (or in udf, RP_GET_REAL) the value is always zero

      Thank you for your help

    • Essence
      Ansys Employee

      Hi,

      You can try using DFINE macros.

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.