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

Log-Law Wind Profile

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 29, 2016, 05:39
Default Log-Law Wind Profile
  #1
New Member
 
Jirawat S.
Join Date: Oct 2016
Posts: 2
Rep Power: 0
darchz is on a distinguished road
I'm new in FLUENT, now working on my architecture project to simulation wind through
high-rise building. I need to use log-law wind profile in 3D domain as attached picture.

I read from post and working on UDF as many suggestion. I curious why it doesn't work
for my case. All I've got is error massage "floating point exception".

Here is my udf file:

#include "udf.h"

DEFINE_PROFILE(log_law_velocity,thread,position)
{
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,position) = 10*log(y/0.6)/log(10/0.6);
}
end_f_loop(f,thread)
}

Or if you have other way to create this condition please let me know.

I Would greatly appreciate any help,
Best Regards
Jirawat.
Attached Images
File Type: jpg 5.jpg (111.5 KB, 22 views)

Last edited by darchz; December 29, 2016 at 11:36.
darchz is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anyone have 3D blade profile of wind turbine? kenya0514 Main CFD Forum 5 March 9, 2015 15:06
simulating wind shear profile for a wind turbine--> How??? mohammad CFX 14 August 25, 2014 10:09
Simulate the wind profile on a wind turbine---> HOW ???? mohammad Main CFD Forum 0 April 13, 2012 09:16
Simulate the wind profile on a wind turbine---> HOW ???? mohammad Main CFD Forum 0 April 13, 2012 09:07
Log Law Wind Profile for Urban analysis in Star-CCM+ 4 plainstyle Siemens 1 June 18, 2010 11:46


All times are GMT -4. The time now is 15:58.