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

Species mass fraction

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2019, 12:17
Default Species mass fraction
  #1
New Member
 
Join Date: Jul 2018
Posts: 29
Rep Power: 7
aminhgn is on a distinguished road
Hi,

I am trying to simulate the falling film flow. I have water and humid air. I want to define a constant value for the mass fraction of water vapor in air at the interface. I wrote the UDF based on Define_adjust. But every time I try to run it I got an error. Can you help me with it?
#include "udf.h"
#include "sg_mphase.h"

DEFINE_ADJUST(vol_frac, domain)
{

Thread *t;

cell_t c;
double Y_h2o;
Y_h2o = 0.02;
begin_c_loop(c,t)

{

if(C_VOF(c,t)>0. && C_VOF(c,t)<1.)

C_UDSI(c,t,0)=Y_h2o;

}

end_c_loop(c,t);

}
aminhgn is offline   Reply With Quote

Reply

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
mass fraction of species Lilly FLUENT 5 March 13, 2022 18:52
Defining species mass fraction using a UDF T81 Fluent UDF and Scheme Programming 3 April 19, 2018 08:02
chemical species mass fraction Green_Horn STAR-CD 0 February 27, 2012 15:57
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 22:14
mass fraction of species Ahmed FLUENT 0 April 18, 2007 12:57


All times are GMT -4. The time now is 21:48.