|
[Sponsors] |
November 1, 2007, 09:27 |
udf vof viscosity
|
#1 |
Guest
Posts: n/a
|
Hello,i need your help.I made a udf for the second phase viscosity,udf is compiled and hooked.But fluent gives some errors. i hooked the udf after solution converged.After hooking the udf,fluent did not continue iterations.udf is;
/// DEFINE_PROPERTY(crosswlf, cell, thread) { float eta,temp,p1,strain_rate,p_operating,p,n,tau,d1,d2, d3,a1,a2,eta_zero,tp,ap,etatp,dummy1,dummy2,dummy3 ; eta=1000; temp=C_T(cell, thread); p1=C_P(cell, thread); strain_rate=C_STRAIN_RATE_MAG(cell,thread); p_operating=RP_Get_Real ("operating-pressure"); p=p1+p_operating; n=0.2975; tau=28200; d1=9.25*exp(13); d2=263.15; d3=0; a1=32.03; a2=51.6; eta_zero=1000; tp=d2+d3*p; ap=a2+d3*p; dummy1=-(a1*(temp-tp))/(ap+(temp-tp)); etatp=d1*exp(dummy1); dummy2=(etatp*strain_rate/tau); dummy3=pow(dummy2,1-n); eta=etatp/(1+dummy3); return eta; } //// what is my mistake please help; |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for defining granular viscosity in mixture model | priyanka.asp | Fluent UDF and Scheme Programming | 7 | May 19, 2019 18:16 |
UDF Defining VOF Free Surface at Outlet | Alex | Fluent UDF and Scheme Programming | 13 | August 8, 2012 16:50 |
writing UDF for modelig mass transfer for VOF | ardalan soleymani | FLUENT | 0 | July 11, 2007 01:09 |
VISCOSITY UDF | AdN | FLUENT | 0 | May 23, 2006 05:33 |
Urgent! Access violation of UDF using VOF | Rucy | FLUENT | 0 | January 9, 2006 04:01 |