It seems there's something more then this...I cannot compare results with the built in Schnerr and Sauer model with a custom udf in which is coded the same model. Results are completely different :confused:
I tried both vofV=mafV[c] and vofV=mafV[c]*C_R(c,t)/rhoV[c] but no luck... This is udf: Code:
#include "udf.h" http://www.arc.vt.edu/ansys_help/flu...avitation.html Can anybody confirm if there is a bug or something else? |
I wrote to ansys support..let's see what they say..
|
Ok, this is the update from Ansys support, and I agree with their comments:
1-mafV in udf is vapor mass fraction 2-in the initialization panel the vapor fraction is mass fraction for Singhal et al cavitation model and volume fraction for the other models; so for custom cavitation udf the initialization panel requests mass fraction 3-in fluent post-processing when you plot vapor volume fraction, vapor volume fraction is plotted for every cavitation model My error was to consider in the initialization panel always vapor volume fraction. So, fluent (solver and post processing) is ok, however, it seems the bug is in cfd-post; I will update this thread if confirmed. |
Ok, this is solution to questions, thanks to Ansys support!
1- It is confirmed the bug in CFD-POST 15.0.7: if you define a custom cavitation udf (and maybe when using the Singhal et al cavitation model), save the cas and dat files in fluent, open CFD-POST and load the dat file, if you plot the vapor volume fraction variable it is plotted the vapor mass fraction. However, if you export from fluent the vapor volume fraction variable and you open the exported files (ascii or binary) in CFD-POST the plotted vapor volume fraction is correct. A request to solve the bug was posted. 2- Another problem I had is that if you define in udf the vapor volume fraction as: vofV = 1./(1.+(rhoV[c]/rhoL[c])*(1./mafV[c]-1.)) and you copy vofV values into C_UDMI: C_UDMI(c,t,0) = vofV if you plot in fluent cell centered values of C_UDMI(c,t,0) and vapor volume fraction values are different: this is because when you define a custom cavitation mass rate you have to turn on the Singhal et al cavitation model; this model takes into account also the incondensable mass fraction; if it is not zero when you plot the vapor volume fraction in fluent you are plotting secondary phase volume fraction (in my case steam+incondensable, and not only the steam volume fraction). If incondensable mass fraction is zero C_UDMI and vapor volume fraction values are the same. |
Quote:
Thanks for your important and attractive posts. |
Dear Ghost82 and others,
Please check Fluent UDF manual the following for define_cavitation_rate; ----------------------- ''Assuming mdot denotes the mass-transfer rate between liquid and vapor phases, we have Re=max [mdot,0] fl Rc=max [-mdot,0] fv where fl and fv are the mass-fraction of the liquid and vapor phase, respectively. DEFINE_CAVITATION_RATE is used to calculate mdot only. The values of Re and Rc are computed by the solver, accordingly.'' --------------------------- It seems the source terms Re and Rc are computed by multiplying mdot with mass fraction terms by the solver. Therefore, considering your UDF for the Schnerr model, I think we need to divide your mdot expression for Re by fl as seen below. m_dot = rhoV[c]*rhoL[c]/C_R(c,t)*3.*vofV*(1.-vofV)/Rb*source / (1-mafV[c]-f_gas) What do you think? With kind regards, |
I am also thinking the same. Ghost82 can you please comment on this?
|
In all the expressions of Ghost82, vofV [c] should be vapor volume fraction and m dot for evaporation and condensation term must be divided by (1-mafV[c]) and mafV[c] respectively.
Are these statements are correct? |
All times are GMT -4. The time now is 16:07. |