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

UDF for species-mass-fraction gradient at outlet

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

LinkBack Thread Tools Display Modes
Old   June 9, 2007, 02:40
Default UDF for species-mass-fraction gradient at outlet
Posts: n/a
Hi, I am modeling species transport in high temp in steady state. In this model I have used the species CO,CO2,H,H2....etc. I want to set the gradient of the species-mass fraction =0.0 instead of mass-fraction = 0.0 at the pressure outlet boundary for species. For this i have written an UDF which is given below.

#include "udf.h"



float source=0.0;

begin_c_loop(cell, thread)







return source;


After compiling the file when I am trying to HOOK it the UDF file is not displaying in the species-mass-fraction at the pressure outlet . But I check the UDF file is available at the Boundary Condtion-Fluid-Source term for species.

Anybody can help to solve this problem?

I will be greatful to you for your help.

Thanking you.

  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
How to get the gradient of species mass fraction? legendyxg Fluent UDF and Scheme Programming 3 October 22, 2016 14:35
Gradient of Volume fraction in UDF Babar Sharfuddin FLUENT 1 December 8, 2014 04:14
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 11:29
Mass fraction via Cel file at outlet Jens CFX 3 April 28, 2003 09:14

All times are GMT -4. The time now is 18:51.