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

udf for shear velocity error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2014, 09:26
Default udf for shear velocity error
  #1
New Member
 
sitasma
Join Date: May 2014
Posts: 8
Rep Power: 11
smarika is on a distinguished road
I am simulating the air flow over a 3D wind turbine of radius 45m in a wind domain using a paraboilc velocity inlet profile with intial velocity 5m/s at 4m height and exponent is 0.4.

The inlet profile is written by the following code, which is interpreted into fluent without any errors.

the rotating domain with sliding mesh is at 103 meters from inlet


The size of the wind domain is 400(x) x 150(y) x 150(z). T
the y direction is the height.

when i initialize the solution using the following udf it gives me error in the x, y and z component.

What can i do to maintain the Velocity Profile along the wind domain? Plz Help

#include "udf.h"


DEFINE_PROFILE(inlet_x_velocity,thread,index)
{
real z[ND_ND];
real Y;
face_t f;
begin_f_loop(f,thread)
{
F_CENTROID(z,f,thread);
Y= z[2];
F_PROFILE(f,thread,index)=5*pow(Y/4,0.3);
}
end_f_loop(f,thread)
}
Attached Images
File Type: jpg 12.jpg (9.8 KB, 3 views)
File Type: jpg QQ Photo20141126205201.jpg (36.0 KB, 3 views)
smarika 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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


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