|May 23, 2011, 12:13||
How to realize the desorption by using UDF?
Join Date: May 2011
Posts: 1Rep Power: 0
Here is my problem, I hope to realize the gas desorption by using UDF and code as follows:
DEFINE_SOURCE(CH4_mass_source, cell, thread, dS, eqn) /* defining the mass source ( the ch4 source)*/
real source, p, p1;
if (p>0 && p<p1)
source=(3.7*p1/(1570000+p1)-3.7*p/(1570000+p))/time_step; /* The Langmuir formula*/
However, this seems not work at all, or the program report errors.
I think the reason for this is that the C_P_M1 is not given memery. Who can help me to fix it? Thanks!
|Thread||Thread Starter||Forum||Replies||Last Post|
|UDF parallel error: chip-exec: function not found?????||shankara.2||Fluent UDF and Scheme Programming||1||January 16, 2012 23:14|
|How to add a UDF to a compiled UDF library||kim||FLUENT||3||October 26, 2011 21:38|
|Help: how to realize UDF on parallel cluster?||Haoyin||FLUENT||1||August 6, 2007 13:53|
|UDF...UDF...UDF...UDF||Luc SEMINEL||FLUENT||0||November 25, 2002 05:03|
|UDF, UDF, UDF, UDF||Luc SEMINEL||Main CFD Forum||0||November 25, 2002 05:01|