CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   [UDF for Mass transfer with VOF] couple of questions (http://www.cfd-online.com/Forums/fluent-udf/109018-udf-mass-transfer-vof-couple-questions.html)

sooroo3 November 7, 2012 09:41

[UDF for Mass transfer with VOF] couple of questions
 
I have problem when i try to use below DEFINE_MASS_TRANSFER model into VOF.
I have several questions listed below with assuming that below simple code has no proble. if it has, please let me know that.
Does anybody know whethere this mass transfer can work in VOF or not?
If it works, i have two questions more.
I got fatal error when i initialize it. before initialization, i interpreted source code (not compile). If i remove "C_T(cell,liq)", i don't have problem. but whenever source code has "C_T(cell,liq)", fatal error arises.
I can't see my mass transfer source in "phase interaction tap" when i try to put the source code. In this case i just compiled source code (not interpreting).
Does anybody know why?
Thanks
#include"udf.h"
DEFINE_MASS_TRANSFER(masstrans, cell, thread, from_index,from_species_index, to_index, to_species_index)
{
real m_lg;
real T_EVAP = 373.15;
Thread *liq = THREAD_SUB_THREAD(thread, from_index);
Thread *gas = THREAD_SUB_THREAD(thread, to_index);
real temp = C_T(cell,liq);
m_lg = 0;
if temp >= T_EVAP
{
m_lg = 1;
}
else
{
m_lg = 2;
}
return m_lg;
}

msaeedsadeghi February 14, 2013 09:39

I have asked Ansys Fluent support team. The problem is with the cracked version of fluent. In licensed version it can easily be selected in interaction menu.

sooroo3 February 14, 2013 22:38

msaeedsadeghi

Thank you very much. i didn't notice it.
Thank you.


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