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

Density based on Boussinesq approximation i.e. depend on temperature and concentratio

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2015, 10:41
Default Density based on Boussinesq approximation i.e. depend on temperature and concentratio
  #1
New Member
 
Rahul Misal
Join Date: Jun 2015
Posts: 1
Rep Power: 0
rsmisal is on a distinguished road
#include "udf.h"
#define rho_ref 1001
#define T_ref 313
#define YI_ref 0.99
DEFINE_PROPERTY(boussinesq_density, c, t)
{
real rho; int i;
real T,YI,dT ,dYI;
real T_operating,YI_operating;
T_operating = RP_Get_Real ("operating-temperature");
T = C_T(c,t) + T_operating;
dT = T-T_ref;
YI_operating = RP_Get_Real ("operating-species mass fraction");
YI = C_YI(c,t,i) + YI_operating;
dYI = YI-YI_ref;
rho = rho_ref * (1- 0.0005644 * dT - 0.9297 *dYI);
return rho;
}
But above program shows error mass fraction in not defined ..........plzzz help!!!!!!
rsmisal is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 04:38.