|
[Sponsors] |
InterPhaseChangeFoam: trying to simulate cavitation phenomena inside of nozzle |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 20, 2014, 02:53 |
InterPhaseChangeFoam: trying to simulate cavitation phenomena inside of nozzle
|
#1 |
Senior Member
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13 |
Dear Foam Users,
I am trying to simulate cavitation phenomena inside of nozzle and using interphasechangefoam. As you know that there are 3 transport models (Merkle, Kunz and Sauer) I have tried all of these 3 models with kwSST turbulence model however i have problems with the obtaining of cavitation region as follows; 1. If i set the initial cond. according to Velocity as follows: ==> 0/U Code:
internalField uniform (0 3.104 0); boundaryField { inlet { type fixedValue; value $internalField; } outlet { type pressureInletOutletVelocity; phi phi; value $internalField; } wall { type fixedValue; value uniform (0 0 0); } Code:
internalField uniform 1e5; boundaryField { inlet { type zeroGradient; } outlet { type fixedValue; value $internalField; } wall { type zeroGradient; } } 2.if i set the initial cond. according to pressure as follows: ==>0/P Code:
internalField uniform 1e5; boundaryField { inlet { type fixedValue; value uniform 2.8e5; } outlet { type fixedValue; value $internalField; } wall { type zeroGradient; } Code:
internalField uniform (0 0 0); boundaryField { inlet { type zeroGradient; value uniform (0 0 0); } outlet { type inletOutlet; inletValue uniform (0 0 0); value uniform (0 0 0); } wall { type fixedValue; value uniform (0 0 0); } In addition; For interphasechange solver (or more generally if we try simulation multiphase with mass transition which initial condition setting is more logical; pressure or velocity based? Thanks in advance... |
|
January 20, 2014, 02:55 |
|
#2 |
Senior Member
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13 |
Sorry I forgat to say that initial velocity and pressure values are taken from the experiment...
|
|
April 23, 2015, 09:46 |
|
#3 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
Hi Baris,
are you still working on that issue? regards Alex |
|
April 23, 2015, 16:42 |
|
#4 |
Senior Member
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13 |
Hi Alex,
Yes I am still working about same topic. Do you have any question? B |
|
April 24, 2015, 10:51 |
|
#5 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
I didn't realize, that you are sure pretty experienced, so I assume that you aren't stuck at the same place like one year before...
I think i wanted to help you yeserday. I currently try different things with InterPhaseChangeDyMFoam, but my problem is more a lack of c++ knowledge... thanks for your offered help and sorry for the unnecessary disturbance. regards Alex |
|
April 24, 2015, 11:45 |
|
#6 |
Senior Member
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13 |
Thank you for your kind consideration. Yes, i faced stability problem for a long time. However, finally i fixed and solved the problem.
I think that C++ is main problem for all new beginners. This can be also fixed in time with hard work Please keep in touch and let me know about your challenge and brief findings in InterPhaseChangeDyMFoam. BR Baris |
|
May 19, 2015, 08:09 |
|
#7 |
Member
alvaro
Join Date: Apr 2015
Posts: 33
Rep Power: 11 |
Hi people,
I have seen you are using interPhaseChangeFoam to simulate cavitation phenomena inside nozzle. Actually I'm working in this topic too. I have a question about this solver I hope you could answer me: interPhaseChangeFoam works with a hydrostatic pressure definition, isn't it? Did you do your simulations with this pressure definition or did you do any change? And... to make this change, is it necessary to modify the pEqn.H file, or is there another easy way? Regards, Alvaro. |
|
May 19, 2015, 18:32 |
|
#8 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
Hi Alvaro,
did you try to work with the cavitatingBullet tutorial multiphase/InterPhaseChangeFoam/cavitatingBullet ? You can change the geometry and customize it for your case. regards Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
May 19, 2015, 22:45 |
|
#9 |
Senior Member
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13 |
Hi Alvora,
Here hydrostatic pressure definition is just a kind of trick to simplify the boundary conditions and also increase the stability when the gravity should be considered. I just didnt understand why you want to change it? Finally, solver also calculate the total pressure as calculated and indicated in "CreateFields.H" P=p_rgh+rho*gh. As Alex said you can look at cavitatingBullet tutorial or last year i attended to CFD open course in Chalmers and already written a tutorial which explains cavitatingFoam and interPhaseChangeFoam for nozzle cavitation. You can also download and check it here: https://www.researchgate.net/publica...njector_Nozzle BR. Baris |
|
May 20, 2015, 08:42 |
|
#10 |
Member
alvaro
Join Date: Apr 2015
Posts: 33
Rep Power: 11 |
Hi,
I've seen your work Baris, and looks fine. I've tried to implement the code but I have a problem in the step to compile "phaseChangeTwoPhaseMixtures". The terminal returns me the following error and I don't know how to solve it. Code:
alvaro@AlvaroPC:~/OpenFOAM/alvaro-2.3.0/applications/solvers/multiphase/TransportCavitatingFoam/phaseChangeTwoPhaseMixtures$ wmake linux64GccDPOpt/options:5: *** missing separator. Stop. wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/alvaro/OpenFOAM/alvaro-2.3.0/applications/solvers/multiphase/TransportCavitatingFoam/phaseChangeTwoPhaseMixtures alvaro@AlvaroPC:~/OpenFOAM/alvaro-2.3.0/applications/solvers/multiphase/TransportCavitatingFoam/phaseChangeTwoPhaseMixtures$ Make/files Code:
phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.C phaseChangeTwoPhaseMixture/newPhaseChangeTwoPhaseMixture.C Kunz/Kunz.C LIB = $(FOAM_USER_LIBBIN)/libphaseChangeTwoPhaseMixtures Code:
Kunz/Kunz.C LIB_LIBS = \ -L$(FOAM_USER_LIBBIN) EXE_INC = \ -I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude LIB_LIBS = \ -ltwoPhaseMixture \ -ltwoPhaseProperties \ -lincompressibleTransportModels \ -lfiniteVolume Code:
# 1 "options" # 1 "<built-in>" # 1 "<command-line>" # 1 "options" Kunz/Kunz.C LIB_LIBS = -L$(FOAM_USER_LIBBIN) EXE_INC = -I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude -I$(LIB_SRC)/transportModels -I$(LIB_SRC)/transportModels/incompressible/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude Thanks. |
|
May 21, 2015, 05:13 |
|
#11 |
Member
alvaro
Join Date: Apr 2015
Posts: 33
Rep Power: 11 |
Hi again,
I ran the simulation with interPhaseChangeFoam and I obtained high negative pressure values. I think it's wrong, but why does this happen? How can I avoid that? Regards |
|
May 21, 2015, 07:04 |
|
#12 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
Hi alvaro,
negativ pressure values aren't bad if they don't exceed -1e+05 Pa (-1bar) . I never gave it a thought, because I think its effective pressure and not absolute pressure plotted by paraView. regards Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
July 16, 2015, 05:43 |
|
#13 | |||
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
I think I have to correct myself.
I read in some posts, that p is the absolute pressure in InterPhaseChangeFoam, so you have discovered really an error. Edit: Now I have to correct/clarify my correction. My first suggestion Quote:
Quote:
As read here: http://www.cfd-online.com/Forums/ope...m-error-2.html Quote:
p_rgh is the relative/effective pressure that is plotted by paraFoam rho*gh is the atmospheric pressure so everything is fine in my computation. regards Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. Last edited by alexB; July 16, 2015 at 08:09. |
||||
December 14, 2015, 08:27 |
|
#14 |
New Member
jiri kozak
Join Date: Jan 2013
Posts: 21
Rep Power: 13 |
Hello Alex,
I'm not completely sure that you are right.You can find something about the negative pressure issue in this tutorial:http://www.tfd.chalmers.se/~hani/kur...lenceModel.pdf page 16 Regards Jiří |
|
December 14, 2015, 20:10 |
|
#15 | |
Senior Member
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13 |
Hi Jiri,
In that tutorial he also said that negative pressure is unrealistic condition. Quote:
BR Baris |
||
December 15, 2015, 07:58 |
|
#16 | |
New Member
jiri kozak
Join Date: Jan 2013
Posts: 21
Rep Power: 13 |
Quote:
Yes, I agree with this statemt. It was reaction to the last post. I have to confess that I read the thread only cursorily. On the other hand I thought that the tutorial could be useful. Have a nice day! Regards, Jiří |
||
June 16, 2017, 22:33 |
|
#17 |
New Member
dong
Join Date: Apr 2015
Location: China
Posts: 3
Rep Power: 11 |
Hi Shipman,I just cant't understand why the pressure could below 0,some people say that may be induced by compressible property,can you explain more details? thanks a lot
|
|
November 3, 2019, 23:24 |
regarding the p_rgh value and saturation pressure value
|
#18 |
Member
ijaz fazil
Join Date: Apr 2013
Location: Singapore
Posts: 73
Rep Power: 13 |
Dear all,
Sorry for reopening this discussion. I'm working on pump sump models and trying to model the cavitation at the suction side of the pump. I found in this forum that pressure should be applied as absolute and hence 1e5 value is used in tutorial I have following doubt, Since we have to input p_rgh value instead of p, then it should be 1e5-(1000(water)*-9.81*height) right instead of just 1e5? |
|
August 13, 2024, 21:28 |
I have the same problem using OF.com
|
#19 |
New Member
Miguel G. C
Join Date: Sep 2023
Posts: 1
Rep Power: 0 |
Dear all,
I'm triying to reproduce using OF the cases of asymmetrical nozzle that Baris present in his PhD Thesis (Sigma 1.91 and 1.19). for the latter case, I have similar troubles that BAris report here, concerning that the cavity appears, but then it dissapear. I try to model times longer that 10 times the particle residence into the nozzle (t_res=nozzle_lenght/c_nozzle= 8e-3m/(10-12)m/s=8e-4s), i.e., 8e-3s in order to have results with physical sense. I have initially a 2D mesh but with high resolution (cell size 4e-5m) that prove to have asymptotic behavior (fullfiling the CGI index and Richardson extrapolation checking). I set the same setups of Baris simulations but I check that the bubble dissapear as Baris initially has reported in this CFD forum. Dear Baris, you say that solved the problem, could you comment how you solved the problem? I also use Fluent soft obtaining good results with Shingal and Schnerr Sauer models, using SST kOm model, because the bubble remains. Also, I know that Baris' mesh is 3D, but I check the mesh quality results by using a 3D mesh too, and obtained the same flow pattern than the 2D case for Sigma 1.91, has was expected. At the present, I'm using OF .com, but when you reported the problem, both OF (.com, .org) sources were similar... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
C-D nozzle supersonic jet boundary | Gland | FLUENT | 4 | May 24, 2012 01:25 |
Flow simulation in a Pelton turbine nozzle | fivos | FLUENT | 0 | April 19, 2011 12:46 |
how to simulate velocity field of supersonic gas (400m/s) from a nozzle to a chamber | CYMa | OpenFOAM | 3 | December 15, 2009 22:31 |
calculation of thrust thrugh a pipe with CD nozzle | izhar | Main CFD Forum | 0 | February 28, 2009 10:22 |
compressible flow in a counterflow nozzle | d.vamsidhar | FLUENT | 0 | November 24, 2005 02:45 |