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

3D UDF - Profile dependant on ground height

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 9, 2005, 13:23
Default 3D UDF - Profile dependant on ground height
  #1
Nigel Banks
Guest
 
Posts: n/a
Hi there,

I am modelling the flow around a group of buildings situated on undulating ground. My initial model used a flat ground and I sucessfully used the UDF below to model the atmospheric boundary layer velocity inlet conditions (velocity increases with distance above ground).

However, I have now included the local hills and so have different ground levels along the inlet. Is there any way to reference the coordinates of lower edge (which would give me the ground height at that point) in order to get the correct velocity profile???

Any help is very appreciated!!!

Many thanks, Nigel

#include "udf.h"

DEFINE_PROFILE(ABL_profile, thread, index)

{

real x[ND_ND];

real y;

face_t f;

begin_f_loop(f, thread)

{

F_CENTROID(x,f,thread);

y = x[1];

F_PROFILE(f, thread, index) = 1.465*log((y+0.01)/0.01);

}

end_f_loop(f, thread)

}

  Reply With Quote

Old   September 5, 2012, 06:50
Default
  #2
New Member
 
Stefano Capra
Join Date: Mar 2012
Posts: 8
Rep Power: 5
SteveGoat is on a distinguished road
Dear Nigel,
have you solved this issue?
I'm facing the same problem and it would be very useful to know your opinion about it

Many thanks
Stefano
SteveGoat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for linear temperature profile across the hemispherical surface tshv247 Fluent UDF and Scheme Programming 1 October 3, 2011 12:44
Accessing profile data from a UDF ral007 Fluent UDF and Scheme Programming 0 March 22, 2011 11:29
UDF parallel velocity inlet profile Armengol FLUENT 3 September 30, 2009 15:08
please help UDF for velocity profile in y-directio raju FLUENT 3 September 22, 2008 16:36
UDF: PROFILE + SOURCE Nuno FLUENT 0 September 1, 2008 15:31


All times are GMT -4. The time now is 16:43.