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

Heat and mass transfer by using DPM model and UDF in fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2016, 23:06
Default Heat and mass transfer by using DPM model and UDF in fluent
  #1
New Member
 
JUNCAI LI
Join Date: Oct 2016
Posts: 7
Rep Power: 10
vincentl1 is on a distinguished road
I've got a problem about using the macro of TP_COMPONENT_INDEX_I(p,is)when i want to identify the vaporating component in multicomponent DPM particles. In my* case,particle materal is*the solution of CO3HNa and bulk gas consists of air and water vapor(So,only water get involved in vaporation).My code to judge vaporation or not listed below.
for (ns = 0; ns < nc; ns++)
{
int gas_index = TP_COMPONENT_INDEX_I(p, ns); /* gas species index of vaporization */
if (gas_index >= 0)
It*worked smoothly in fluent,while,no vaporation*happened.However,i found the returned value of TP_COMPONENT_INDEX_I(p, ns) is -1.I don't know why the returned value is negative.There*are no details about the using of TP_COMPONENT_INDEX_I(p, ns) in fluent udf manual.Can*anybody give me some advices?
vincentl1 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
Erron: FLUENT received fatal signal (ACCESS_VIOLATION) in DPM Heat and Mass Transfer Melvin FLUENT 2 November 17, 2016 02:06
DPM Heat and mass transfer. prasadsai31 Fluent UDF and Scheme Programming 1 September 24, 2014 06:28
About phase change heat and mass transfer Michael FLUENT 2 February 13, 2011 02:49
UDF for Heat Exchanger model francois louw FLUENT 2 July 16, 2010 03:21
writing UDF for modelig mass transfer for VOF ardalan soleymani FLUENT 0 July 11, 2007 02:09


All times are GMT -4. The time now is 03:00.