|
[Sponsors] |
UDF for species-mass-fraction gradient at outlet |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 9, 2007, 03:40 |
UDF for species-mass-fraction gradient at outlet
|
#1 |
Guest
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" DEFINE_SOURCE(species_grad,cell,thread,dS,eqn) { float source=0.0; begin_c_loop(cell, thread) { C_YI_G(cell,thread,1)[0]=0.; source=C_YI_G(cell,thread,1)[0]; /*dS[eqn]=0.;*/ } end_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. sisir |
|
|
|
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 01:57 |
Gradient of Volume fraction in UDF | Babar Sharfuddin | FLUENT | 2 | February 29, 2020 05:29 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
I need UDF help. | S.Whitney | FLUENT | 0 | October 15, 2007 12:29 |
Mass fraction via Cel file at outlet | Jens | CFX | 3 | April 28, 2003 10:14 |