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

Access Violation Error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2006, 13:43
Default Access Violation Error
  #1
sid
Guest
 
Posts: n/a
Hi I've been working on Fluent 6.0 to simulate a fuel cell with multi-channels to evaluate its performance by way of current density... i have written udf for calculation of source terms... during compilation of the code... I got this error message several times, it says - Error: Access Violation. I dont know the exact reason for this error, if someone can help shed some light on it, it wud be useful... i think i have found two sources of this error, although i m sure there a re many more... 1. this happens when any of the calculated parameters reaches the value infinity, may be because the denominator is zero. This happens a lot when you are trying to extract parameters on a face, by a udf - macro.. a lot of the times that value is zero and when u divide something by it, it will lead to the above error. 2. this happens when you are trying to calculate some parameter using a wrong type of macro, say, current density by way of a DEFINE_PROFILE or DEIFNE_ADJUST macro... then there is often a mismatch between the return type that is expected and the return type that you are calculating... make sure that u define the correct macros along with correct return types... hope this helps some of u...

  Reply With Quote

Old   April 20, 2006, 12:10
Default Re: Access Violation Error
  #2
wicwawa
Guest
 
Posts: n/a
hi,sid. i hv work on fuel cell too. As my experiences, the error appear when you want to access some variables which the marco could not get. such as C_YI_G in the mass source udf. you have to text: solve-set-expert, and type yes to keep memory from freed.Then iteraing a few steps without the mass source, and again set on the mass source udf. the error would disappear. If possible, you can post your udf and we could find out the problem. BTW, i am using DEIFNE_ADJUST to caculate current density, i do not know why you say it is using a wrong type of macro?

BEST

wicwawa
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
polynomial thermophysical properties II sebastian OpenFOAM Running, Solving & CFD 54 November 21, 2019 07:12
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 05:48
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


All times are GMT -4. The time now is 06:05.