|
[Sponsors] |
can anyone please tell me what is the macro of liquid phase viscosity |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 1, 2012, 04:53 |
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: 14 |
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
|
|
June 1, 2012, 11:20 |
|
#2 | |
Member
Engr Adeniyi
Join Date: Jan 2011
Posts: 32
Rep Power: 16 |
Quote:
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple floating objects | CKH | OpenFOAM Running, Solving & CFD | 14 | February 20, 2019 10:08 |
Phase change from liquid to vapor in a nozzle | SebastianSchuster | CFX | 6 | September 28, 2015 23:02 |
Solid/liquid phase change using large viscosity | gregor.vidmar153 | OpenFOAM Running, Solving & CFD | 3 | June 10, 2010 07:31 |
Differences between serial and parallel runs | carsten | OpenFOAM Bugs | 11 | September 12, 2008 12:16 |
Gas dissolution from liquid phase with CFX | Roger Young | CFX | 2 | May 6, 2008 08:37 |