CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   dpm drag coefficient (https://www.cfd-online.com/Forums/fluent/85187-dpm-drag-coefficient.html)

igorb February 19, 2011 05:54

dpm drag coefficient
 
Hello!

I'm trying to simulate pulverized biomass combustion and would like to implement custom drag laws on biomass particles. I have several injections of biomass particles of different shapes and sizes and would like to assign different drag coefficients for different injections. For example injection-1 are cilindrical particles injection-2 flake-like etc. my question is how to identify injections in UDF? I tried with something like this:

if (p->injection->name=="injection-1")
{
/* ...calculate Drag for cilindrical particle*/
..
..
}
else
{
Drag=SphereDragCoeff(RE);
}
return(Drag);

But in this case sphere drag law is used even for "injection-1". btw. "injection-1" is the name of injection assigned in injections panel under injection name. Where am I making a mistake?

Thanks in advance,
Igor B.


All times are GMT -4. The time now is 13:17.