CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Getting "p" properties at injection from knowing "p" at wall in DEFINE_DPM_BC (https://www.cfd-online.com/Forums/fluent-udf/151359-getting-p-properties-injection-knowing-p-wall-define_dpm_bc.html)

Manathan April 9, 2015 05:30

Getting "p" properties at injection from knowing "p" at wall in DEFINE_DPM_BC
 
Hello everyone !

I'm using DEFINE_DPM_BC to know identify which stream/particle hit my wall and so i can recover the accretion rate for each cell along the wall that was hit.

But I also need to know the initial flow rate corresponding to the same particle but at its injection.
Basically I need :

P_FLOW(p_wall) => I obtain it since my p in DEFINE_DPM_BC correspond to the particle at the wall
P_FLOW(p_injection) => with p_injection coming from the same stream than p_wall



Do you have any idea how to get it ?

`e` April 9, 2015 05:51

The macro P_FLOW_RATE(p) gives the injection stream's flow rate [kg/s].

Manathan April 9, 2015 05:56

Thanks !

So now I need to divide this mass flow rate by the face area through which the stream is going at injection (first cell).
I've identified the first cell(c,t) for each stream and thought using thoes function C_FACE(c,t,i) to identify "f" and C_FACE_THREAD to identify "t" of the specific face and use F_AREA(A,f,t) to obtain the face AREA I need at injection.

My problem is the index "i", I don't know its value because I don't know the convention of the index for cell, especially for cell at inlet.

Do you have any ideas please ?


All times are GMT -4. The time now is 11:29.