CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[Tutorials] OpenFOAM pump tutorial

Register Blogs Community New Posts Updated Threads Search

Like Tree33Likes
  • 17 Post By linnemann
  • 14 Post By linnemann
  • 1 Post By CFDpal
  • 1 Post By maxkcngcfd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2016, 10:23
Default OpenFOAM pump tutorial
  #1
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi all

I hereby give you a complete tutorial case for running a MRF simpleFoam case of a 3D pump with parametric created impeller and volute.

https://github.com/nelinnemann/openf...llerWithVolute

please read the readme for having the correct software installed.
Attached Images
File Type: jpg screen.jpg (37.7 KB, 437 views)
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   March 19, 2016, 12:49
Default
  #2
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 200
Rep Power: 18
vatavuk is on a distinguished road
Hi Niels,

Thanks for posting this tutorial. Can you say anything about the geometry? Is it from an existing pump?

Best Regards,
Paulo
vatavuk is offline   Reply With Quote

Old   March 20, 2016, 01:52
Default
  #3
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

Nope this pump is purely fiction.

Although the dimension might fit with certain small runners.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   March 24, 2016, 16:23
Default
  #4
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
Hi,

can you explain what's the meaning of setting flowrate at inlet and velocity fixed vValue at outlet (U) & zero gradient at inlet and 0 value at outlet for P, meanwhile youìre even setting rotating speed?
Can you please explain comparing with other typical bc's for MRF problems?

Can you explain in detail how you choose inlet & outlet values for k and omega? (please don't answer:" use turbulence properties on cfd tools...)

What sort of post-processing analysis would you do to analyze your "fiction" case?

Thanks a lot for your answers.

MC

Last edited by student666; March 24, 2016 at 18:59.
student666 is offline   Reply With Quote

Old   March 25, 2016, 03:47
Default
  #5
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Quote:
can you explain what's the meaning of setting flowrate at inlet and velocity fixed vValue at outlet (U) & zero gradient at inlet and 0 value at outlet for P, meanwhile youìre even setting rotating speed?
Can you please explain comparing with other typical bc's for MRF problems?
Well when you have a pump you normally have a pump curve that consists of hydraulic head vs flowrate. The other curve you have is the hydraulic shaft power required to rotate the pump. So ideally the flowrate is a table of flow points that you sorta know in advance since you might be working with optimizing an existing pump or are using the scaling laws to generate a new pump from an existing design. The hydraulic head you can get by sampling the pressure at the inlet since it is zero gradient. You could also set a pressure of 0 at the inlet, zero gradient at the outlet and then specify a negative flowrate at the outlet (flowrate is normal to the BC) if that makes more sense in your head. Then you can sample the pressure at the outlet instead. To get the hydraulic shaft power you can add a force samling on the rotating parts to get the moment around the z-axis (this case). You can then turn this into Watt using P (kW) = (M (Nm) * O (rad/s))/1000. You can also get the hydraulic power . from those two numbers you can calculate the hydraulic efficiency and that you can compare to another design you make.

Quote:
Can you explain in detail how you choose inlet & outlet values for k and omega? (please don't answer:" use turbulence properties on cfd tools...)
Well I just set the turbulentMixingLengthDissipationRateInlet and the turbulentIntensityKineticEnergyInlet , so I really do not need to estimate them that much, I use them so if I choose a new flowrate the values automatically adjust. The internalField values are just a starting guess and can be any smaller number.

Quote:
What sort of post-processing analysis would you do to analyze your "fiction" case?
First see above about the hydraulic shaft power and efficiency, next see below for a general observation.

This is where most people in my opinion get CFD wrong, all those color plots are well and nice, but to understand a 3D flow pattern from some 2D plots and vectors are not sufficient to detect a pattern (unless you are very special ). I've had colleagues that told me they had designed pumps (CFD) that had the nicest flow patterns and everything looked perfect, but when it came to prototype testing some of the "worser" looking pumps (flow patterns) performed better than the "perfect flow". All the color plots and streamlines etc. are good for showing at the conferences and to meetings where the boss attends.

So my advice here when doing any kind of CFD, measure or probe things in the case that might be measurable IRL. Those probes and samplings are also a much better indicator that the case have converged than any of the residual plots. I call these values "black body" values as you dont really know what kind of changes influence the result, but they are directly comparable with a number or a curve to another similar design.

The next step is of course to add optimization on top of you parametric 3D case and CFD solution. Then you can do all kind of interesting data analysis as you have a direct correlation between the changes you make to the geometry and the "black body" values you get out the other end.

I see CFD as a tool I can use to design or analyse stuff. Rarely do I go into detail about the flow pattern, unless of-course that is what I want. I use CFD as a relative design study, too see "is this design better than the other design". It is my belief that if you see a trend moving toward a better performance in the CFD, 90% of the time you will see a similar trend IRL. This is of-course a coarse estimate and that number will vary from field to field.

You will almost never be able to get 100% identical numbers between CFD and testing, but if you instead see CFD as a prototyping tool too find trends in design you can avoid a huge amount of prototypes even though the numbers might be of by 10-20% you will most likely in the end still have a better product than you started out with. Then it is up to you to find those empirical numbers between CFD and actual products, that my friend is called experience and it does not come cheap.

I mostly work with products that needs to be produced and that often put limitations on how "creative" one can be about the design. Also the solving time can be a significant factor in how "accurate" the mesh can be and how many details one can include in the design. So it almost always a trade-off between accuracy and time-to-market.

This became a much longer post than anticipated, but I hope you and others get my points.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   June 28, 2016, 12:03
Default
  #6
New Member
 
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 10
maxkcngcfd is on a distinguished road
Hi Mr. Nielsen

what an impressive example you came up above. i'm relatively new to OpenFoam and wanted to investigate the flow pattern inside the pump, which your example make great fit in my need. however, there's one problem thou. i only have window version OpenFoam which prevented me from using 3rd party linux programing like you used in your code. before i jump straight into setting up a new linux OS and then Openfoam. I wonder if it will still be possible to make your case run in window Openfoam? appreciate your reply. thanks!
maxkcngcfd is offline   Reply With Quote

Old   October 16, 2017, 23:51
Question Pump case in new OpenFOAM
  #7
New Member
 
CFDpal
Join Date: Mar 2017
Location: Boston, MA
Posts: 20
Blog Entries: 1
Rep Power: 9
CFDpal is on a distinguished road
Hello,

First, I want to say Thank you for such good explanations and the cfd case.

Did the author or anyone try running the case in the newer OpenFOAM/Salome/3rd party tools ? Please share your experience.

Salome is 8.3.0 and OpenFOAM is 5.0 now. Do you anticipate any problems in the newer releases of software ?

New installs are typically painful for me and I am afraid since I am novice to Linux.

Thank you in advance.

CFDpal
raj kumar saini likes this.
CFDpal is offline   Reply With Quote

Old   October 17, 2017, 12:14
Default
  #8
New Member
 
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 10
maxkcngcfd is on a distinguished road
Hi,

I didn't have much luck to get Salome to work (at least on some complex shape like pump it always crash for freeze up) if you are students or working for university, i think you can get a free copy of latest Autodesk CFD.
https://www.autodesk.com/education/f...are/cfd-motion

I would also recommend Simflow
https://sim-flow.com/
they are 3rd party CFD company that develop their own GUI for openfoam. their free license never expired but only allow you to generate 100k mesh. that's a good starting point for you if you are relatively new to openfoam. it really help me to understand alot when i first start learning openfoam.

another software that I came across is CFDSUPPORT
https://cfdsupport.com/openfoam-for-windows.html
this company develop their own window base GUI based on openfoam as well, they do offer 30 days trial and special price for university, try to write to them to get more information.

I also came across HELYX-OS
https://engys.com/products/helyx-os
it seems like they offer free GUI for openfoam in Linux for free, if you operating in window they do offer some support, try to write to them.


last thing that I recommend is try to google "GUI for openfoam"

hope these help.

Quote:
Originally Posted by CFDpal View Post
Hello,

First, I want to say Thank you for such good explanations and the cfd case.

Did the author or anyone try running the case in the newer OpenFOAM/Salome/3rd party tools ? Please share your experience.

Salome is 8.3.0 and OpenFOAM is 5.0 now. Do you anticipate any problems in the newer releases of software ?

New installs are typically painful for me and I am afraid since I am novice to Linux.

Thank you in advance.

CFDpal
raj kumar saini likes this.
maxkcngcfd is offline   Reply With Quote

Old   October 17, 2017, 16:54
Default
  #9
New Member
 
CFDpal
Join Date: Mar 2017
Location: Boston, MA
Posts: 20
Blog Entries: 1
Rep Power: 9
CFDpal is on a distinguished road
Quote:
Originally Posted by maxkcngcfd View Post
Hi,

I didn't have much luck to get Salome to work (at least on some complex shape like pump it always crash for freeze up) if you are students or working for university, i think you can get a free copy of latest Autodesk CFD.
https://www.autodesk.com/education/f...are/cfd-motion

I would also recommend Simflow
https://sim-flow.com/
they are 3rd party CFD company that develop their own GUI for openfoam. their free license never expired but only allow you to generate 100k mesh. that's a good starting point for you if you are relatively new to openfoam. it really help me to understand alot when i first start learning openfoam.

another software that I came across is CFDSUPPORT
https://cfdsupport.com/openfoam-for-windows.html
this company develop their own window base GUI based on openfoam as well, they do offer 30 days trial and special price for university, try to write to them to get more information.

I also came across HELYX-OS
https://engys.com/products/helyx-os
it seems like they offer free GUI for openfoam in Linux for free, if you operating in window they do offer some support, try to write to them.


last thing that I recommend is try to google "GUI for openfoam"

hope these help.
@maxkcngcfd,

Thank you for your suggestion! However, it is not in line with my goal to use commercial s/w or having limitations on mesh count. I have no problem runing pump cases with comercial packages.

Did you have luck with the abovementioned pump case (not the complex case) ?

Could you please tell some specifics? version of freeze/crush in salome ? Maybe a particular state or step? Did you manage to wmake the application and what OF version? Can you run your app with the mesh? Only the mesh is the problem?


Thank you again for your help!

CFDpal
CFDpal is offline   Reply With Quote

Old   October 17, 2017, 22:37
Default
  #10
New Member
 
Max Ng
Join Date: Jun 2016
Posts: 9
Rep Power: 10
maxkcngcfd is on a distinguished road
Hi,

it was about 2 years ago, i din't recalled what version of Salome, but it just doesn't allow me to import. every time when i import my step/iges files. the whole program will freeze and after waiting for couple hours it just crash. after trying multiple times, i finally gave up. there's no chance for me to even troubleshoot, I think it simply wasn't design to handle slightly complex 3D files.

i tried to run pump case above but couldn't get it to works as well.

Quote:
Originally Posted by CFDpal View Post
@maxkcngcfd,

Thank you for your suggestion! However, it is not in line with my goal to use commercial s/w or having limitations on mesh count. I have no problem runing pump cases with comercial packages.

Did you have luck with the abovementioned pump case (not the complex case) ?

Could you please tell some specifics? version of freeze/crush in salome ? Maybe a particular state or step? Did you manage to wmake the application and what OF version? Can you run your app with the mesh? Only the mesh is the problem?


Thank you again for your help!

CFDpal
maxkcngcfd is offline   Reply With Quote

Old   October 17, 2017, 23:26
Default
  #11
New Member
 
CFDpal
Join Date: Mar 2017
Location: Boston, MA
Posts: 20
Blog Entries: 1
Rep Power: 9
CFDpal is on a distinguished road
Quote:
Originally Posted by maxkcngcfd View Post
Hi,

it was about 2 years ago, i din't recalled what version of Salome, but it just doesn't allow me to import. every time when i import my step/iges files. the whole program will freeze and after waiting for couple hours it just crash. after trying multiple times, i finally gave up. there's no chance for me to even troubleshoot, I think it simply wasn't design to handle slightly complex 3D files.

i tried to run pump case above but couldn't get it to works as well.
Hi Maxkcngcfd,

Thank you! Now it is clear.
CFDpal is offline   Reply With Quote

Old   December 31, 2017, 05:14
Default
  #12
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
New link to the cases are

https://github.com/nelinnemann/of-cases
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   November 18, 2020, 19:17
Default
  #13
New Member
 
Join Date: Jul 2017
Posts: 10
Rep Power: 9
djason is on a distinguished road
Sorry this is a few years on, and I hope you can see it to respond, but could I ask the source of the geometry parameterization routine? I want to extend it to a twisted impeller geometry. And sorry for my layman terminology but sure you know what I mean ..
djason is offline   Reply With Quote

Old   November 19, 2020, 02:30
Default
  #14
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

In the Mesh folder there are two script files for Salome.

SalomeImpellerAndInlet.py
SalomeVolute.py

You should be able to see the parameters and how its done in those.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   November 19, 2020, 06:38
Default
  #15
New Member
 
Join Date: Jul 2017
Posts: 10
Rep Power: 9
djason is on a distinguished road
Thanks for responding. Yes I have seen the files and successfully built the geometry in Salome. But I want to understand the calculations and I cant read python..
So did you get the maths from a book or so that I can reference, I.e. if you constructed the code it yourself? Or did you obtain the source code from somewhere?
djason is offline   Reply With Quote

Old   November 19, 2020, 06:52
Default
  #16
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
It was constructed by me based on my experience with Salome and pump geometries.

You can get inspiration in various pump books, but none of them will give you the final answer or code.

Learn Salome/python and read some books about pumps is the only advice I can give you.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   November 19, 2020, 09:28
Default
  #17
New Member
 
Join Date: Jul 2017
Posts: 10
Rep Power: 9
djason is on a distinguished road
Ok, I'll do that. Much appreciated.
djason is offline   Reply With Quote

Old   October 20, 2023, 11:12
Default
  #18
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 64
Rep Power: 4
unilord is on a distinguished road
Hey,

The cfmesh software is not free. Is there any way that you could share a picture of the mesh, so I have an idea of what it looks like?
unilord is offline   Reply With Quote

Old   August 22, 2024, 12:01
Smile
  #19
New Member
 
Join Date: Jul 2024
Posts: 24
Rep Power: 2
CFD_SG_01 is on a distinguished road
Hello,
Thank you for sharing this work.
I've noticed the use of simpleFoam solver and the MFR properties.
Have you tried to set this case with a DynamicLMesh properties and pimpleFoam algorithm?

Thank you for your reply
CFD_SG_01 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
release of the ERCOFTAC centrifugal pump - Fourth OpenFOAM Workshop olivier OpenFOAM 8 October 29, 2018 08:49
ERCOFTAC centrifugal pump case study with OpenFOAM extend 3.2 saleriCAE OpenFOAM 0 March 8, 2017 06:16
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
Tutorial Not Running In OpenFOAM H0T_S0UP OpenFOAM 2 January 20, 2015 17:58


All times are GMT -4. The time now is 06:57.