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

ACCESS_VIOLATION

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 19, 2006, 04:51
Default ACCESS_VIOLATION
  #1
sriah
Guest
 
Posts: n/a
Thsi is my UDF to use as the source of a species transportation equation.As the source term, it computs the mass fraction change rate of the third species in the secondary phase. when i run fluent,it showed ACCESS_VIOLATION error. please tell me what is wrong with it .Is the "thread "used wrong? Thanks in advance! #include "udf.h" DEFINE_SOURCE(mass_source1,c,t,dS,eqn) { Thread **t1=THREAD_SUB_THREADS(t); real source,physical_dt; physical_dt=RP_Get_Real("physical-time-step"); source=(C_YI(c,t1[1],2)-C_YI_M1(c,t1[1],2))/physical_dt; dS[eqn]=0; return source; }

  Reply With Quote

Reply

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



All times are GMT -4. The time now is 09:26.