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

access violation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2002, 01:18
Default access violation
  #1
R.B.M
Guest
 
Posts: n/a
HI,

I wrote UDF(define- on demande)to calculing the derive of density .(Fluent6) and I compiled(interpretet ) it successfully. BUT when I execute on I had this error:

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: ()

Does anybody know which mistake can lead to this error?

Thanks a lot in advance.

include"udf.h"

DEFINE_ON_DEMAND(Density_Grad) {

Domain *domain;

Thread *thread;

cell_t cell;

domain = Get_Domain(1);

thread_loop_c(thread,domain)

{

begin_c_loop(cell,thread)

{

/* ---- copy density to UDS */

C_UDSI(cell,thread,0) = C_T(cell,thread);

/* --- store gradient d/dx in UDM */

C_UDMI (cell,thread,0) = C_UDSI_G(cell,thread,0)[1];

}

end_c_loop(cell,thread)

}

}

Thanks a lot in advance.
  Reply With Quote

Old   July 10, 2002, 09:35
Default Re: access violation
  #2
Ale
Guest
 
Posts: n/a
Hi, apparently none of the users of this forum has a precise idea of what this error message means.

I asked the same question few months ago (and someone else did the same even earlier), but we had no complete and exhaustive answer, as you can see if you search for 'access violation' on this website.

This error should probably concern memory usage of Fluent, I think.

I'm sure you will receive this message if you attempt to use a number of UDS greater than the one you defined in define/models/user defined scalars (Fluent 5.4; Fluent6 should be similar). Check it. Remember that the index of UDS begins with 0, so that if you use, say, UDSI(cell,thread,5), you are using 6 scalars.

Anyway, sometimes when I load case and data file of a simulation and I try to start again the computation, I receive this message. Then I initialize the solution, I make 1 iteration, I load data again and I have no more any problem... I yet cannot understand this behavior.

I would be very grateful if anyone could provide us any useful information on this kind of error.

Thank you,

Ale

  Reply With Quote

Old   July 11, 2002, 05:02
Default Re: access violation
  #3
Thitikorn
Guest
 
Posts: n/a
I don't have knowledge about User Defined Scalar. But when you use Interpret in Fluent 5.5 - 6.0. trial to use this

Domand *domand;

||

\ / extern Domand *domand;

when, I use Defined On Demand. If I write "Domand *domand;" I got error ACCESS_VIOLATION like you. but If I add "extern" It work .
  Reply With Quote

Old   July 11, 2002, 06:07
Default Re: access violation
  #4
lohen
Guest
 
Posts: n/a
Hi, beware that when you are using UDMI that you have already set memory place before starting calculations.

bye

  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
specified shear at wall - temperature gradient - UDF - access violation error senD Fluent UDF and Scheme Programming 9 September 18, 2014 08:29
UDF Access violation therandomestname FLUENT 0 April 15, 2011 18:31
Access violation error pointer to a file salihovic FLUENT 0 February 8, 2011 11:18
Access violation - Help please AlwaysLearning FLUENT 3 August 22, 2006 13:21
ACCESS VIOLATION during autosaving case file Ryan FLUENT 1 April 20, 2004 11:32


All times are GMT -4. The time now is 22:27.