|
[Sponsors] |
March 31, 2015, 07:23 |
Dpm_surften
|
#1 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
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 |
|
March 31, 2015, 08:17 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
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).
|
|
March 31, 2015, 19:02 |
|
#3 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
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; } } |
|
March 31, 2015, 19:14 |
|
#4 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
||
|
|