CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

need help whith hooking UDF and DEFINE_INIT macro

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 6, 2006, 08:44
Default need help whith hooking UDF and DEFINE_INIT macro
  #1
cax
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
  Reply With Quote

Old   June 6, 2006, 09:01
Default Re: need help whith hooking UDF and DEFINE_INIT ma
  #2
cax
Guest
 
Posts: n/a
the exact name of the error is: FLUENT received fatal signal (ACCESS_VIOLATION)
  Reply With Quote

Old   June 6, 2006, 12:32
Default Re: need help whith hooking UDF and DEFINE_INIT ma
  #3
Allan Walsh
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.
  Reply With Quote

Old   June 6, 2006, 12:35
Default Re: need help whith hooking UDF and DEFINE_INIT ma
  #4
Cax
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...
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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