CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF compilation error (http://www.cfd-online.com/Forums/fluent-udf/33378-udf-compilation-error.html)

Szabolcs Varga April 2, 2004 09:37

UDF compilation error
 
Dear All, I am getting a compilation error of a UDF related (I think)to RP macros. Unfortunatelly I could not find the origin and meening of this error:

Error: G:\fluentwork\trigen\phase3\eforce_szabi.c: line 7: structure reference not implemented

There is almost no documentation on what RP_CELL(&(p->cCell)) and RP_THREAD(&(p->cCell)) are and how to use them correctly. There are a two examples in the fluent manual for the use of these macros, but I could not comile those examples either (4.6.12 Define_DPM_SWITH in the UDF manual). Could you please help me out what the problem might be? I am attaching the UDF below. Szabolcs

#include "udf.h" #include "dpm.h" #include "surf.h"

DEFINE_DPM_BODY_FORCE(force_L_P,p,idir) { cell_t c=RP_CELL(&(p->cCell)); Thread *t=RP_THREAD(&(p->cCell)); real l_force, mp, ex_t, er_t, Elp; real charge_on_p;

int V_x=0, V_r=0, E_x=0, E_r=1, E_magn=2;

mp=P_MASS(p);

charge_on_p= P_DIAM(p)*1.6e-11; /* you have to define real function P_charge() for particle charge*/ ex_t=C_UDMI(c,t,E_x); er_t=C_UDMI(c,t,E_r);

/* user code for x component force (m/s/s) */ if (idir==0) { l_force=ex_t*charge_on_p/mp; /*Fx*/ } /* user code for r component force (m/s/s) */ if (idir==1) { l_force=er_t*charge_on_p/mp; /*Fr*/ } return l_force }

Ajay April 2, 2004 21:42

Re: UDF compilation error
 
structure reference not implemented is usually got when you try to "interpret " the UDF's rather than "compiling" them -Ajay

FJ April 6, 2004 02:09

Re: UDF compilation error
 
Hi,

Yes,Yes. Ajay is right. We cannot use "interpretted" when we refer to structured variables. Let compile it.

Thank you

FJ

bia April 11, 2015 13:49

same problem
 
I've got the same problem , so I try to compile but I had this text message error :Error: open_udf_library: Le fichier spécifié est introuvable.

Error Object: ()
(the specific folder not found (libudf ) ?
I turn back and unload the libudf and recompile again but always the same problem . please help me
thanks :)
:o


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