CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

udf problem

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

LinkBack Thread Tools Display Modes
Old   February 3, 2008, 01:05
Default udf problem
Posts: n/a
to check variable in source file, I make write to an output file and CH4 mass fraction is written as 1.#QNANe+000 in the output file ,but I entered it 0.43 in the fluent, why this happened so? how can I fix this? and How can I change mass fraction to mole fraction? is there a shortcut to do this?

DEFINE_VR_RATE(Reaction_Rate,c,t,r,mole_weight,spe cies_mf,Rate,rr_t) { real T = C_T(c, t); real Pb = C_P(c, t); real yH2O = species_mf[0]; real yCH4 = species_mf[1]; real yCO = species_mf[2]; real yH2 = species_mf[3];

fp= fopen("output.txt","w"); fprintf(fp," yCH4 rate values: %9.8e %9.8e\n", yCH4, Rate); fclose( fp );
  Reply With Quote


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 40 October 18, 2017 07:17
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 10:58

All times are GMT -4. The time now is 02:22.