CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for Contact Angle

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2010, 03:57
Default UDF for Contact Angle
Join Date: Jul 2010
Posts: 48
Rep Power: 15
gandesk is on a distinguished road

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;


theta = 135;

gandesk is offline   Reply With Quote

Old   November 1, 2010, 10:00
New Member
JaeWon Lee
Join Date: Sep 2010
Posts: 1
Rep Power: 0
achooachoo is on a distinguished road
sorry, it doesn`t work T-T
achooachoo is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50
UDF for varying contact angle (wettability gradient)) aviitkgp1 FLUENT 1 March 10, 2010 15:37
problems with UDF to set contact angle poiuy219 Main CFD Forum 0 April 30, 2009 11:43
Dynamic Contact Angle UDF codyn Fluent UDF and Scheme Programming 0 April 2, 2009 03:03
Contact angle UDF shephali shrimali FLUENT 0 May 10, 2007 08:52

All times are GMT -4. The time now is 12:02.