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

Error msg on initialization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2005, 16: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


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
FMG initialization query Mohsin FLUENT 6 November 2, 2016 03:02
code initialization - exclude pressure edna Siemens 0 January 29, 2008 11:56
Initialization a student Siemens 2 May 19, 2006 13:55
compressor initialization paglia FLUENT 0 February 1, 2006 16:14
INITIALIZATION & SORSCA july Siemens 1 May 31, 2002 03:55


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