Topics relate to Fluent, CFX, Turbogrid and more

UDS, UDM writing issue

    • shadowfax7


      I am trying to program a body force on particles using DPM.

      To calculate and implement my code I reserve 2 UDS and 2 UDM.

      The UDM contain values needed to calculate the force but I need the gradient of these values.

      Therefore, I use the 2 UDS whose values I set equal to the UDM values, making use of the patch function after initialization and custom defined field functions.

      However, when I start the simulation, these values start dropping each iteration until they reach zero.


      How can I solve this issue?

    • Rob
      Ansys Employee

      What is there in the code to maintain the UDS values during the simulation? 

      Have a look at https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/flu_udf/flu_udf_DataAccessMacros.html%23flu_udf_sec_udm_macros Example UDF that Utilizes UDM and UDS Variables

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