CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Error "structure reference not implemented" (http://www.cfd-online.com/Forums/fluent/49923-error-structure-reference-not-implemented.html)

HANA November 29, 2008 03:45

Error "structure reference not implemented"
 
Hello, I encountered with this error and I apprecitae if somebody help.I think something is wrong with using: BOUNDARY_FACE_GEOMETRY(f,thread,A,ds,es,A_by_es,dr 0);

DEFINE_PROFILE(Tin,thread,innersurf)

{

#define R 0.3

#define H 0.3

#define thermalk 1.4

real Tain;

real A[ND_ND];

real dr0[ND_ND],es[ND_ND],ds,A_by_es;

real Vol=((2./3.)*R+H)*pi*pow(R,2);

real HeatFlux;

Thread *t0;

cell_t c0;

cell_t c;

face_t f;

begin_f_loop(f,thread)

{ t0 = THREAD_T0(thread);

c0=F_C0(f,thread);

BOUNDARY_FACE_GEOMETRY(f,thread,A,ds,es,A_by_es,dr 0);

HeatFlux +=thermalk*(A_by_es*(F_T(f,thread)-C_T(c0,tc))/ds)+thermalk*(NV_DOT(C_T_G(c0,tc),A)-NV_DOT(C_T_G(c0,tc),es)*A_by_es);

Tain=(HeatFlux/(1.004*1000*1.169*Vol));

F_PROFILE(f,thread,innersurf)=Tain;

}

end_f_loop(f,thread)

}

HANA November 29, 2008 03:53

Re: Error "structure reference not implemented"
 
I added #include "sg.h" it doesn't wotk .

I am using interpreted one,PLZ help.

max December 1, 2008 08:30

Re: Error "structure reference not implemented"
 
Hello HANA,

some advanced Macros like BOUNDARY_FACE_GEOMETRY require that your udf is compiled and won't work in interpreted mode.

cheers Max


HANA December 2, 2008 02:50

Re: Error "structure reference not implemented"
 
Thanks Max, I think you are right! I will check it.


All times are GMT -4. The time now is 15:50.