|
[Sponsors] |
UDF for varying contact angle (wettability gradient)) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 18, 2010, 05:28 |
UDF for varying contact angle (wettability gradient))
|
#1 |
New Member
Ankit verma
Join Date: Oct 2009
Location: CHandigarh, Kharagpur
Posts: 4
Rep Power: 17 |
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 |
|
March 10, 2010, 15:37 |
|
#2 |
New Member
Ankit verma
Join Date: Oct 2009
Location: CHandigarh, Kharagpur
Posts: 4
Rep Power: 17 |
#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! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic contact angle | rmousavibt | Fluent UDF and Scheme Programming | 12 | October 31, 2021 23:38 |
[Netgen] Import netgen mesh to OpenFOAM | hsieh | OpenFOAM Meshing & Mesh Conversion | 32 | September 13, 2011 06:50 |
problems with UDF to set contact angle | poiuy219 | Main CFD Forum | 0 | April 30, 2009 11:43 |
Contact angle UDF | shephali shrimali | FLUENT | 0 | May 10, 2007 08:52 |
UDF for dynamic contact angle | Aireen | FLUENT | 0 | August 11, 2006 12:08 |