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

UDF in 3D domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2010, 12:53
Default UDF in 3D domain
  #1
New Member
 
Ankit verma
Join Date: Oct 2009
Location: CHandigarh, Kharagpur
Posts: 4
Rep Power: 16
aviitkgp1 is on a distinguished road
hello everyone!

Can anyone please give me some tutorials (or their link) related to 3D UDFs. All the examples given in fluent tutorials are in 2D.

Thanks in advance!

Regards

Ankit Verma
aviitkgp1@gmail.com
aviitkgp1 is offline   Reply With Quote

Old   March 14, 2010, 09:08
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Whats the problem with 3D?!
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   March 14, 2010, 10:30
Default
  #3
New Member
 
Ankit verma
Join Date: Oct 2009
Location: CHandigarh, Kharagpur
Posts: 4
Rep Power: 16
aviitkgp1 is on a distinguished road
I have read many examples of 2D UDFs, but there's no example of 3D UDF given in fluent tutorial.

I wrote a 2D UDF to vary contact angle along x axis at the bottom surface. I am not sure whehter it would work for 3D as well.

The UDF is :

#include "udf.h"

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=y[1];
F_PROFILE(f,t,i)=90-(1700*x);
}
end_f_loop(f,t)

}


x varies from 0 to 0.05
y varies from 0 to 0.01
z varies from 0 to 0.02

The contact angle is defined at y=0 and does not change with z direction.


--Ankit Verma
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
UDF using c_face_loop(c,t,i) frederic FLUENT 3 January 16, 2017 23:17
Help Parallelizing UDF AndresC FLUENT 0 February 25, 2010 15:50
How can I increase Heat Transfer at Domain Interf? B.Simon CFX 3 October 28, 2008 18:53
DEFINE_ADJUST & Domain... Corentin FLUENT 9 April 9, 2008 11:30
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 00:36.