|
[Sponsors] |
May 7, 2009, 21:04 |
initialization give me a alarm
|
#1 |
New Member
Eric
Join Date: Apr 2009
Posts: 23
Rep Power: 17 |
my udf is succsssfuiiy compriled.but when i do the initialization,it will give an alarm :
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: () my udf should be right: #include "udf.h" DEFINE_PROFILE(currentdensity,thread,position) { double potential,icorr,iL,Ecorr,bc,ba; double a,a1,a2,a3,ic,ia,iA; face_t f; icorr=1.53e-5; Ecorr=-0.55; bc=0.1; iL=3.09e-3; ba=0.1; begin_f_loop(f,thread) { potential=-1*F_T(f,thread); a1=-1*(potential-Ecorr)/bc; a2=pow(10,a1); a=icorr/iL*(1-a2); ic=icorr*a2/(1-a); a3=(potential-Ecorr)/ba; ia=icorr*pow(10,a3); iA=ic-ia; F_PROFILE(f,thread,position)=-1*iA; } end_f_loop(f,thread) } can anyone tell me the possibility of my problem! thanks! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
code initialization - exclude pressure | edna | Siemens | 0 | January 29, 2008 10:56 |
How to give pressure inlet in Fluent | Vijayaragavan | Main CFD Forum | 1 | December 17, 2007 09:40 |
Must periodic oscillation give periodic results? | zonexo | Main CFD Forum | 6 | May 13, 2007 15:36 |
Initialization | a student | Siemens | 2 | May 19, 2006 12:55 |
compressor initialization | paglia | FLUENT | 0 | February 1, 2006 15:14 |