CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Pressure instability with rhoSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2010, 13:52
Default
  #21
New Member
 
rock.senthilkumar's Avatar
 
senthilkumar.R
Join Date: Sep 2010
Location: Ranchi, India
Posts: 20
Rep Power: 15
rock.senthilkumar is on a distinguished road
Dear Alberto,
Thanks for your quickest replies.If I am not wrong, OF 1.7.1 tutorials does not have example case for rhoSimpleFoam. Even I searched through Internet to download but failed, then only came to know lot of people are looking for test case. Please correct me if I am wrong.


Quote:
Originally Posted by alberto View Post
Take a look at the tutorials :-)
__________________
Senthil Kumar. R
Department of space Engineering and Rocketry,
Birla Institute of Technology,Mesra.
rock.senthilkumar@gmail.com
rock.senthilkumar is offline   Reply With Quote

Old   December 27, 2010, 16:12
Default
  #22
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by rock.senthilkumar View Post
Dear Alberto,
Thanks for your quickest replies.If I am not wrong, OF 1.7.1 tutorials does not have example case for rhoSimpleFoam. Even I searched through Internet to download but failed, then only came to know lot of people are looking for test case. Please correct me if I am wrong.
You can quickly adapt the cases for rhoPimpleFoam and rhoPorousSimpleFoam to rhoSimpleFoam.

I added the required entries to the attached case, but I did not clean the dictionaries up.
Attached Files
File Type: gz angledDuctImplicit.tar.gz (87.9 KB, 100 views)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   December 27, 2010, 23:09
Default
  #23
New Member
 
rock.senthilkumar's Avatar
 
senthilkumar.R
Join Date: Sep 2010
Location: Ranchi, India
Posts: 20
Rep Power: 15
rock.senthilkumar is on a distinguished road
Dear Alberto,
Thank you for your attachments. I will clean up the dictionaries, and let you know how it works for my case. Thank you again.


Quote:
Originally Posted by alberto View Post
You can quickly adapt the cases for rhoPimpleFoam and rhoPorousSimpleFoam to rhoSimpleFoam.

I added the required entries to the attached case, but I did not clean the dictionaries up.
__________________
Senthil Kumar. R
Department of space Engineering and Rocketry,
Birla Institute of Technology,Mesra.
rock.senthilkumar@gmail.com
rock.senthilkumar is offline   Reply With Quote

Old   February 12, 2011, 06:59
Default
  #24
New Member
 
Patty
Join Date: Sep 2010
Posts: 13
Rep Power: 15
ptbs is on a distinguished road
Hi aerothermal

I have the same problem with pressure instability with RhoPorousSimpleFoam inducing speed oscillations (up to crash). I made a research with your name on this CFD Online forum and found no trace of a new thread dealing with this problem written by you. Could you be kind enough to tell me (if ever you did it) where this thread is located. In case of no new thread, could you explain me how you stabilized such pressure instabilities.
I reduced the p relaxation factor down to 0.0005! it helps but each time I reduce the outlet pressure, to progressively reach higher speeds (I wish I could reach Mach1 at the outlet, but still am at ~Mach 0.1), I need to reduce further this factor. Is it sufficient to reduce p relaxation factor? Any other tricks you succeeded with?

Many thanks.

Best regards

Last edited by ptbs; February 12, 2011 at 07:46.
ptbs is offline   Reply With Quote

Old   February 12, 2011, 09:35
Default
  #25
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 118
Rep Power: 15
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
Hi Patty,

Try to use divSchemes div(phi,U) Gauss limitedLinearV 1.0
Usually it helps to stabilize.

I manage to converge my case but the results are not good.
I will posto some results here later.

regards,

aerothermal
aerothermal is offline   Reply With Quote

Old   February 12, 2011, 15:42
Default
  #26
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by ptbs View Post
Hi aerothermal

I have the same problem with pressure instability with RhoPorousSimpleFoam inducing speed oscillations (up to crash). I made a research with your name on this CFD Online forum and found no trace of a new thread dealing with this problem written by you. Could you be kind enough to tell me (if ever you did it) where this thread is located. In case of no new thread, could you explain me how you stabilized such pressure instabilities.
I reduced the p relaxation factor down to 0.0005! it helps but each time I reduce the outlet pressure, to progressively reach higher speeds (I wish I could reach Mach1 at the outlet, but still am at ~Mach 0.1), I need to reduce further this factor. Is it sufficient to reduce p relaxation factor? Any other tricks you succeeded with?
I believe it is not appropriate to relax so strongly the pressure. If you need to do that, most probably you have a problem in your physical or numerical setup.

Could you post a simple case that reproduces the problem?

Best,
Alberto
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   February 13, 2011, 04:59
Default
  #27
New Member
 
Patty
Join Date: Sep 2010
Posts: 13
Rep Power: 15
ptbs is on a distinguished road
Quote:
Originally Posted by aerothermal View Post
Try to use divSchemes div(phi,U) Gauss limitedLinearV 1.0
Usually it helps to stabilize.
aerothermal
Hello aerothermal

Thanks for answering. I have tried in my next iterations to use "divSchemes div(phi,U) Gauss limitedLinearV 1.0" instead of "Gauss upwind", as you suggested but using, as initially, a p relaxation factor of 0.2. It has diverged after only 20 iterations. So I kept your suggestion but combine it with a 0.00025 p relaxation factor, waiting for more information from you.

By the way, what is the meaning of the constant 1.0 in "Gauss limitedLinearV 1.0". I tried to watch in the C++ files, but really, it is not clear for an "end user" like me. Is it to be tuned like relaxation factors or just a constant setup for openFoam solvers?

Best regards
ptbs is offline   Reply With Quote

Old   February 13, 2011, 05:19
Default
  #28
New Member
 
Patty
Join Date: Sep 2010
Posts: 13
Rep Power: 15
ptbs is on a distinguished road
Quote:
Originally Posted by alberto View Post
Could you post a simple case that reproduces the problem?
Hello Alberto

Well, the case I am studying is quite big and absolutely confidential. So, I will try to make another model, oversimplified but that could recreate this behavior.

However, in case of success, how to post a full case in this forum? Do you need the mesh files or just the dictionaries setting up the rhoPorousSimpleFoam solver? Being new in this forum, I never did it before. Have you a suggestion? A thread to read that describes the best procedure according to your experience? Other similar advices? I read that the attachment to a post in this forum is 98KB max, so may be a zip or tar file could be suitable, but what to place in it?

Be patient, I will try to do it with your recommendations during the next week-end.

Many thanks

Last edited by ptbs; February 13, 2011 at 05:37.
ptbs is offline   Reply With Quote

Old   February 13, 2011, 16:45
Default
  #29
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by ptbs View Post
Well, the case I am studying is quite big and absolutely confidential. So, I will try to make another model, oversimplified but that could recreate this behavior.
OK.

Quote:
However, in case of success, how to post a full case in this forum? Do you need the mesh files or just the dictionaries setting up the rhoPorousSimpleFoam solver? Being new in this forum, I never did it before. Have you a suggestion? A thread to read that describes the best procedure according to your experience? Other similar advices? I read that the attachment to a post in this forum is 98KB max, so may be a zip or tar file could be suitable, but what to place in it?
A small complete case reproducing the problem would help. If not that, at least the numerical setup and the boundary conditions you use. If these are fine, your problem might be the mesh

P.S. If you have large files, you can use a service like dropbox (free up to 2GB).

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   February 16, 2011, 13:02
Default RhoPorousSimpleFoam case with instability
  #30
New Member
 
Patty
Join Date: Sep 2010
Posts: 13
Rep Power: 15
ptbs is on a distinguished road
Quote:
Originally Posted by alberto View Post
A small complete case reproducing the problem would help.
Hi Alberto

Here it is. I follow your suggestion and place a complete case very similar in boundary conditions as the one I try to solve, and run it Sunday evening. This case presents all the typical behavior I mentioned previously. Here I have also reduced p relaxation factor down to 0.0025, and even like that it is still unstable. The dropBox links to get the full solved problem is http://dl.dropbox.com/u/21252587/14cfdtest.tar.gz (Sorry for the size of the full simulation ~1.4GB, I think it is better you get all to understand). I used RhoPorousSimpleFoam because I finally want to use the porous element I place in the middle part, but for the moment (to simplify) the Darcy parameters are so low that they do not influence. Moreover, I never see instability from that porous area.

Have a look with paraFoam making a slice at middle XZ plane. The exhaust pipe show very clear instability with time (like waves) that I can really not understand. In my other models these sudden instabilities sometimes happen in the larger inlet pipe during transition regime, although I am very far from my Mach 1 objective at the outlet section ( I wish to decrease progressively the outlet pressure to force the simulation to reach M1 at the outlet pipe).

From what I read, description of problem from other participant to this forum are sometimes similar.

Could you help us?

Many Thanks
ptbs is offline   Reply With Quote

Old   February 16, 2011, 13:28
Default my case converged
  #31
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 118
Rep Power: 15
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
Dear ptbs,

My low Mach cylinder case in a small tunnel (almost a duct) converged. The waves still does appear but they are not as critical as before.

I used the OF1.6-ext instead of OF1.7.1. It helped a lot in convergence.

See attached the fvSchemes and fvSolution.

Also pay attention in your boundary conditions. Place adequate values for k, epsilon, mut and alphat. Regarding U and p, you should take even more care with the combination of types. Take a look in the tutorial for rhoPorousSimpleFoam. It will help you.

Regards,

aertothermal

fvSchemes.txt

fvSolution.txt
aerothermal is offline   Reply With Quote

Old   February 16, 2011, 14:30
Default
  #32
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by aerothermal View Post
I used the OF1.6-ext instead of OF1.7.1. It helped a lot in convergence.
It seems you are using a very standard numerics, which would indicate problems in 1.7.1 that are not in 1.6-ext. Do you know what was the difference causing convergence problems?

Best,
Alberto
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   February 16, 2011, 14:48
Default
  #33
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 118
Rep Power: 15
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
Hi Alberto,

I do not know yet the causes but I am still investigating.

The mesh is tetra based with one region and a prism layer around the cylinder. From wikki site I saw that 1.6-ext has some extra capabilities over 1.7.

Quote:
FUNDAMENTAL DEVELOPMENTS
Improvements in accuracy and stability on tetrahedral and tet-dominant meshes
http://www.wikki.co.uk/

Regards,

Guilherme da Silva
aerothermal is offline   Reply With Quote

Old   February 16, 2011, 14:54
Default
  #34
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Yes, but that only applies if you use reconCentral scheme, at least in my understanding.

Anyway, if you find something, please let us know! :-)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   February 16, 2011, 16:34
Default
  #35
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by ptbs View Post
Hi Alberto

Here it is. I follow your suggestion and place a complete case very similar in boundary conditions as the one I try to solve, and run it Sunday evening. This case presents all the typical behavior I mentioned previously. Here I have also reduced p relaxation factor down to 0.0025, and even like that it is still unstable. The dropBox links to get the full solved problem is http://dl.dropbox.com/u/21252587/14cfdtest.tar.gz (Sorry for the size of the full simulation ~1.4GB, I think it is better you get all to understand). I used RhoPorousSimpleFoam because I finally want to use the porous element I place in the middle part, but for the moment (to simplify) the Darcy parameters are so low that they do not influence. Moreover, I never see instability from that porous area.

Have a look with paraFoam making a slice at middle XZ plane. The exhaust pipe show very clear instability with time (like waves) that I can really not understand. In my other models these sudden instabilities sometimes happen in the larger inlet pipe during transition regime, although I am very far from my Mach 1 objective at the outlet section ( I wish to decrease progressively the outlet pressure to force the simulation to reach M1 at the outlet pipe).

From what I read, description of problem from other participant to this forum are sometimes similar.

Could you help us?

Many Thanks
The instability seems induced by the outlet condition. Check it.

The under-relaxation factors do not make much sense to me. You relax way too much the pressure, and way too little the density. Better values:

rho - 0.05
p - 0.3

The minimum bound on pressure is too close to the value at the outlet (iterations might trigger bounding too easily).

Also, are pressures set to physical values? 120 Pa?

Additionally, use leastSquares for gradients computation:

Code:
    
default         cellLimited leastSquares 1;
grad(p)         leastSquares;
It gives more accurate results on arbitrary grids.

Finally, do you work with a modified version of the solver? Your fvSolution has a nUCorrectors, while the correct syntax in rhoPorousSimpleFoam is nCorrectors.

Best,
lpz456 likes this.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   February 16, 2011, 17:11
Default
  #36
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 118
Rep Power: 15
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
One thing that helped a lot was to mirror the mesh.
In case of cylinder I mirrored it at mid plane from top to bottom.
So the numerical disturbances did not cause any further symmetry issues.
aerothermal is offline   Reply With Quote

Old   February 16, 2011, 17:19
Default
  #37
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Hi, in Patty's case the mesh seems OK. I run the for a while, and the solution is smooth. Instabilities originate from the outlet (meaning they probably depend on some physical element not set properly), but that I cannot know for sure since we do not know the details of physical problem.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   February 16, 2011, 17:44
Default
  #38
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 118
Rep Power: 15
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
OK. I am downloading it now to take a look.
aerothermal is offline   Reply With Quote

Old   February 17, 2011, 02:18
Default
  #39
New Member
 
Patty
Join Date: Sep 2010
Posts: 13
Rep Power: 15
ptbs is on a distinguished road
Quote:
Originally Posted by alberto View Post
Hi, in Patty's case the mesh seems OK. I run the for a while, and the solution is smooth. Instabilities originate from the outlet (meaning they probably depend on some physical element not set properly), but that I cannot know for sure since we do not know the details of physical problem.
Many thanks to all of you Alberto and Aerotherm.
I will have a look at your comments and I am very interested hearing even more from you if you make some more tests on this case.

Concerning the physical problem, the case I gave is just an illustrative way to show you the instability I have in my study, as such no real meaning excepted I need very low pressure i.e. very low density. For a more practical case (I can not describe) just imagine that you want to homogenize a pressure and a flux (thanks to the porous part not yet used) before an exit which is at such a low pressure that you reach sonic speed... In this test case, I take air at room temperature.

Concerning the solver, as seen in the submitted case files, I use openFoam.1.7.1 as downloaded from official site released in June 2010. I did it this classical way under a Ubuntu-Linux terminal:
1) echo "deb http://www.openfoam.com/download/ubuntu lucid main" >> /etc/apt/sources.list
2) apt-get update
3) apt-get install openfoam171

Best regards

Last edited by ptbs; February 17, 2011 at 02:35.
ptbs is offline   Reply With Quote

Old   February 17, 2011, 02:34
Default
  #40
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by ptbs View Post
Concerning the physical problem, the case I gave is just an illustrative way to show you the instability I have in my study, as such no real meaning. For a more practical case (I can not describe) just imagine that you want to homogenize a pressure and a flux (thanks to the porous part not yet used) before an exit which is at such a low pressure that you reach sonic speed... In this test case, I take air at room temperature.
There seem to be no problem with the mesh, so I would simply turn on the porous zone, and consider the actual flow conditions.

You are going to have a sort of wave reflection at the outlet I think. Maybe you want to give a try to waveTransmissive BC's and an unsteady run (rhoPisoFoam, rhoPimpleFoam).

Quote:
Concerning the solver, as seen in the submitted case files, I use openFoam.1.7.1 as downloaded from official site released in June 2010.
Then your fvSolution has a typo (see my comment).

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto 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
BC for rhoSimpleFoam uli_u OpenFOAM Running, Solving & CFD 77 April 4, 2013 11:28
RhoSimpleFoam maritozzo OpenFOAM Running, Solving & CFD 1 April 30, 2010 18:18
RhoSimpleFoam jphandrigan OpenFOAM Running, Solving & CFD 18 March 29, 2009 11:05
RhoSimpleFoam negative pressure gzink OpenFOAM Running, Solving & CFD 10 June 4, 2007 05:35
RhoSimpleFoam luca OpenFOAM Running, Solving & CFD 0 August 22, 2005 12:26


All times are GMT -4. The time now is 11:13.