CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Turbomachinery Solver OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Rating: 2 votes, 5.00 average.

Turbomachinery Solver OpenFOAM

Posted January 13, 2021 at 12:03 by badpuppet
Updated January 15, 2021 at 13:27 by badpuppet

Turbomachinery Solver OpenFOAM


This forum has been a big source of information for me since I started doing CFD. Now, I want to share my work to thank your altruistic knowledge sharing. Regarding the main topic of this blog, I am going to talk about my first turbomachinery simulations with rhoSimpleFoam, the problems I found with this solver and my solution, which I called turboSimpleFoam. Feel free to ask me whatever you want or tell me if something is wrong.

Turbomachinery is a very interesting topic in my opinion, so I started the design of a turbocharger a year ago just for fun. After modelling some of the geometry, I thought that doing some CFD simulations would be of interest to understand the behaviour of the air when it passes through the device. Therefore, a computational domain was defined by the following properties:
• RANS
• MRF
• Compressible
• K-Omega SST
• Subsonic
• Inlet T = 300 K
• Inlet p = 1 atm
• Mass flow = 0.1 Kg/s
• Rotation Speed = 50 000 rpm
https://www.cfd-online.com/Forums/bl...1&d=1610557096

Until here the problem seemed challenging, but nothing I hadn’t done before. Taking into account the conditions of the problem to be solved, I chose rhoSimpleFoam as my solver, snappyHexMesh as my mesher and then I performed some simulations. Surprisingly for me, the temperature decreased to 280 K at the exit of the rotor so, obviously, something was terribly wrong.

https://www.cfd-online.com/Forums/bl...1&d=1610557130

Firstly, I tried several things like changing its thermodynamic properties or its boundary conditions, without significant changes. The problem was driving me crazy for a few days, but then I introduced an energy source in the rotating zone, and it worked. However, I hadn't solved it yet, because I picked an energy source of a random number of watts, but it was a good starting point.

Once I noticed that the energy along the rotating zone wasn’t being solved properly, I studied turbomachinery theory to calculate the energy source, and this was my conclusion:

𝑊𝑢 = 𝑚̇ · ( 𝑢1 · 𝑐𝑢1 − 𝑢2 · 𝑐𝑢2 )
𝑢 = 𝑟 · 𝜔
𝑑𝑊𝑢 = 𝑑𝑖𝑣𝑒𝑟𝑔𝑒𝑛𝑐𝑒( 𝑚̇ · 𝑢 · 𝑐𝑢 )

Where 𝑊𝑢 is the energy source, 𝑚̇ is the mass flow, 𝑢 is the rotation velocity, 𝑐𝑢 is the tangential velocity of the flow, 𝑟 is the radius and 𝜔 is the rotation speed.

After that, I introduced the energy source in the code and some extra variables like the rotation velocity, the tangential velocity, the radial velocity and something I called the zone term, Z. The last term is necessary due to the energy source value being zero at the static zone and one at the rotating zone. Taking all of this into account, the energy equation in the code is:

fvScalarMatrix EEqn
(
fvm::div(phi, he)
+ (
he.name() == "e"
? fvc::div(phi, volScalarField("Ekp", 0.5*magSqr(U) + p/rho))
: fvc::div(phi, volScalarField("K", 0.5*magSqr(U)))
)
+ thermophysicalTransport->divq(he)
==
fvOptions(rho, he)+Z*fvc::div(phi,u*Ut)
);

Finally, the results obtained are logical and the temperature rises to 350 K. Also, I have solved the problem in EXCEL using velocity triangles and thermodynamics, so the results of the CFD simulation can be compared with the theory of turbomachinery. As it can be seen at the end of this blog, the results obtained by both ways are quite similar.

https://www.cfd-online.com/Forums/bl...1&d=1610557130

In conclusion, the new solver turboSimpleFoam gives excellent results in comparison with the theory of turbomachinery. Also, the temperature, the pressure and the density at the outlet are in line with the reality using both ways.

https://www.cfd-online.com/Forums/bl...1&d=1610557130


Solver (Rotation axis must be in the Z direction):https://mega.nz/folder/NxZ2QRzJ#u3DE_1RVBJT8DbhAUsCkHQ

PostProcess Paraview:https://mega.nz/file/p4ZnwC6B#KmIzSS...fLq0aYTiJZZtyI

Simulation:https://mega.nz/file/gsYWmJIB#izgg1_...K2XYll5K55lMq0

PDF:https://mega.nz/file/90gwEIoC#JMq9Uf...ssbfEMcSm910z0
Attached Thumbnails
Click image for larger version

Name:	results_Comparation_Turbocharger.png
Views:	612
Size:	41.5 KB
ID:	531  
Attached Images
File Type: jpg mesh_Turbocharger.jpg (72.0 KB, 486 views)
File Type: jpg rhoSimpleFoam_Turbocharger.jpg (25.7 KB, 462 views)
File Type: jpg turboSimpleFoam_Turbocharger.jpg (26.4 KB, 465 views)
Attached Files
File Type: zip turboSimpleFoam.zip (256.2 KB, 278 views)
Views 1926 Comments 8 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 8

Comments

  1. Old Comment
    Hi,


    Thank you very much for this article !


    Could you share fvSchemes and fvSolution as well ?


    Thank you !


    EDIT :



    Found in tar.gz file :-)
    permalink
    Posted November 27, 2021 at 02:40 by Fouch Fouch is offline
  2. Old Comment
    Hello!

    Has it been useful for you? Tell me more about what do you think about my solver.


    Thanks.
    permalink
    Posted November 27, 2021 at 05:06 by badpuppet badpuppet is offline
    Updated November 27, 2021 at 05:07 by badpuppet (typing error)
  3. Old Comment
    Please help me compile it.
    permalink
    Posted December 19, 2022 at 12:15 by barbarian_subhkaran barbarian_subhkaran is offline
  4. Old Comment
    Quote:
    Originally Posted by barbarian_subhkaran View Comment
    Please help me compile it.
    As I remember, you need to download the solver, get into the directory and "wmake"
    permalink
    Posted December 19, 2022 at 12:20 by badpuppet badpuppet is offline
  5. Old Comment

    I already tried it with version 9, dev and 2112.

    Quote:
    Originally Posted by badpuppet View Comment
    As I remember, you need to download the solver, get into the directory and "wmake"
    Hello sir, thank you for your reply. I am trying to compile your solver using various versions but get an error. Please tell me what version did you use? I want to use this solver for my master thesis and further research. subhkaran.foam@gmail.com my email.

    Thank you
    permalink
    Posted December 28, 2022 at 06:46 by barbarian_subhkaran barbarian_subhkaran is offline
    Updated December 28, 2022 at 14:40 by barbarian_subhkaran
  6. Old Comment

    I already tried it with version 9, dev and 2112.

    Quote:
    Originally Posted by barbarian_subhkaran View Comment
    Hello sir, thank you for your reply. I am trying to compile your solver using various versions but get an error. Please tell me what version did you use? I want to use this solver for my master thesis and further research. subhkaran.foam@gmail.com my email.

    Thank you
    This solver was developed in OpenFOAM.org 8
    permalink
    Posted January 1, 2023 at 09:26 by badpuppet badpuppet is offline
  7. Old Comment

    I already tried it with version 9, dev and 2112.

    Quote:
    Originally Posted by badpuppet View Comment
    This solver was developed in OpenFOAM.org 8
    Thank you it compiled. I will keep you updated with what results I will get with it.
    permalink
    Posted January 6, 2023 at 00:36 by barbarian_subhkaran barbarian_subhkaran is offline
  8. Old Comment

    I already tried it with version 9, dev and 2112.

    Quote:
    Originally Posted by barbarian_subhkaran View Comment
    Thank you it compiled. I will keep you updated with what results I will get with it.
    Thank you for your feedback. I am looking forward to your results.
    permalink
    Posted January 8, 2023 at 08:57 by badpuppet badpuppet is offline
 

All times are GMT -4. The time now is 21:19.