|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 16 ![]() |
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; } |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
JaeWon Lee
Join Date: Sep 2010
Posts: 1
Rep Power: 0 ![]() |
sorry, it doesn`t work T-T
|
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Netgen] Import netgen mesh to OpenFOAM | hsieh | OpenFOAM Meshing & Mesh Conversion | 32 | September 13, 2011 05:50 |
UDF for varying contact angle (wettability gradient)) | aviitkgp1 | FLUENT | 1 | March 10, 2010 14:37 |
problems with UDF to set contact angle | poiuy219 | Main CFD Forum | 0 | April 30, 2009 10:43 |
Dynamic Contact Angle UDF | codyn | Fluent UDF and Scheme Programming | 0 | April 2, 2009 02:03 |
Contact angle UDF | shephali shrimali | FLUENT | 0 | May 10, 2007 07:52 |