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

Swirl flow convergence problem with simpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2012, 09:21
Default Swirl flow convergence problem with simpleFoam
  #1
New Member
 
Sohail
Join Date: Mar 2012
Posts: 11
Rep Power: 14
iqbalsk8 is on a distinguished road
Hello All,

I am running a 3d swirl flow case with Openfoam and Fluent.
I am using simpleFoam as solver with kOmegaSST turbulence model. I got a converged solution with ANSYS Fluent 14.0 but the solution with OpenFoam is not converging...
i.e. the residual is oscillating and the flow field doesnot converge to a single solution.

I have tried to summarize my case details.
The geometry has two inlets. A snapshot of the geometry(cut from the middle) is given in the link below.
(attachment...)

The Discretization and solver settings used in Openfoam are
http://dl.dropbox.com/u/112049945/fvSchemes
http://dl.dropbox.com/u/112049945/fvSolution

The checkMesh log, boundary conditions at 0 are included in BC folder. See attachment...

Openfoam and Fluent solutions are shown in attachments. see snapshots...
Any comments, suggestions to get the converged soltion with OpenFOAM and about modelling swirling flows would be welcomed.

You can view the snapshots in the attachments also.

Best regards,
Sohail Iqbal
Attached Images
File Type: jpg snapshot2.jpg (62.6 KB, 178 views)
File Type: jpg snapshot3.jpg (19.4 KB, 202 views)
File Type: jpg snapshot4.jpg (19.5 KB, 174 views)
File Type: png snapshot5.png (39.1 KB, 169 views)
Attached Files
File Type: zip BC.zip (5.6 KB, 62 views)

Last edited by iqbalsk8; October 10, 2012 at 11:47. Reason: links not working
iqbalsk8 is offline   Reply With Quote

Old   October 10, 2012, 10:11
Default
  #2
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 your links are not working, you need to use public link if using dropbox.

I think you need to look at the choice of divScheme in the fvSchemes file.
Using upwind could maybe give you a more stable solution but difficult to say since I cant see the files,

Also I think the reason you get bad convergence could be that the problem is physically transient. So the swirling component could change location/direction/magnitude. This is a very common picture if you think its steady but in reality is transient.

The reason why Fluent gives a steady solution could be the choice of scheme and/or relaxation factors and limiters that you aren't aware of.

PS. Increasing the outlet length could also help or setting the right BC on the outlet, but again cant see your files.
__________________
Linnemann

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

Old   October 10, 2012, 10:58
Default links working now
  #3
New Member
 
Sohail
Join Date: Mar 2012
Posts: 11
Rep Power: 14
iqbalsk8 is on a distinguished road
First of all thank you for replying.

I was using dropbox for the first time so didnot know how to make links public.

But I dont know why the some links are not working. I have attached the folder containing
boundary condition files and log files.

My main confusion is how the solution converged with Fluent and not with Openfoam.
If it is a transient flow then it should not converge in Fluent too.

I tried to keep settings almost same in both the cases.

Sohail Iqbal
Attached Files
File Type: zip BC.zip (5.6 KB, 66 views)

Last edited by iqbalsk8; October 10, 2012 at 12:10.
iqbalsk8 is offline   Reply With Quote

Old   October 11, 2012, 06:37
Default
  #4
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:
Originally Posted by iqbalsk8 View Post
F
My main confusion is how the solution converged with Fluent and not with Openfoam.
If it is a transient flow then it should not converge in Fluent too.
Yes well this is a common mistake, since some commercial codes have hidden limiters etc that makes the solution more prone to convergence.

Foam behaves like the literature and to get the same result you need to to have the same solution strategy/setup etc.

You could try these files for fvSchemes and fvSolution, but I doubt the solution will have better convergence. Your BC setup is looking ok.

The steps I would try is to increase the outlet pipe length and next step would be to try the pimpleFoam solver and see the transient behavior of the swirl to see if it moves around etc. And use the simpleFoam data as a starting point for the transient simulation.
Attached Files
File Type: txt fvSchemes.txt (2.1 KB, 208 views)
File Type: txt fvSolution.txt (1.9 KB, 146 views)
__________________
Linnemann

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

Old   October 18, 2012, 09:34
Default Swirl flow convergence
  #5
New Member
 
Sohail
Join Date: Mar 2012
Posts: 11
Rep Power: 14
iqbalsk8 is on a distinguished road
Hello Mr. Nielsen,

I am trying to get a steady state solution with low swirl (may be 50%) of the max swirl velocity because with full swirl the flow is highly transient and it makes no sense to make a steady state solution.

So what i did is
1. First I obtained the steady state solution with zero swirl velocity.

2. Then I increased the swirl velocity step by step (10 %, 20%, 30%... of the max swirl) and tried for the steady state solution with FLUENT and OpenFOAM.


I will try with your discretization and solution settings now for convergence.

Best regards,

Sohail
iqbalsk8 is offline   Reply With Quote

Old   October 19, 2012, 03:09
Default
  #6
New Member
 
AD
Join Date: Aug 2012
Location: Japan
Posts: 4
Rep Power: 14
dinksy is on a distinguished road
Dear Sohail,
I want to carry out a similar exercise of comparing the results from OpenFOAM with that of Fluent. I am assuming that the mesh that you are using here has been was created for Fluent and converted for OpenFoam. Could you please tell me how you went about it?
Thank you in advance!
Regards
dinksy is offline   Reply With Quote

Old   October 19, 2012, 10:29
Default mesh conversion
  #7
New Member
 
Sohail
Join Date: Mar 2012
Posts: 11
Rep Power: 14
iqbalsk8 is on a distinguished road
Dear dinsky,

Converting a Fluent mesh(.msh) file to OpenFoam is straightforward.
Type

fluent3DMeshToFoam
or
fluentMeshToFoam

Check OpenFoam utilities.(Mesh conversion)
http://www.openfoam.org/docs/user/st...-utilities.php

Regards,

Sohail
iqbalsk8 is offline   Reply With Quote

Old   November 28, 2012, 01:54
Default
  #8
New Member
 
AD
Join Date: Aug 2012
Location: Japan
Posts: 4
Rep Power: 14
dinksy is on a distinguished road
Thank you for quick response and sorry for my late response.
I was able to figure it out and as you said it was quite straight forward.

Regards
Abhinav
dinksy 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
SimpleFOAM + SST-Model + problem with convergence A.Devesa OpenFOAM Running, Solving & CFD 0 November 9, 2010 05:43
Convergence problem with compressible flow S.B.J. Siemens 2 January 7, 2009 04:29
Problem with Convergence at high flow rates Syed Siemens 1 April 10, 2007 16:18
Periodic flow boundary condition problem sudha FLUENT 3 April 28, 2004 09:40
Problem on boundry of two phase flow youngan CFX 0 June 30, 2003 03:32


All times are GMT -4. The time now is 17:26.