CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF for dynamic contact angle (http://www.cfd-online.com/Forums/fluent/42000-udf-dynamic-contact-angle.html)

Aireen August 11, 2006 11:08

UDF for dynamic contact angle
 
Can somebody help me. I wrote a simple udf to specify dynamic contact angle in VOF model. When I hook it up, it didn't report any error. But the result from the simulation was not what I expected. This is my code:

DEFINE_PROFILE(contact_angle,c, mixture_thread) { real theta; real current_time = CURRENT_TIME;

if (current_time <= 0.003)

theta = 140;

else

theta = 14;

}



All times are GMT -4. The time now is 06:46.