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/)
-   -   UDF for Contact Angle (https://www.cfd-online.com/Forums/fluent-udf/78696-udf-contact-angle.html)

gandesk July 30, 2010 02:57

UDF for Contact Angle
 
Hi,

I want to write a UDF for defining Contact angle boundary condition for the case of 2 phase problem solved with unsteady VOF method. My requirement is to give input to the case file with the updated contact angle at evry new time step.

I am including the code i have written...i appreciate if any one can find mistake in the code......

#include "udf.h"


DEFINE_PROFILE(contact_angle,c, mixture_thread)

{

real theta;

float current_time = CURRENT_TIME;

if (current_time = 0)

theta = 140;

if (0 < current_time <= 0.00005)

theta = 130;

if (0.00005 < current_time <= 0.0001)

theta = 125;


else

theta = 135;

}

achooachoo November 1, 2010 09:00

sorry, it doesn`t work T-T


All times are GMT -4. The time now is 23:07.