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

compressible flow calculation error using rhoSimpleFoam solver

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By student4326
  • 1 Post By student4326
  • 1 Post By Garfield

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2010, 08:19
Default compressible flow calculation error using rhoSimpleFoam solver
  #1
New Member
 
Join Date: Jan 2010
Location: Stuttgart, Germany
Posts: 3
Rep Power: 16
student4326 is on a distinguished road
Hi,

I'm currently experimenting with the rhoSimpleFoam solver (OpenFOAM Version 1.6) for steady-state calculations. The case is a bended tube (diameter 0.047 m) with the following boundary conditions:
Inlet: flowRateInletVelocity (mass flow rate) 0.1 kg/s, T = 874 K
Walls: T = 300 K
Outlet: atmospheric pressure (p = 101325 Pa)
kEpsilon tubulence-model activated.

Please see attached files for how I set up the boundary conditions with OpenFoam.

Calculations always stop after 5-8 timesteps. I monitor an instant rise of pressure/rho.

I've tried the following modifications though without any success:

Underrelaxing rho 0.05 -> 1.0
Non Ortogonal Corrector: 0 -> 5
nCellsInCoarsestLevel 10 -> 20
Smoother: GaussSeidel -> DICGaussSeidel
Turn off of turbulent flow (kEpsilon: laminar)

When investigating the ultimate timestep I found some cells with a maximum velocity of over 15000 m/s. This would indicate a supersonic flow for which other users recommend the "Sonic" solvers.
More oddly I discouvered cells with a pressure of 1.0e07 - 1.0e09 Pa situated at the pressure outlet. It almost looks like the flow can't exit the tube.

In the next step I've reduced the mass flow by factor 10 to 0.01 kg/s and the inlet temperatur to T = 300 K (these seem to be standard values in the OpenFOAM tutorials were the usage of BC "flowRateInletVelocity" is explained -> solvers rhoPorousFoam and rhoPimpleFoam). By doing this I received a reasonably result which compares quite well with a Fluent calculation.

Next I increased the inlet temperatur. This caused higher internal flow rates (detected during postprocessing):
T_in = 473 K -> m_dot = 0.0166 kg/s
T_in = 673 K -> m_dot = 0.017 kg/s
T_in = 873 K -> m_dot = 0.0307 kg/s
To me this behaviour appears to be highly questionable as I suppose the flow rate to be constant!

Finally I played around with other compressible solver examples from the tutorial (rhoPimpleFoam and rhoPorousFoam solvers). In both solvers, an increase of the default mass flow rate from 0.01 kg/s to 0.1 kg/s resulted in an calculation error.

I would be glad to know if the boundary conditions are set up correctly.

Has anyone experience in handling compressible flow solvers, perhaps with similar BC? I would very much appreciate comments/suggestions regarding this case or/and solver.

Thanks for your help,
Sven
Attached Files
File Type: zip 0.zip (3.5 KB, 811 views)
File Type: zip constant.zip (1.0 KB, 563 views)
File Type: zip system.zip (2.4 KB, 640 views)
File Type: c log.c (6.8 KB, 245 views)
student4326 is offline   Reply With Quote

Old   February 1, 2010, 09:07
Default
  #2
New Member
 
Join Date: Jan 2010
Location: Stuttgart, Germany
Posts: 3
Rep Power: 16
student4326 is on a distinguished road
Hey,

by modifying the underrel. factors

rho 0.05 -> 0.9
p 0.3 -> 0.01

I received a convergent solution.

The odd behaviour of the internal flow rates (different inlet temp. -> different flow rates) I've detected during postprocessing with Fluent is solved as well. The internal flow rates are in fact constant! The files "phi" in the time directories returned correct flow rates on inlet and outlet. Unfortunately the Fluent report function (report -> result reports... -> surface integral -> Report type: massflow rate) didn't work correctly.

When comparing the OF with a Fluent calculation the temperature and velocity mag. results show a rather big discrepance between the Fluent and OF values. Therefore I've implemented an adiabatic wall (temperature BC for wall: zeroGradient) in both calculations in order to investigate the source of the velocity discrepancy.

Right now Fluent calculates velocities from 0 to 78 m/s. OF results range from 0 to 240 m/s (please see attachments). I hope someone can give me a hint to get to the source of this problem.
Attached Images
File Type: jpg Fluent_vel.mag.jpg (47.9 KB, 410 views)
File Type: jpg OF_vel.mag.jpg (49.9 KB, 359 views)
enginpower likes this.
student4326 is offline   Reply With Quote

Old   February 3, 2010, 02:55
Default
  #3
New Member
 
Join Date: Jan 2010
Location: Stuttgart, Germany
Posts: 3
Rep Power: 16
student4326 is on a distinguished road
Problem solved! Discrepancy due to incorrect material setup Fluent.
ck7 likes this.
student4326 is offline   Reply With Quote

Old   December 28, 2010, 00:50
Default
  #4
New Member
 
rock.senthilkumar's Avatar
 
senthilkumar.R
Join Date: Sep 2010
Location: Ranchi, India
Posts: 20
Rep Power: 16
rock.senthilkumar is on a distinguished road
Hi student ,
With reference to your post on "January 19, 2010, 18:49 " in which you quoted as ".. indicate a supersonic flow for which other users recommend the "Sonic" solvers." Kindly clear whether for supersonic flow rhoSimpleFoam (according to me it is best) is suitable or not?. Can you sugeest any "Sonic" solver for steady state supersonic flow?.Furthermore, If possible upload your constant directory with polymesh subdirectory for the above case for which uploaded 0,system,constant directory or any other case file for rhoSimpleFoam.

Quote:
Originally Posted by student4326 View Post
Hi,

I'm currently experimenting with the rhoSimpleFoam solver (OpenFOAM Version 1.6) for steady-state calculations. The case is a bended tube (diameter 0.047 m) with the following boundary conditions:
Inlet: flowRateInletVelocity (mass flow rate) 0.1 kg/s, T = 874 K
Walls: T = 300 K
Outlet: atmospheric pressure (p = 101325 Pa)
kEpsilon tubulence-model activated.

Please see attached files for how I set up the boundary conditions with OpenFoam.

Calculations always stop after 5-8 timesteps. I monitor an instant rise of pressure/rho.

I've tried the following modifications though without any success:

Underrelaxing rho 0.05 -> 1.0
Non Ortogonal Corrector: 0 -> 5
nCellsInCoarsestLevel 10 -> 20
Smoother: GaussSeidel -> DICGaussSeidel
Turn off of turbulent flow (kEpsilon: laminar)

When investigating the ultimate timestep I found some cells with a maximum velocity of over 15000 m/s. This would indicate a supersonic flow for which other users recommend the "Sonic" solvers.
More oddly I discouvered cells with a pressure of 1.0e07 - 1.0e09 Pa situated at the pressure outlet. It almost looks like the flow can't exit the tube.

In the next step I've reduced the mass flow by factor 10 to 0.01 kg/s and the inlet temperatur to T = 300 K (these seem to be standard values in the OpenFOAM tutorials were the usage of BC "flowRateInletVelocity" is explained -> solvers rhoPorousFoam and rhoPimpleFoam). By doing this I received a reasonably result which compares quite well with a Fluent calculation.

Next I increased the inlet temperatur. This caused higher internal flow rates (detected during postprocessing):
T_in = 473 K -> m_dot = 0.0166 kg/s
T_in = 673 K -> m_dot = 0.017 kg/s
T_in = 873 K -> m_dot = 0.0307 kg/s
To me this behaviour appears to be highly questionable as I suppose the flow rate to be constant!

Finally I played around with other compressible solver examples from the tutorial (rhoPimpleFoam and rhoPorousFoam solvers). In both solvers, an increase of the default mass flow rate from 0.01 kg/s to 0.1 kg/s resulted in an calculation error.

I would be glad to know if the boundary conditions are set up correctly.

Has anyone experience in handling compressible flow solvers, perhaps with similar BC? I would very much appreciate comments/suggestions regarding this case or/and solver.

Thanks for your help,
Sven
__________________
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 10, 2011, 11:13
Cool rhoSimpleFoam
  #5
New Member
 
Manish
Join Date: Feb 2011
Posts: 1
Rep Power: 0
msshah is on a distinguished road
Hey, I am also trying to solve steady, turbulent, compressible flow through a pipe using rhoSimpleFoam in OpenFOAM 1.6

I would appreciate if some body can send me a complete working tutorial.

Thanks,

Manish,
Mumbai.
msshah is offline   Reply With Quote

Old   February 9, 2012, 12:31
Default
  #6
New Member
 
Join Date: Jan 2012
Posts: 23
Rep Power: 14
Abhinay Kulkarni is on a distinguished road
Hi Manish,

Did you get the tutorial??or did you manage to solve the case??

Can you please reply if you have solved the case?? I am also trying to solve a similar case using rhoSimplecfoam.

Would be great if i could get some help.

Regards
Abhinay
Abhinay Kulkarni is offline   Reply With Quote

Old   February 10, 2012, 09:36
Default
  #7
New Member
 
Join Date: Jan 2012
Posts: 23
Rep Power: 14
Abhinay Kulkarni is on a distinguished road
Hi Sven,

I am also trying out a similar case using rhoSimplecFoam. My geometry is not a tube exactly as the inlet and outlet dia are not the same as the tube dia. I am trying to simulate a steady, compressible flow through this geometry and would be great if i get some help.

For a start Can you kindly attach your boundary file so that i get a better understanding of your case??

Regards
Abhinay
Abhinay Kulkarni is offline   Reply With Quote

Old   November 2, 2015, 11:34
Default
  #8
New Member
 
Fei
Join Date: Oct 2015
Posts: 13
Rep Power: 10
Garfield is on a distinguished road
Hi, Abhinay
How about your rhoSimplecFoam calculation, I am currently working on the simulation using rhoSimplecFoam, however, I keep meeting problems. Could you kindly attach one of your successful case so that I can study that?
Thanks a lot!
Best
Garfield
enginpower likes this.
Garfield is offline   Reply With Quote

Reply

Tags
flowrateinletvelocity, pressure, rhosimplefoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
High speed compressible flow through pipe Munni Main CFD Forum 6 December 7, 2015 11:33
About compressible flow at low mach hit Main CFD Forum 2 October 26, 2009 21:21
Solver for compressible external flow ryan_m OpenFOAM Running, Solving & CFD 3 April 7, 2008 08:18
Nonphysical flow field while using coodles solver ankgupta8um OpenFOAM Running, Solving & CFD 5 January 26, 2008 16:54
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 03:52.