CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   C_UDSI_G() in DEFINE_ADJUST (https://www.cfd-online.com/Forums/fluent/41403-c_udsi_g-define_adjust.html)

shuqin June 15, 2006 21:56

C_UDSI_G() in DEFINE_ADJUST
 
Has anyone tested Fluent6.1.22 UDF Manual 4.2.1 DEFINE_ADJUST Example 2 ?

When I use a C_UDSI_G in DEFINE_ADJUST, the access_violation error came out.

if I start iteration without hooking the adjust fuction,the iteration executed ,after some steps, I hooked the adjust function and initialized ,the iteration continues . I guess this is because the gradient of C_UDSI(C_UDSI_G ) isn't allocated yet ,but the codes do contain the if (! Data_Valid_P())return; sentence?

I check the id.h in the src file as: FLUENT_EXPORT boolean Data_Valid_P(void); The FLUENT_EXPORT usually provides a GUI operation interface.am i right?

can some one give me some suggestion that how to let Fluent iterate when hooked a adjust function which contains C_UDSI_G other then let it iterate some step without hooking this adjust function? and the reason for this? thanks in advance


karolw June 16, 2006 06:05

Re: C_UDSI_G() in DEFINE_ADJUST
 
I ran into the same problem with v6.2 and bypassed it as you did. I guess it is rather a "feature" and not some bug since Fluent did not fix it at the next version.


shuqin June 18, 2006 00:12

Re: C_UDSI_G() in DEFINE_ADJUST
 
thanks,karolw


All times are GMT -4. The time now is 21:14.