Ansys Learning Forum › Forums › Discuss Simulation › Fluids › Fluid velocity in dpm_drag › Reply To: Fluid velocity in dpm_drag
February 21, 2023 at 9:55 am
Chris_g
Subscriber
I am testing on a MWE so this is the whole code:
 #include "udf.h"
 #include "surf.h"
 #include "dpm_types.h"
 #include "dpm.h"
 #include "dpm_mem.h"
 #include "mem.h"
 #include "materials.h"
 #include "threads.h"
Â
Â
DEFINE_DPM_DRAG (test_drag, Re, tp)
{
  cell_t c;
  Thread *t0;
  real uvel;
  Â
  t0 = TP_CELL_THREAD(tp);
  c = TP_CELL(tp);
  Â
  uvel = C_U(c,t0);
  Â
  real drag_force;
  drag_force = 0.1;
    Â
  return (drag_force);
}