|
[Sponsors] |
May 9, 2000, 03:42 |
UDF
|
#1 |
Guest
Posts: n/a
|
Hi, why it's not possible to compile these function.
#include "udf.h" Thread *t; cell_t c; int i; DEFINE_UDS_FLUX(massen_fluss,face,thread,eqn) { #define omega 100.; #define epsilon 0.37; double alpha,radius; double x[ND_ND]; double F[ND_ND]; F_CENTROID(x,face,thread); alpha = atan2(x[0],x[2]); radius = sqrt(pow(x[0],2.)+pow(x[2],2.)); F[0] = epsilon*(F_U(face,thread)+radius*omega*sin(alpha)) ; F[1] = F_V(face,thread); F[2] = epsilon*(F_W(face,thread)+radius*omega*cos(alpha)) ; return F[eqn]; } The compiler message is: Error: all.c: line 20: Syntax error. Error: all.c: line 20: invalid type for pointer dereference: double. Thangs for help, Ulrich |
|
|
|
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 |