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

UDF for defining granular viscosity in mixture model

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Siddiqui

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2010, 13:32
Default UDF for defining granular viscosity in mixture model
  #1
New Member
 
Join Date: Mar 2010
Posts: 7
Rep Power: 16
priyanka.asp is on a distinguished road
Hello all,

I am new to fluent and I want to use a UDF for defining the granualar viscosity of the secondary phase in the mixture model :
mu= -0.188 + 537.42*Volume fraction.

I had written the follwoing UDF.

#include "udf.h"
DEFINE_PROPERTY(solid_viscosity,cell, thread)
{
real mu;
real vf=C_T(cell,thread);
mu=-0.188+537.42*vf;
return mu;
}

This is correct? And how can I use this in my case. Can anyone help?

Thanks
priyanka.asp is offline   Reply With Quote

Old   May 21, 2017, 13:42
Default
  #2
New Member
 
Sahar Ahsaas
Join Date: Jun 2016
Posts: 2
Rep Power: 0
Siddiqui is on a distinguished road
I think you need to use DEFINE_ADJUST macros to modify the volume fraction using C_VOF(cell,thread)*constant; save this in user defined memory then use this User defined memory in DEFINE_PROPERTY macro like mu=C_UDMI(cell,thread,i).
souza.emer likes this.
Siddiqui is offline   Reply With Quote

Old   September 5, 2018, 11:36
Default secondary phase thermal conductivity
  #3
Member
 
Emerson
Join Date: May 2018
Posts: 35
Rep Power: 8
souza.emer is on a distinguished road
Hello,

I'm new with Fluent and with UDF, and in my case, I have to modify my secondary thermal conductivity with the formula:

k = (-0.76 + 0.0063*T)*alfa

with:

T = secondary phase temperature
alfa = secondary phase volume fraction

Is this UDF written properly?

#include "udf.h"

DEFINE_PROPERTY(k_coke, c, t)
{
real k_c;
real temp = C_T(c, t);
real vf_c = C_VOF(c, t);

k_c = (-0.76 + 0.0063*temp)*vf_c;

return k_c;
}

My doubt is if I'm taking the secondary variables (volume fraction and temperature) correctly. Can anyone help me?
souza.emer is offline   Reply With Quote

Old   May 19, 2019, 18:56
Default
  #4
New Member
 
Uttar Pradesh
Join Date: May 2019
Posts: 3
Rep Power: 7
prakash.singh is on a distinguished road
Quote:
Originally Posted by priyanka.asp View Post
Hello all,

I am new to fluent and I want to use a UDF for defining the granualar viscosity of the secondary phase in the mixture model :
mu= -0.188 + 537.42*Volume fraction.

I had written the follwoing UDF.

#include "udf.h"
DEFINE_PROPERTY(solid_viscosity,cell, thread)
{
real mu;
real vf=C_T(cell,thread);
mu=-0.188+537.42*vf;
return mu;
}

This is correct? And how can I use this in my case. Can anyone help?

Thanks
Can you help me with the granular viscosity, how did you find granular viscosity and solid pressure and other properties?
prakash.singh is offline   Reply With Quote

Old   May 19, 2019, 19:05
Default
  #5
Member
 
Emerson
Join Date: May 2018
Posts: 35
Rep Power: 8
souza.emer is on a distinguished road
Granular Vicosity and granular solids pressure Macro = DEFINE_PROPERTY
souza.emer is offline   Reply With Quote

Old   May 19, 2019, 19:09
Default
  #6
New Member
 
Uttar Pradesh
Join Date: May 2019
Posts: 3
Rep Power: 7
prakash.singh is on a distinguished road
Quote:
Originally Posted by souza.emer View Post
Granular Vicosity and granular solids pressure Macro = DEFINE_PROPERTY
I don't know any equation to calculate granular viscosity. Is there some empirical relation that I can use?
prakash.singh is offline   Reply With Quote

Old   May 19, 2019, 19:13
Default
  #7
Member
 
Emerson
Join Date: May 2018
Posts: 35
Rep Power: 8
souza.emer is on a distinguished road
Have you take a look at the theory guide? There you can find the equation for each model that Fluent provides.
souza.emer is offline   Reply With Quote

Old   May 19, 2019, 19:16
Default
  #8
New Member
 
Uttar Pradesh
Join Date: May 2019
Posts: 3
Rep Power: 7
prakash.singh is on a distinguished road
Quote:
Originally Posted by souza.emer View Post
Have you take a look at the theory guide? There you can find the equation for each model that Fluent provides.
Yes, I have. I have come across two equations, one for collisional viscosity and other one is for kinetic viscosity.
prakash.singh 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
How to include lift forces/wall lubrication forces in the MIXTURE multiphase model? hohomm FLUENT 0 December 17, 2009 06:45
MULTIPHASE - FREE SURFACE & MIXTURE MODEL Aris FLUENT 3 April 28, 2009 12:46
air and water vapour mixture - multiphase model Saba FLUENT 0 February 10, 2009 13:05
Momentum equation used by mixture model George FLUENT 0 May 19, 2005 14:07
UDF of Zimont model in fluent Z Main CFD Forum 0 February 17, 2005 04:07


All times are GMT -4. The time now is 16:01.