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:15
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, 5 views)
File Type: jpg QQ Photo20141126205201.jpg (36.0 KB, 8 views)
smarika is offline   Reply With Quote

Old   November 27, 2014, 10:31
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Quote:
Originally Posted by smarika View Post
when i initialize the solution using the following udf it gives me error in the x, y and z component.
Can you be more specific about this? What error is shown?
pakk is offline   Reply With Quote

Old   November 27, 2014, 22:41
Default
  #3
New Member
 
sitasma
Join Date: May 2014
Posts: 8
Rep Power: 11
smarika is on a distinguished road
the errror is when i select the inlet for solution initialization. please see the attached pictures
smarika is offline   Reply With Quote

Old   November 28, 2014, 06:21
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
I don't see an error. I only see the value "-1.#IND", is that what you are referring to?

These values are not errors. They might lead to errors later on. Why don't you just replace them by other values, for example all zeroes? It is only the initialisation after all...
pakk 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
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 04:53
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 09:40
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 09:30
POSDAT problem piotka STAR-CD 4 June 12, 2009 08:43


All times are GMT -4. The time now is 06:05.