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

UDF for varying contact angle (wettability gradient))

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2010, 04:28
Thumbs up UDF for varying contact angle (wettability gradient))
  #1
New Member
 
Ankit verma
Join Date: Oct 2009
Location: CHandigarh, Kharagpur
Posts: 4
Rep Power: 16
aviitkgp1 is on a distinguished road
Hi all Fluent users!

I am working on 'CFD simulation (3D)of a droplet moving under a wettability gradient'.
I want to introduce a wettability gradient by varying the contact angle. Could anyone help me with writing a UDF for introducing a contact angle variation along X axis in a 3D domain ? My domain is a 3D cuboid.


Ankit Verma
aviitkgp1 is offline   Reply With Quote

Old   March 10, 2010, 14:37
Default
  #2
New Member
 
Ankit verma
Join Date: Oct 2009
Location: CHandigarh, Kharagpur
Posts: 4
Rep Power: 16
aviitkgp1 is on a distinguished road
#include "udf.h"
I wrote this UDF for a 2D domain.


DEFINE_PROFILE(contact_angle,t,i)
{
real y[ND_ND];
real x;
face_t f;

begin_f_loop(f,t)
{
F_Centroid(y,f,t)
x=[1];
F_PROFILE(f,t,i)=30-(300*x);
}
end_f_loop(f,t)

}



Can anyone please help me in converting it to a 3D domain?
Thanks in advance!
aviitkgp1 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
Dynamic contact angle rmousavibt Fluent UDF and Scheme Programming 12 October 31, 2021 22:38
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 05:50
problems with UDF to set contact angle poiuy219 Main CFD Forum 0 April 30, 2009 10:43
Contact angle UDF shephali shrimali FLUENT 0 May 10, 2007 07:52
UDF for dynamic contact angle Aireen FLUENT 0 August 11, 2006 11:08


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