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

UDF problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 11, 2006, 06:39
Default UDF problem
  #1
greg
Guest
 
Posts: n/a
can you tell me what is wrong in my udf?

#include "udf.h"

DEFINE_MASS_TRANSFER(od_gas_to_liquidh2o_source,ce ll,thread,from_2,from_species_0,to_3,to_species_1) { int i; Material *sp; real m_lg; real T_SAT = 373; Thread *gas = THREAD_SUB_THREAD(thread, from_2); Thread *liq = THREAD_SUB_THREAD(thread, to_3); m_lg = 0.;

mixture_species_loop(THREAD_MATERIAL(liq),sp,i) {

if ((C_T(cell, liq) >= T_SAT) && sp) { m_lg = (-0.1*C_VOF(cell,liq)*C_R(cell,liq)* fabs(C_T(cell,liq)-T_SAT)/T_SAT); }

}

mixture_species_loop(THREAD_MATERIAL(gas),sp,i) { if ((m_lg == 0. ) && (C_T(cell, gas) <= T_SAT)) { m_lg = (0.1*C_VOF(cell,gas)*C_R(cell,gas)* fabs(T_SAT-C_T(cell,gas))/T_SAT); } } return (m_lg); }

UDF is compiled by fluent but during initialize an error occurred (below)

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

thank you g
  Reply With Quote

Old   July 11, 2006, 08:24
Default Re: UDF problem
  #2
Birute Bunkute
Guest
 
Posts: n/a
Hi Greg,

I have the same problem with definition of critical strain rate to extinction in the partially premixed model. I think, it is the problem not with your UDF, but Fluent.

Regards, Birute
  Reply With Quote

Old   July 12, 2006, 02:21
Default Re: UDF problem
  #3
cax
Guest
 
Posts: n/a
hi.I had a similar error message one month ago.You should check the use of User Define Memories.If you use UDMI in you UDF,you must define enough memories in Fluent before solving.Hope it will help you
  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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 30 March 21, 2014 06:34
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 09:58


All times are GMT -4. The time now is 13:46.