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/)
-   -   Dpm_surften (https://www.cfd-online.com/Forums/fluent-udf/150866-dpm_surften.html)

hwet March 31, 2015 06:23

Dpm_surften
 
Trying to use DPM_SURFTEN in my UDF to calculate the Weber number, end up getting an error saying DPM_LIQUID_PROPERTY not available. I can get it working by just putting the actually value of the surface tension of water (0.072) in my UDF, but wanted to know why it is not working in the first place.

Could someone explain?
Thanks

`e` March 31, 2015 07:17

What is your UDF and when and what exactly is the error? Perhaps you have not enabled a certain setting that DPM_SURFTEN requires (which is why it's unavailable).

hwet March 31, 2015 18:02

Here is it, also printed the calculated Weber number, it is being calculated at every timestep i think, shouldn't it be just calculated for the wall boundary when the particles reach the boundary?

#include "udf.h"
#include "dpm.h"
DEFINE_DPM_BC(drop_col_wet_scrubber, particle_data, thread_face, f_index, f_normal, dim)
{
real collision_weber_number;

collision_weber_number=(P_RHO(particle_data) * P_DIAM(particle_data) * 10) / DPM_SURFTEN(particle_data);

if (collision_weber_number >= 50)
{return PATH_END;
}
else
{return PATH_ACTIVE;
}
}

`e` March 31, 2015 18:14

Quote:

Originally Posted by `e` (Post 539204)
and when and what exactly is the error? Perhaps you have not enabled a certain setting that DPM_SURFTEN requires (which is why it's unavailable).

Side note: the dpm.h header file is already included in the udf.h header file.


All times are GMT -4. The time now is 09:47.