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

UDF sucessfully interpreted initialization error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2009, 21:18
Default UDF sucessfully interpreted initialization error
  #1
New Member
 
Eric
Join Date: Apr 2009
Posts: 23
Rep Power: 17
duaiduaihu is on a distinguished road
my model is: it is a complete heat conduction problem without convection .the domain is water with a solid fully immerged in:
i define the temperature of the solid .heat flux of all the out face except one part(named face A) is 0. the heat flux of face A is defined with a UDF.
the picture: http://fmn028.xnimg.cn/fmn028/200905...803n206096.jpg
after i define all the boundary condition in FLUENT, i do the solve->initialize->initialization .it cautioned me that:
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: ()

UDF:
#include<udf.h>
#include<math.h>
DEFINE_PROFILE(currentdensity,thread,position)
{
double potential,icorr,iL,Ecorr,bc,ba;
double a,a1,a2,a3,ic,ia,iA;
face_t f;
Thread *thread;
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)
}

thanks in advance !
duaiduaihu is offline   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
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Building error of 15dev for OpenSUSE 111 on AMD64 machine waynezw0618 OpenFOAM Installation 1 February 18, 2009 10:12
interpreted udf error Chipo Chimuti FLUENT 0 February 12, 2009 03:15
Error in interpreted UDF shephali shrimali FLUENT 7 May 10, 2007 02:53
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


All times are GMT -4. The time now is 19:32.