|
[Sponsors] |
need help whith hooking UDF and DEFINE_INIT macro |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 6, 2006, 09:44 |
need help whith hooking UDF and DEFINE_INIT macro
|
#1 |
Guest
Posts: n/a
|
Hi. I'm using a DEFINE_INIT macro in a compiled UDF for my simulation of greenhouse ventilation.this macro should initialise two User Define memories with a temperature (C_UDMI(cell,thread,0) and a mass fraction of vapor water (C_UDMI(cell,thread,1).After compiling my UDF, I try to hook this function thanks to the "function hooks" panel.But when I start the solver, an error message tells me to close Fluent and restart...I dont' know where is the problem can somebody help me please? thanks
|
|
June 6, 2006, 10:01 |
Re: need help whith hooking UDF and DEFINE_INIT ma
|
#2 |
Guest
Posts: n/a
|
the exact name of the error is: FLUENT received fatal signal (ACCESS_VIOLATION)
|
|
June 6, 2006, 13:32 |
Re: need help whith hooking UDF and DEFINE_INIT ma
|
#3 |
Guest
Posts: n/a
|
The ACCESS_VIOLATION is a generic error report in Fluent 6 (and reads the same as ACCESS_VIOLATION error in Fluent 4, which is written in Fortran).
From my experience, you normally get this error when you try and access a variable that has not been properly initialized or is not accessible in your function. I would check this accordingly, perhaps with a very simple bit of code. |
|
June 6, 2006, 13:35 |
Re: need help whith hooking UDF and DEFINE_INIT ma
|
#4 |
Guest
Posts: n/a
|
thxs a lot.I just took another source file (with the same syntax ) and it works. Fluent is like womens, not really simple to understand...
|
|
|
|