|
[Sponsors] |
July 19, 2006, 07:50 |
help udf !!!!
|
#1 |
Guest
Posts: n/a
|
Hi!
i ran a steady flow simulation in Fluent. i know the distribution of the velocity in the domain,including the velocity inlet. That is a full development velocity in a rectangle pipe. so i want to use udf to specify the velocity distribution. i used DEFINE_ADJUST . the interpret was ok. But iteration had a problem. Error: Floating point error: invalid number Error Object: () codes are below: #include "udf.h" DEFINE_ADJUST(adjust_velocity, domain) { real x[ND_ND]; real y; real z; Thread *t; cell_t c; face_t f; thread_loop_c (t,domain) { begin_c_loop (c,t) { C_CENTROID(x,f,t); y= x[1]; z= x[2]; C_U(c,t)=0.04025*pow(1.455,2)*(1-pow(y,2.2)*pow(100,2.2))*(1-pow(z,2.2)*pow(100,2.2)); } end_c_loop (c,t) } } Can anyone help? Thanks in advance Woo |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |