Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

DEFINE DPM PROPERTY

    • Masi
      Subscriber

      Hi, 

      I want to use DPM_DEFINE_PROPERTY to specify a custom particle density, Here is my UDF :

      #include "udf.h"
       
      DEFINE_DPM_PROPERTY(droplet_density,c,t,p)
      {
        real rho= P_RHO(p);
        real Tp = P_T(p);
        
       
         rho = 508 + 967.57693 * pow((1-(Tp/374.15)),0.33);
        
       
        return rho;
      }
       
      The error after interpreting:  error: macro "DEFINE_DPM_PROPERTY" requires 5 arguments, but only 4 are given.
       
      what is the fifth argument? 

       

    • Rob
      Ansys Employee

      I'm guessing you've read an older copy of the documentation and then compiled in the current release. So, the argument would be to use the documentation in the solver Help....  More usefully, https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/flu_udf/flu_udf_DPMDEFINE.html%23flu_udf_sec_define_dpm_property

       

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