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

Pressure instability with rhoSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Chris Lucas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2011, 09:13
Default Pressure instability with rhoSimpleFoam
  #1
New Member
 
Philipp Hofemeier
Join Date: Sep 2011
Location: Freiberg, Germany
Posts: 7
Rep Power: 15
philipp. is on a distinguished road
Dear all,


for my diploma thesis I am simulating a subsonic flow (Ma = 0.5) through a convergent divergent (De Laval) nozzle. For this purpose I choose to use the rhoSimpleFoam solver in OF 1.7.1. It works fine with some meshes. But on others it is not converging.


To me it appears as if it is due to the aspect ratio for the cells. To show this I uploaded two identical cases. One has a high aspect ratio (a low resolution in flow direction → see the blockMeshDict). This mesh works fine and gives a good solution in comparison to theoretical calculations (http://dl.dropbox.com/u/24363809/Lav...soltion.tar.gz).
The other has a low aspect ratio which means a high resolution in stream direction (http://dl.dropbox.com/u/24363809/Lav...soltion.tar.gz). Surprisingly this mesh does not converge although the mesh resolution is higher. The results show that the temperature and the velocity are quite stable and only the pressure is oscillating (as seen in the case folder).
Besides the mesh the cases are completely identical. In order to solve the problem I tried several measures:


  • change of the discretization methods to limited, higher order schemes
  • change of the boundary and initial conditions
  • nonOrthogonalCorrectiors from 0 up to 10
  • I used the k-Epsilon and the k-Omega model
  • change of the relaxation factors


Non of these measures could stabilize the solution. All in all I would be grateful if somebody could help me solve the problem or explain why the rhoSimpleFoam solver cannot converge on the mesh with higher resolution.
Furthermore, I would like to know if anybody ever used the rhoSimpleFoam solver on a tetrahedral mesh. Since I ran some calculation on different tetra meshes and all of them did not converge.


Thanks for your help!


Philipp
philipp. is offline   Reply With Quote

Old   October 3, 2011, 02:43
Lightbulb
  #2
Member
 
kiran Ambilpur
Join Date: Jun 2010
Location: India
Posts: 50
Rep Power: 16
kiran is on a distinguished road
Send a message via Skype™ to kiran
Hi phillip

use SonicFoam solver instead of rhosimplefoam.

all we require is a compressible and turbulent solver.

I fell like u will not get any issues with this solver

Regards
Kiran Ambilpur
kiran is offline   Reply With Quote

Old   October 3, 2011, 07:10
Default
  #3
New Member
 
Philipp Hofemeier
Join Date: Sep 2011
Location: Freiberg, Germany
Posts: 7
Rep Power: 15
philipp. is on a distinguished road
Hello Kiran!

Thanks for your reply. However, to me the sonicFoam solver seems not to be the right solver for my problem. When you check the user guide it says that the sonicFoam is a "Transient solver for trans-sonic/supersonic, laminar or turbulent flow of a compressible gas". But I got a subsonic (and steady) problem to solve. Anyway, I will try it and let you know about my results.

Philipp
philipp. is offline   Reply With Quote

Old   October 4, 2011, 14:22
Default
  #4
New Member
 
Philipp Hofemeier
Join Date: Sep 2011
Location: Freiberg, Germany
Posts: 7
Rep Power: 15
philipp. is on a distinguished road
Hi,

I tried the sonicFoam solver. By initialising "good" (fully converged) initial conditions the solver gives good results otherwise the solver needs long time to stabilize. However, the performance is not very good since I only need the steady state solution. Additionally, isn't sonicFoam an inviscid solver? For further applications I need to use a viscid solver.

Has anybody some more experience with rhoSimpleFoam, especially on tetrahedral meshes?

Regards, Philipp
philipp. is offline   Reply With Quote

Old   October 5, 2011, 03:56
Post
  #5
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18
Chris Lucas is on a distinguished road
Hi

it will be difficult getting a solution using a steady state solver for your problem. So my suggestion, don't spend more time on rhoSimpleFoam.

About sonicFoam, I see no reason against this solver. You might want to consider changing the energy equation to a total energy equation, might increase stability.

http://www.cfd-online.com/Forums/ope...-equation.html

If your simulations are too slow, try rhoPimpleFoam, but have a look at the continuity error and mass imbalance in your system. You should not relax the density and, in the last internal iteration, the pressure.

About some of the points in your first post:

"change of the discretization methods to limited, higher order schemes"
--> use upwind!

"nonOrthogonalCorrectiors from 0 up to 10"
--> Do you have a strongly nonOrthogonal grid? If not, you don't need so many nonOrthogonalCorrectiors


Best Regards,
Christian



mm.abdollahzadeh likes this.
Chris Lucas is offline   Reply With Quote

Old   October 5, 2011, 15:08
Default
  #6
New Member
 
Phil
Join Date: Mar 2011
Location: West Des Moines, Iowa, U.S.A.
Posts: 17
Rep Power: 15
peob is on a distinguished road
Philipp,

I took your Laval-fineResolution case and ran it with version-2.0.1.
I was able to repeat the same behavior you observed.

Then I dropped the relaxation factor on "rho" from 0.05 down to 0.01, and the solution converged. Note that I didn't change anything other than the relaxation factor for "rho".

I've attached the fvSolution file and an image showing the convergence I obtained.

I also tried to increase the relaxation factor on "rho" after it converged, and the residuals rose right back up to what you were observing with "rho 0.05;".

I have no idea why the relaxation factor for "rho" should be so low... especially after the solution converges.

Phil
Attached Images
File Type: jpg Laval-fineResolution.jpg (64.5 KB, 250 views)
Attached Files
File Type: txt fvSolution.txt (1.7 KB, 171 views)
peob is offline   Reply With Quote

Old   October 6, 2011, 10:44
Default
  #7
New Member
 
Philipp Hofemeier
Join Date: Sep 2011
Location: Freiberg, Germany
Posts: 7
Rep Power: 15
philipp. is on a distinguished road
Hey Phil,

I also observed the same behavior when I initialized a converged solution. But with a relaxation factor of 0.01 for rho seems to work well even on a tetra mesh! When I was playing with the relaxation factors I just changed the factors for p and U .
So thank you very much!

Regards, Philipp
philipp. is offline   Reply With Quote

Old   July 27, 2015, 10:31
Default
  #8
Member
 
Christa
Join Date: Apr 2011
Posts: 53
Rep Power: 15
user_of_cfx is on a distinguished road
Quote:
Originally Posted by Chris Lucas View Post
Hi

If your simulations are too slow, try rhoPimpleFoam, but have a look at the continuity error and mass imbalance in your system. You should not relax the density and, in the last internal iteration, the pressure.

Hi Christian,

I am struggling with rhoPimpleFoam at the moment, my pressure specifically will not converge (sum local = ~ 0.6) after trying several mesh resolutions, boundary conditions, fvSchemes and fvSolutions adjusted based on advice in this forum (mostly Gauss upwind schemes with GAMG solver for pressure), and the results I output before the simulation crashes look funny. I am very new to OpenFOAM and any advice (or directing me to another post on this forum I may have missed?) on things to look out for when using rhoPimpleFoam will be greatly appreciated.

I am not posting my problem just yet because I know for a fact I have not tried everything yet. I am only looking for general tips.

Thanks,

Christa
user_of_cfx is offline   Reply With Quote

Old   October 27, 2016, 03:23
Default
  #9
New Member
 
Harshal Akolekar
Join Date: Aug 2016
Location: Melbourne
Posts: 25
Rep Power: 10
hakolekar is on a distinguished road
Hi Phil,

Thanks for your tip.

My simulation with rhoSimpleFoam was also behaving strangely - oscillating.
However, on reducing the residual of rho from 0.05 to 0.01 - the solution is converging.

Regards,
Harshal
hakolekar is offline   Reply With Quote

Old   October 29, 2016, 07:51
Default
  #10
New Member
 
Bo Kong
Join Date: Oct 2016
Location: China
Posts: 22
Rep Power: 10
huangfei is on a distinguished road
Hi phillip,
I also use rhoSimpleFoam to simulate a tansonic flow in a CD nozzel. But I meet some problems that an error reported:

Maximum number of iterations exceeded


I want to download your case file for help, but I cann't link the website you upload your file. Because the website is blocked... you know ,I am in China.
So could send your case file to my mail:344500390@qq.com.
Thanks!
huangfei is offline   Reply With Quote

Old   October 30, 2016, 00:31
Default
  #11
New Member
 
Harshal Akolekar
Join Date: Aug 2016
Location: Melbourne
Posts: 25
Rep Power: 10
hakolekar is on a distinguished road
Hi Huangfei,

Make sure that all the equation variables have a relaxation factor defined for them.'

This could be one of the issues.

Please check it out.

Regards,
Harshal
hakolekar is offline   Reply With Quote

Old   October 30, 2016, 00:34
Default
  #12
New Member
 
Harshal Akolekar
Join Date: Aug 2016
Location: Melbourne
Posts: 25
Rep Power: 10
hakolekar is on a distinguished road
Hi Bo,

Please ensure that all the variables including h and e have relaxation factors defined for them in the fvSolutions file.

Also check your BCs - make sure you are using stagation pressure BCs.

Please check it out.

Regards,
Harshal
hakolekar is offline   Reply With Quote

Old   October 30, 2016, 02:05
Default
  #13
New Member
 
Bo Kong
Join Date: Oct 2016
Location: China
Posts: 22
Rep Power: 10
huangfei is on a distinguished road
Hi Harshal,
Thanks for your reply. I solve that problem by revising the BC. But a new problem occurs. The residual of p is oscillating seriously after several iterations. Could you give some advice on this problem?
huangfei is offline   Reply With Quote

Old   October 30, 2016, 04:39
Default
  #14
New Member
 
Harshal Akolekar
Join Date: Aug 2016
Location: Melbourne
Posts: 25
Rep Power: 10
hakolekar is on a distinguished road
Hi Bo,

What is the relaxation factor of rho.
Make it around 0.01.

I was also experiencing a similar problem.

I reduced the relaxation factor of rho from 0.05 to 0.01 - everything converged quite well after that.

The pressure field also stopped oscillating.

Hope it helps.
Regards,
Harshal
hakolekar is offline   Reply With Quote

Reply

Tags
compressible flow, laval nozzel, rhosimplefoam, tetra mesh


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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
Pulsatile pressure inlet with pressure outlet a.lynchy FLUENT 3 March 23, 2012 14:45
Problem with rhoSimpleFoam : exploding enthalpy and density at the walls david39 OpenFOAM Running, Solving & CFD 6 January 18, 2011 12:49
Pressure in rhoSimpleFoam vitor OpenFOAM Running, Solving & CFD 2 September 16, 2010 12:49
Setting pressure and velocity in inlet Asghari FLUENT 5 September 22, 2006 14:23


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