CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for Contact Angle

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2010, 03:57
Default UDF for Contact Angle
  #1
Member
 
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 16
gandesk is on a distinguished road
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;

}
gandesk is offline   Reply With Quote

Old   November 1, 2010, 10:00
Default
  #2
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

Reply


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 15:21.