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

Error msg on initialization

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 3, 2005, 15:30
Default Error msg on initialization
  #1
Tushar
Guest
 
Posts: n/a
Thnx to all who go thru my problem.... My problem involves a porous media thru which wastewater flows and gets cleansed. I wrote two DEFINE_SOURCE terms for oxygen and cod removal.... DEFINE_SOURCE(oxy_source,c,t,dS,eqn) { real x[ND_ND]; real y,q; real source; C_CENTROID(x,c,t); y=x[1]; dS[eqn]=0; q=0.5*K1*C_YI(c,t,1)*980/(K2+C_YI(c,t,1)*980); source=ko*(C_oxy_eqm-C_YI(c,t,0)*980)-Y1*kqc*q; return (source); }

DEFINE_SOURCE(cod_source,c,t,dS,eqn) { real x[ND_ND]; real y,q; real source; C_CENTROID(x,c,t); y=x[1]; dS[eqn]=0; q=0.5*K1*C_YI(c,t,1)*980/(K2+C_YI(c,t,1)*980); source=-kac*(C_YI(c,t,1)*980-(K2*q/(K1-q))); return (source); }

I compiled these with a k-epsilon model in FLUENT 6.1

I had a velocity inlet and a pressure outlet condition set.The udfs run ok but give an error when I hook thems to the outlet mass fractions(which is the result i want)

the error returned is get_udf_function:function oxy_source has wrongtype:1!=5

I cant figure out whts wrong...can somebody help me.

tia Tushar.
  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
FMG initialization query Mohsin FLUENT 4 August 16, 2010 01:21
code initialization - exclude pressure edna CD-adapco 0 January 29, 2008 11:56
Initialization a student CD-adapco 2 May 19, 2006 12:55
compressor initialization paglia FLUENT 0 February 1, 2006 16:14
INITIALIZATION & SORSCA july CD-adapco 1 May 31, 2002 02:55


All times are GMT -4. The time now is 04:27.