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

confusion on how to write udf for density of a mixture solution in multiphase problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2017, 10:57
Default confusion on how to write udf for density of a mixture solution in multiphase problem
  #1
New Member
 
Hirakjyoti Barman
Join Date: Sep 2017
Posts: 7
Rep Power: 9
Hirakjyoti is on a distinguished road
Hi I am new to CFD and this forum. I am simulating a problem where an aqueous solution of LiCl wih mass fraction of licl 0.3(secondary phase) is used to dehumidify moist air (primary phase) and i need to write udf for density of the solution which is a function of mass fraction and temperature. I have gone through the udf tutorials but still I am struggling with this. The equation is attached below. Please help me in writing the udf.
where rho(0,1,2,3)are constants.
Attached Images
File Type: jpg equation.JPG (9.5 KB, 15 views)
Hirakjyoti is offline   Reply With Quote

Old   September 11, 2017, 02:21
Default
  #2
New Member
 
Hirakjyoti Barman
Join Date: Sep 2017
Posts: 7
Rep Power: 9
Hirakjyoti is on a distinguished road

I have tried to write the udf, but i m not sure whether it is correct or not.I need help.

#include"udf.h"
DEFINE_PROPERTY(Variable_density_rho,c,t,C_Y3)
{
Thread*c_thread;
cell_t,c;
real C_Y3(c,t,3);
return C_R(c,t)=1000*((1+pow((C_Y3/(1-C_Y3)),1)*0.540966)+(-.30372*
(pow((C_Y3/(1-C_Y3)),2))+(.100791*(pow(C_Y3/(1-C_Y3)),3))));
}
Hirakjyoti 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for coal combustion in multiphase flow niisha24 Fluent UDF and Scheme Programming 13 September 19, 2022 05:01
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
Problem with DPM simulation with particles injection and EXECUTE_AT_THE_END UDF. Ari Fluent UDF and Scheme Programming 4 May 31, 2016 09:51
The problem of Stiff Chemistry Solver in Multiphase model shenzhou1987 FLUENT 1 January 11, 2016 03:52
fluent udf problem: write specific data for every iteration in a file. nnvoro Fluent UDF and Scheme Programming 1 May 27, 2013 16:26


All times are GMT -4. The time now is 14:05.