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

cavitation udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2012, 09: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, 09:41
Default
  #2
New Member
 
jamesg3373's Avatar
 
James Goodwin
Join Date: Nov 2012
Location: Liverpool UK
Posts: 13
Rep Power: 14
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 11:32.
jamesg3373 is offline   Reply With Quote

Old   December 11, 2012, 00: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, 02: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, 01: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


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


All times are GMT -4. The time now is 17:59.