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

help with udf for wind profil at inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2018, 10:44
Default help with udf for wind profil at inlet
  #1
New Member
 
BEKRAOUI Adil
Join Date: Mar 2018
Posts: 2
Rep Power: 0
BEK_Ad is on a distinguished road
hi;

i'm a beginner with udf at fluent.
i try to modify the tutorial on velocity profil at inlet that cames with fluent documentation.

this is the code (i just changed the equation)

/************************************************** *********************
vprofile.c
UDF for specifying steady-state velocity profile boundary condition
************************************************** **********************/
#include "udf.h"

DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1];
F_PROFILE(f, thread, position) = 2. - (y-84)*(y-84)/(84*84)*2.;
}
end_f_loop(f, thread)
}


when i compile and execute, the solution diverges. and when i try to initialize from the inlet i have X Velocity=8674757m/s

i even tried to put F_PROFILE(f, thread, position) = 2. but i have always the same error.


the geometry is a 3D square with dimentions :
H=84m --> Y axis
L=100m --> X axis
W=2 m --> Z axis

tank you
BEK_Ad is offline   Reply With Quote

Old   April 8, 2018, 11:08
Default solved
  #2
New Member
 
BEKRAOUI Adil
Join Date: Mar 2018
Posts: 2
Rep Power: 0
BEK_Ad is on a distinguished road
sorry
i found that fluent was pointing to the wrong .c file
BEK_Ad is offline   Reply With Quote

Reply

Tags
fluent - udf, fluent 6.3.26, wind profile


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
Disappearing mass when using udf inlet profile divergence Fluent UDF and Scheme Programming 5 January 2, 2021 15:56
Outlet temperature to temperature boundary condition of velocity inlet. (UDF) dillon Fluent UDF and Scheme Programming 3 March 25, 2018 12:06
UDF for inlet velocity alongwith UDF for properties akshayy224 FLUENT 0 February 1, 2018 10:17
Inlet won't apply UDF and has temperature at 0K! tccruise Fluent UDF and Scheme Programming 2 September 14, 2012 07:08
Probleme to interpret 3D temperature profil UDF christophe06 Fluent UDF and Scheme Programming 4 February 20, 2012 09:06


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