CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Help !! UDF for second phase viscosity.

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   January 23, 2007, 16:03
Default Help !! UDF for second phase viscosity.
Posts: n/a
Sponsored Links
Hello. I need your help. I made the UDF for second phase viscosity, but there is some errors during calculation. ///// Error: divergence detected in AMG solver: vof-1 ///// I tried to solve this problem but still there is. I am not sure whether this error is from my UDF or others.

There is another question in my UDF code below. I used C_VOF(cell,thread) for volume fraction of second phase material. Is it correct?

Do I have to define the volume fraction equation for primary and second phase materials?

//////// DEFINE_PROPERTY(r_mu,cell,thread) {

real r_mu,lamda,p_mu,gamma, m, n, r_vof; gamma=C_STRAIN_RATE_MAG(cell,thread);






r_mu=(m*pow((1.+pow(lamda*gamma, 2.)), ((n-1.)/2.))-(1.-r_vof))*(p_mu/r_vof); } ///
  Reply With Quote
Sponsored Links

Old   January 24, 2007, 11:39
Default Re: Help !! UDF for second phase viscosity.
Posts: n/a
usage of c_vof is correct, C_VOF(cell,thread); the thread here is phase thread corresponding to the pahse where u are hookin this. It is not reqd to define vof as fluent will calculate it and give the value when C_VOF() is called.

In the end of code you should return the viscosity

--- return r_mu; }

  Reply With Quote

Old   January 24, 2007, 12:11
Default Re: Help !! UDF for second phase viscosity.
Posts: n/a
Thank you, sujith!
  Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
viscosity in UDF! denhan FLUENT 0 April 6, 2007 01:12
VISCOSITY UDF AdN FLUENT 0 May 23, 2006 05:33
UDF Scattering Phase Function Mauricio Sanchez FLUENT 0 November 13, 2005 22:39
about eddy viscosity :UDF sagga FLUENT 2 January 10, 2005 22:07
UDF{ C_VOF(c,pt[n]) } two phase flow ROOZBEH FLUENT 2 April 21, 2003 04:09

Sponsored Links

All times are GMT -4. The time now is 04:55.