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

can anyone please tell me what is the macro of liquid phase viscosity

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 1, 2012, 03:53
Default can anyone please tell me what is the macro of liquid phase viscosity
  #1
New Member
 
Tamphasana
Join Date: Jun 2012
Posts: 9
Rep Power: 6
thiyam is on a distinguished road
I am modelling gas-liquid phase problem in fluent and trying to use UDF for drag co-efficient, in this case i want to particularly define viscosity for liquid phase so does anyone know macro for this, please help
thiyam is offline   Reply With Quote

Old   June 1, 2012, 10:20
Default
  #2
Member
 
Engr Adeniyi
Join Date: Jan 2011
Posts: 32
Rep Power: 8
Galileo is on a distinguished road
Quote:
Originally Posted by thiyam View Post
I am modelling gas-liquid phase problem in fluent and trying to use UDF for drag co-efficient, in this case i want to particularly define viscosity for liquid phase so does anyone know macro for this, please help

Hi,
To define the viscosity of the liquid phase you can do something like:

/*If the cell and cell thread are not passed in the
subrountine, you need to get the cell thread
eg for DPM Drag
DEFINE_DPM_DRAG(UDFdrag,Re,p)
where the Tracked Particle p is passed you may
do it like this
cell = P_CELL(p);
cell_thread =
THREAD_SUB_THREAD(P_CELL_THREAD(p),
PHASE_DOMAIN_INDEX (Get_Domain(ID_OF_LIQUID_PHASE)));

You can get ID_OF_LIQUID_PHASE from the phases GUI, may be 3

What is important is to get cell and cell_thread, pointing to the phase you desire
*/
viscosity_lam=C_MU_L(cell,cell_thread) //Laminar Viscosity
viscosity_turb=C_MU_T(cell,cell_thread) //Turbulent Viscosity
viscosity_eff=C_MU_EFF(cell,cell_thread) //Effective Viscosity
Galileo is offline   Reply With Quote

Reply

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
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 12 March 21, 2016 14:05
Phase change from liquid to vapor in a nozzle SebastianSchuster CFX 6 September 28, 2015 22:02
Solid/liquid phase change using large viscosity gregor.vidmar153 OpenFOAM Running, Solving & CFD 3 June 10, 2010 06:31
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
Gas dissolution from liquid phase with CFX Roger Young CFX 2 May 6, 2008 07:37


All times are GMT -4. The time now is 21:56.