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 Search this Thread 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 Search this Thread
Search this Thread:

Advanced Search
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 Off
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 11 August 5, 2020 00:57
Gradient of Volume fraction in UDF Babar Sharfuddin FLUENT 2 February 29, 2020 04:29
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
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 05:52.