|
[Sponsors] |
Supersonic nozzle+ method of characteristics + rhoCentralFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 8, 2019, 11:40 |
Supersonic nozzle+ method of characteristics + rhoCentralFoam
|
#1 |
Member
K
Join Date: Jul 2017
Posts: 97
Rep Power: 9 |
Dears,
I am an OpenFOAM user. I use this software to simulate 2 dimensional (planar) nozzles. The geometry is obtained by Method of characteristics. As you know, the input of such method is the gamma (=cp/cv), the desired Mach number at outlet and the number of characteristic lines. My question is about the validation of my simulations.
With the method of characteristic, the flow is uniform at the outlet. So, by the conservation of the mass, I should get the same mach number in 2D than 1D at the outlet. So my question is why I am not getting the same results ? Why Mach number with 2D simulations is lower than the 1D (like instead of 7, I get 6) ? I checked the area at the outlet and the throat as I thought that I might have loosed some precision passing from gmsh to OpenFOAM. But with that area ratio, I should get higher mach number. Someone sees why it's not the case ? Is there a problem with the solver ? With the boundary condition ? with my hypothesis that I should get the same results than 1D ? Please help me. |
|
January 8, 2019, 13:46 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66 |
Honestly I hear nothing alarming. The solver probably isn't broken and there is a whole laundry list of reasons why they could be different.
Is this a C-D nozzle or just the diverging part of the nozzle? But just to give an example: 1D theory says the critical pressure ratio for a C-D nozzle to be choked is ~1.8 but in reality, and if you run 3D CFD, it chokes much earlier (as low as 1.2). 1D theory always thinks the flow is uniform and that turns out to be quite a difference. |
|
January 8, 2019, 14:13 |
|
#3 | |
Member
K
Join Date: Jul 2017
Posts: 97
Rep Power: 9 |
Quote:
It is a converging-diverging nozzle. My supervisor told me that I should get nearly the same Mach number than 1D study, otherwise the simulations are not valid because the conservation of mass is not respected. I use ParaView to get the mass flow rate at inlet and outlet, the results are similar. Ideally, I should check the mass flow rate for the intermediate cross sections (between the inlet and outlet). But for that I should write some post processing tools. As the fluid is not uniform between the inlet and outlet, by considering the integral of rho U dS (what ParaView uses) we have a different mass flow rate than inlet/outlet. That comes from the fact that this integral takes into account only the normal contribution of the velocity. So some time is needed to write another postProcessing tool. You are right. The list of things that can go wrong is long. However, I want to make sure that my 2D results are correct. Do you know a reference or a book where we say that at the outlet of a well designed (where the method of characteristic is giving the geometry) 2D case, we should not necessarily have the 1D Mach number ? Otherwise do you know any methods to check the validity of a 2D case ? The focus of my project is not on the method of characteristics. Maybe the matlab code that I am using to have the geometry is not a good one. But I achieve the Mach number that I introduce to this program as input ... |
||
January 8, 2019, 14:45 |
|
#4 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66 |
Quote:
My example comes from venturi's (which are well designed c-d nozzles, but not designed for M>>1 at the exit): You can find a reference. Btw this reference is a sort of bible for building critical flow venturi's / sonic nozzles. Just look at figures at the end if you are too lazy to read the full text. Check out Fig. 10 in particular. In short, 1D theory is nice and describes a lot of things, but it also misses at a lot of things. But notice the year of publication! 1961! Isn't it amazing how this was common knowledge in 1961 yet unbelievable now? Now I don't know why you get a number like Mach 6 instead of 7 and whether this is a small or big difference. But to expect that a 2D/3D simulation reproduces exactly the same result as 1D theory sounds quite... academic. Maybe in a pipe of constant cross section with no flow. |
||
January 9, 2019, 06:42 |
|
#5 | |
Member
K
Join Date: Jul 2017
Posts: 97
Rep Power: 9 |
Quote:
The converging part indeed is not coming from the method of characteristics. For the simplicity, I did a symmetrical geometry or in other terms, the converging part is the mirror of the diverging part obtained by MOC. Thanks for your explanation. I will read this document. I just need as many documents as possible to show to my supervisor why I should not get the same results than 1D. Assume that we should not get the same results than 1D, how do we can so validate the 2D results ? The boundary conditions at outlet somehow dictates the behavior of the fluid within the nozzle. The sensitivity analysis ,convergence of the simulations and checking the conservation of the mass at the inlet and outlet are enough ? |
||
January 9, 2019, 09:55 |
|
#6 |
Member
K
Join Date: Jul 2017
Posts: 97
Rep Power: 9 |
I forgot to mention that I consider an inviscid flow and there is no boundary layer as the boundary condition for the velocity at the wall has been fixed to slip.
|
|
January 9, 2019, 12:16 |
|
#7 |
Member
K
Join Date: Jul 2017
Posts: 97
Rep Power: 9 |
Should the 2D results be isentropic ? because if I calculate the variation of entropy between the inlet and outlet, it is not equal to zero. And that's explain why I don't get the same mach number than 1D. But the question is am I supposed to have some isentropic behavior ? The only thing that the solver does is to save Euler equation for conservative variables. Not to fulfill the isentropic formulation.
The whole day today, I searched for kind of figures where we compare eventually 1D and 2D. But I didn't succeed. I would be very grateful if someone can help me with this problem. |
|
January 9, 2019, 18:14 |
|
#8 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66 |
First you claimed that you have a beautifully designed nozzle, but now you tell us it is mirrored. People that make venturi nozzles would laugh at you. Mockery aside, your laundry list is now growing. =)
So what equations are you solving? Just setting slip walls does not mean it is inviscid. You still have velocity gradients and viscous effects if you are solving N-S. Are you solving N-S or Euler? Again I refer to Fig. 10. Viscous effects account for a small effect near the wall, centrifugal effects (i.e. non-uniform flow effects) are much greater. Is the velocity you get at the outlet purely axial? And is it uniform? If no to either, then the 2D result will deviate with 1D theory. Check out this paper on averaging non-uniform flow. There are volumes upon volumes of books dealing with numerical validation and verification. OpenFOAM has been used for over a decade by many people with innumerable papers published. The problem is you need to convince yourself whether you trust the solver or not. And only you can convince yourself. I won't give any recommendations here. Even if you were convinced that solver is accurate, I wouldn't ever trust that there is no user error, since you haven't provided any pictures reassuring anyone that you have even a converged solution (not that I am requesting them). Wait, what? If you have M>1 at the outlet then the BC at the outlet doesn't matter. Something doesn't make sense. |
|
January 13, 2019, 05:06 |
|
#9 | ||||||
Member
K
Join Date: Jul 2017
Posts: 97
Rep Power: 9 |
Quote:
Quote:
for the converging part, is there any rule/method to be able to claim that is well designed ? Should not flow adapt itself to have the sonic condition at the throat ? Please see the shape of the nozzle below. Quote:
Quote:
Quote:
Quote:
To sum up, there are two fundamental questions : Are we supposed to get a 1D Mach number at the outlet when the flow is uniform ? If not, how far it could be our result ? |
|||||||
January 13, 2019, 11:37 |
|
#10 | ||||
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66 |
Quote:
I already gave you someone's thesis for how to design the throat. Btw those recommendations are now part of manufacturing specs for sonic nozzles. Hence why it is a bible. The converging part is much easier to design than the diverging part. In the diverging part you use method of characteristics. In the converging part, simple radius filleting with some rules of thumb are given. The challenge in the converging part is minimizing boundary layer growth (which is not an issue for your case) and trying your best to deliver a uniform flow to the throat. Unfortunately, you mirrored the diverging part and don't have a nice smooth throat. Design rules for rocket nozzles are similar, but the throat is extended (more straight section is added) for combustion to take place. The sonic condition does not happen exactly at the throat but (as you already correctly understand) does not occur at a single axial location but as a 3D disc. The axial extent of this disc is on the order of the throat curvature (i.e. the throat diameter, because that's what determines the level of centrifugal forces). Quote:
Quote:
If your outlet is supersonic (and the Mach number contour you provide convincingly says that it is since M>>1) then you don't need the wave transmissive BC. So I would rule that out. I find it odd that you said the outlet BC affect anything, because it shouldn't. Not really important, but the wavetransmissive BC doesn't virtually extend the geometry. If you care to learn more about it, read about it, if not, don't. Quote:
You can see in your Mach number contour at the upstream part of the diverging section that the Mach number is not uniform (I can see green, yellow, and red at the same axial location). If you want your OF to match the 1D theory, it should always be uniform in the diverging part. Btw, can't you just run a case where you simulate only the diverging part of the nozzle without any contracting part? |
|||||
January 13, 2019, 16:16 |
|
#11 | ||
Member
K
Join Date: Jul 2017
Posts: 97
Rep Power: 9 |
Thanks LuckyTran for your answer.
Quote:
Quote:
However, I would like to check for other codes giving the supersonic curvature by MOC. Do you know if MOC is still reliable for hypersonic cases ? My experience show that with much lower mach number, between 1-4, the outlet mach number is much closer to 1D one. However, when we go for higher mach number, the difference is big. I am wondering if this method does not lose its accuracy for higher mach number cases. Do you know any reliable contouring codes ? Thanks a lot for your time |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wall Temperature in Nozzle with RhoCentralFoam | Hillie | OpenFOAM Running, Solving & CFD | 1 | August 25, 2024 09:03 |
Code for SUPERSONIC NOZZLE DESIGN | Amardip | Main CFD Forum | 24 | February 8, 2019 08:44 |
Supersonic nozzle contouring by method of characteristics | mkhm | Main CFD Forum | 5 | January 1, 2019 14:51 |
rhocentralFoam supersonic flow issues | samlee | OpenFOAM Running, Solving & CFD | 0 | March 6, 2018 20:32 |
Small Supersonic Nozzle | Paal | Main CFD Forum | 3 | November 25, 2003 05:59 |