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

Problem using UDF for velocity inlet

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 12, 2018, 09:10
Default Problem using UDF for velocity inlet
  #1
New Member
 
Join Date: Jun 2018
Posts: 7
Rep Power: 7
panasonic18 is on a distinguished road
Hey,



i've real big problem using an UDF for velocity inlet and can't solve it. It's a Mesh over an Airfoil created with ANSYS ICEM 15.0. When i load the Mesh into FLUENT 15.0 everything is fine, no errors.



Hybrid Initialisation is well without using the UDF, so no Errors without using the UDF.



But when i want to implement the UDF and press Hybrid Initialisation, FLUENT says this:



Error: %prf-set-var: invalid flonum
Error Object: -1.#ind


I can't figure out, where the problem is. Also never heard this error before and searching via google wasn't succesfull. So maybe someone coul help me? Here my defined UDF:




#include "udf.h"

#define c_max 30.88 // unit m/s
#define delta 0.04
DEFINE_PROFILE(inlet_velocity, t, i)
{
real x[3];
real y;
face_t f;

begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y = x[2];

if(x[2] <delta)

F_PROFILE(f,t,i) = c_max * pow(x[2]/delta, 0.2);

else

F_PROFILE(f,t,i) = c_max;
}
end_f_loop(f,t)

}


I appreciate every kind of help.



Best regards
panasonic18 is offline   Reply With Quote

 


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
UDF problem- time dependent temperature at inlet kaeran FLUENT 1 June 16, 2015 21:48
Open channel (inlet problem) burak_ekmekci Main CFD Forum 0 December 22, 2014 07:45
UDF profile: Fluent method for coupling inlet and outlet I-mech Fluent UDF and Scheme Programming 0 May 10, 2014 10:36
UDF problem : inlet velocity in cyl. coord. system Jongdae Kim FLUENT 0 June 15, 2004 11:21
UDF 3D inlet b.c. problem Andrew FLUENT 4 May 25, 2004 04:24


All times are GMT -4. The time now is 18:56.