We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Fluids DPM Particle Injection Total Flow Rate as a function of time Reply To: DPM Particle Injection Total Flow Rate as a function of time

Paul Richter
Subscriber

Dear Rob,

first of all thanks for your reply!

Yes i came up with this too, i made the Code:

#include "udf.h"

DEFINE_DPM_INJECTION_INIT(init,I)
{
    Particle *p;
    real time = CURRENT_TIME;
    real P_FLOW_RATE;
   
    // Einstellung der Partikelmasse
    P_FLOW_RATE(p) = time * time;
}

But i get the Error "P_FLOW_RATE: no function prototype"