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

cavitation udf

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 10, 2012, 08:36
Default cavitation udf
  #1
New Member
 
TAIWAN, R.O.C.
Join Date: Dec 2012
Posts: 2
Rep Power: 0
lijie is on a distinguished road
hi everybody
i have tried to use DEFINE_CAVITATION_RATE for Merkle cavitation model.The udf is written as follows:

DEFINE_CAVITATION_RATE(Merkle_cav_rate,c,t,p,rhoV, rhoL,mafV,p_v,cigma,f_gas,m_dot)
{

real p_vapor=*p_v;
real dp,dp0,source;
real m_plus,m_minus;
dp= ABS_P(C_P(c,t),op_pres)-p_vapor;
dp0=ABS(dp);
source= dp0/(0.5*rhoL[c]*v_inf*v_inf);
if(dp<0.0)
{
m_minus=((c_dest/t_inf)*source*(rhoL[c]*rhoL[c]/rhoV[c]-mafV[c]*C_R(c,t)*rhoL[c]*rhoL[c]/(rhoV[c]*rhoV[c])))/(1-mafV[c]);
*m_dot=m_minus;
}
else
{
m_plus=(c_prod/t_inf)*source*C_R(c,t)*rhoL[c]/rhoV[c];
*m_dot=-m_plus;
}
}

the problem is:why i set vapor pressure as 3450,but the value of *p_v is always 3967.5??

thanks!!
lijie is offline   Reply With Quote

Old   December 10, 2012, 08:41
Default
  #2
New Member
 
jamesg3373's Avatar
 
James Goodwin
Join Date: Nov 2012
Location: Liverpool UK
Posts: 13
Rep Power: 3
jamesg3373 is on a distinguished road
Vapour pressure is temperature dependant.

See here:

http://www.engineeringtoolbox.com/cavitation-d_407.html

That's if I'm understanding your problem properly...

Last edited by jamesg3373; December 10, 2012 at 10:32.
jamesg3373 is offline   Reply With Quote

Old   December 10, 2012, 23:07
Default
  #3
New Member
 
TAIWAN, R.O.C.
Join Date: Dec 2012
Posts: 2
Rep Power: 0
lijie is on a distinguished road
i didn't set any setting about temperature...
it is fine when i use singhal or zawart cavitation model in fluent.
the phase contours become weird if i use udf.
i think the problem is that the vapor pressure should be 3450,but become 3967.5.
lijie is offline   Reply With Quote

Old   December 31, 2012, 01:31
Smile UDF for cavitation
  #4
New Member
 
keerthiraj shetty
Join Date: Dec 2012
Posts: 2
Rep Power: 0
icem_cfd is on a distinguished road
Hi All,

I have an UDF for compressible flow.
My boundary condition are pressure inlet and pressure outlet.
am using cavitation model of Schner-Sauer of 2 phases gasoline liquid and gasoline vapour.
After compiling and run, the results of contours of density dont show much variation in density.
only near the outlet there is some variation in density, rest of the place the density is same.

is there any other UDF which defines viscosity, density for compressiblr flow ?

Kirti...
icem_cfd is offline   Reply With Quote

Old   January 3, 2013, 00:10
Post Compressible flow UDF
  #5
New Member
 
keerthiraj shetty
Join Date: Dec 2012
Posts: 2
Rep Power: 0
icem_cfd is on a distinguished road
Hi all,

I am using UDF for 2D Compressible flow simulation. The same UDF is used for simulation in solvers like CFX and also FLUENT. The results from CFX is giving proper variation in density, but in FLUENT the results are bit different, but close to CFX results i.e in CFX the result obtained for density change is from (7.78e2 - 8.86e2) kg/m3 and for same boundary condition simulation the FLUENT result for density is varying from (8.06e2 - 8.85e2) kg/m3.

Kindly give your needfull sugestions

kirti
icem_cfd 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
using define mass transfer udf for cavitation Komon Fluent UDF and Scheme Programming 6 December 27, 2013 15:47
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
difference between cavitation and UDF by yourself qiyang860908 Fluent UDF and Scheme Programming 0 November 15, 2009 04:04
using UDF in Fluent for unsteady cavitation Pejman Main CFD Forum 6 November 6, 2008 10:18
UDF and Cavitation amir FLUENT 3 December 14, 2004 02:04


All times are GMT -4. The time now is 09:15.