Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

UDF to change particle integration step and print it

    • aniruddhabose96
      Subscriber

      Hi

      I am using DEFINE_DPM_TIMESTEP to change the particle tracking time step following UDF manual, but when i am printing it using DEFINE_SCALAR_UPDATE, it is printing Fluents default time step value. What is the issue here? I have attached my UDF below.

      #include "udf.h"
      #include "dpm.h"
       
       
      DEFINE_DPM_TIMESTEP(my_dt,tp,dt)
      {
          if(dt<0.001)
          {return 1;}
          return dt;
      }                                                                     /*UDF to check particle time step*/
       
       
      DEFINE_DPM_SCALAR_UPDATE(store_vel,c,t,initialize,tp)
      {
          if (initialize)
              return;
       
       
              Message("part time step=%e\n",TP_DT(tp));
       
      }

       

    • Rob
      Forum Moderator

      I assume you hooked it up? 

    • aniruddhabose96
      Subscriber

      Yes like Function-compiled and then Build and load and then hooked it in respective area. It is printing Fluents default time step and not my given step.

    • Rob
      Forum Moderator

      What did you set in the DPM panel?

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
[bingo_chatbox]