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

UDF Problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2004, 11:53
Default UDF Problem
  #1
Big Stone
Guest
 
Posts: n/a
I run a case using UDF compiled by C++. every thing is OK. after I save the case and data, I can not reopen it . It appears some error information below: if anyone know this, please help me.

Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: ()
  Reply With Quote

Old   March 24, 2004, 03:51
Default Re: UDF Problem
  #2
Ale
Guest
 
Posts: n/a
Hi,

I suggest you to search for "access violation" in this site; the error is quite common and has been discussed quite a lot.

However, I think that the error is connected to the access to memory locations by Fluent. I had the same problems you have, and in my case It was connected to the usage of UDS gradients, which are usually not defined at the beginning of the calculation (even if you start from a previous calculation).

The simplest way to solve the problem is to use gradients only if they are defined. For example, if you are using gradients of UDS i, you can set this control:

if (NULL != THREAD_STORAGE(t,SV_UDSI_G(i))) { ...do what you have to do... } else { ...write alternative instructions that do not need gradients... }

Of course, the 'else' condition will occur only at the first iteration.

I hope this helps.

Ale
  Reply With Quote

Old   March 24, 2004, 10:44
Default Re: UDF Problem
  #3
Big Stone
Guest
 
Posts: n/a
HI, Ale

Thank you very much. I will try to figure it out.
  Reply With Quote

Old   March 24, 2004, 10:52
Default Re: UDF Problem
  #4
Big Stone
Guest
 
Posts: n/a
Hi, Ale

Actually it is a case from the tutorial of FLUENT. Is it possible for it to have this problem.If you want , I can send the code to you and see what's going on?
  Reply With Quote

Old   March 25, 2004, 05:02
Default Re: UDF Problem
  #5
Ale
Guest
 
Posts: n/a
Hi,

Which is the tutorial? If you like, post your code.

Regards,

Ale
  Reply With Quote

Old   March 25, 2004, 08:33
Default Re: UDF Problem
  #6
Aleex
Guest
 
Posts: n/a
Thank you for your answer! I temporary solve this problem. I manually storage pressure values from previous time step in static array (static double prevP[MAX_VALUES_COUNT]) and hook to DEFINE_EXECUTE_AT_END and DEFINE_INIT. It`s work!

Regards, Aleex.
  Reply With Quote

Old   March 25, 2004, 08:37
Default Sorry. It`s for FJ :)
  #7
Aleex
Guest
 
Posts: n/a
  Reply With Quote

Old   March 25, 2004, 09:32
Default Re: UDF Problem
  #8
Big Stone
Guest
 
Posts: n/a
Ale Thanks

It is the tutorial of bubble break in a column. If you do not have it , I will send you email box.
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 00:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 09:58


All times are GMT -4. The time now is 02:30.