|
[Sponsors] |
August 8, 2012, 09:53 |
Sos!!! Udf code
|
#1 |
New Member
zhuoweili
Join Date: Oct 2011
Posts: 14
Rep Power: 15 |
Hi there,
I am working on a UDF CODE which is as below, but it doesn`t work for me, could you please check what mistakes I have made? Thank you in advance. I think the problem is the function what I used, I want to describe that power 1/6 of (0.003125-fabs(x)), how? and also, x should be an absolute value #include "udf.h" DEFINE_PROFILE(unsteady_velocity,thread,index) { real pos[ND_ND]; real x, t; face_t f; begin_f_loop(f, thread) { F_CENTROID(pos, f, thread); x=pos[0]; t=CURRENT_TIME; F_PROFILE(f,thread,index) =pow((0.003125-fabs(x)),(1/6))*39.75287884+0.3*15.2*sin(1600*3.1415926*t); } end_f_loop(f, thread) } Last edited by Jo_vivian_lee; August 8, 2012 at 10:23. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Brownian Motion UDF Code | Confuser | FLUENT | 3 | August 13, 2021 02:14 |
The FOAM Documentation Project - SHUT-DOWN | holger_marschall | OpenFOAM | 242 | March 7, 2013 13:30 |
UDF code | yahya_azizi | Fluent UDF and Scheme Programming | 4 | August 6, 2012 09:06 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |