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

A problem of incorrect fluid flow field using Openfoam

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2017, 01:08
Default A problem of incorrect fluid flow field using Openfoam
  #1
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Dear all,

I'm a new Foamer, and currently learning how to use it. And now I have a very confusing problem.

My model is simple, just a planar jet flow. Which is showed in figure 1, the gas inlet flow velocity is higher in the middle, and lower in the sides. But I can only get this correct flow field using icoFoam, when I use other solvers, like pimpleFoam, pisoFoam, reactingparcelfoam, etc., the flow field will be wavering, as is shown in Figure 2. The gravity is zero, and the flow field is wavering from up and down, not just one side.

Can anybody tell me why? and how to fix this? I can't just use icoFoam, because it's only for laminar flow, and cant do anything else.

Many thanks.

Maria
Attached Images
File Type: png 1.PNG (22.7 KB, 58 views)
File Type: png 2.PNG (42.3 KB, 59 views)

Last edited by marialhm; June 7, 2017 at 01:10. Reason: supplement
marialhm is offline   Reply With Quote

Old   June 7, 2017, 03:25
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
This is likely due to an interaction of the jet and the walls. If you want to simulate a free jet, consider making the domain wider. You could also compare the results of pimpleFoam, when using a RAS-type turbulence model and an LES-type turbulence model.
GerhardHolzinger is offline   Reply With Quote

Old   June 7, 2017, 10:28
Default
  #3
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
The second result seems to be unplausible, but it is realistic. If a wall comes near a flow, the wall creates some kind of suctions which moves the flow toward the wall. A tiny irregularity starts that process.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   June 7, 2017, 23:21
Default
  #4
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by GerhardHolzinger View Post
This is likely due to an interaction of the jet and the walls. If you want to simulate a free jet, consider making the domain wider. You could also compare the results of pimpleFoam, when using a RAS-type turbulence model and an LES-type turbulence model.
Thanks, I will try to make the domain wider.
marialhm is offline   Reply With Quote

Old   June 7, 2017, 23:22
Default
  #5
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by piu58 View Post
The second result seems to be unplausible, but it is realistic. If a wall comes near a flow, the wall creates some kind of suctions which moves the flow toward the wall. A tiny irregularity starts that process.
Thanks for your explanation, it makes sense to me. But the result from Fluent doesn't have this phenomenon, do you know why?

Maria
marialhm is offline   Reply With Quote

Old   June 7, 2017, 23:51
Default
  #6
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,290
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by marialhm View Post
Thanks for your explanation, it makes sense to me. But the result from Fluent doesn't have this phenomenon, do you know why?

Maria

What pressure interpolation you have for Fluent?
arjun is offline   Reply With Quote

Old   June 7, 2017, 23:57
Default
  #7
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by arjun View Post
What pressure interpolation you have for Fluent?
Hi, I chose PISO.
marialhm is offline   Reply With Quote

Old   June 8, 2017, 01:46
Default
  #8
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,290
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by marialhm View Post
Hi, I chose PISO.

PISO is not pressure interpolation. It seems you did not make any changes to it, so that means you have standard pressure interpolation if it was old version of fluent and second order central if it is new fluent.

The pressure interpolation differences could cause what you are seeing.
arjun is offline   Reply With Quote

Old   June 8, 2017, 05:30
Default
  #9
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by arjun View Post
PISO is not pressure interpolation. It seems you did not make any changes to it, so that means you have standard pressure interpolation if it was old version of fluent and second order central if it is new fluent.

The pressure interpolation differences could cause what you are seeing.
Oh, is that the reason? but I think in Openfoam, I also use the default setup, and the second order.
marialhm is offline   Reply With Quote

Old   June 8, 2017, 08:46
Default
  #10
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi all,

@marialhm

I think it would be MUCH easier if you disclose your geometry, mesh, boundary conditions, schemes, linear solvers, convergence criteria used. Right now, people are trying to explain why the second picture is possible, while simpler answer could be: "your simulation does not converge". And for icoFoam it could be just lucky coincidence.
alexeym is offline   Reply With Quote

Old   June 8, 2017, 09:23
Default
  #11
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi all,

@marialhm

I think it would be MUCH easier if you disclose your geometry, mesh, boundary conditions, schemes, linear solvers, convergence criteria used. Right now, people are trying to explain why the second picture is possible, while simpler answer could be: "your simulation does not converge". And for icoFoam it could be just lucky coincidence.
Please see figure 3 for the model, and the files of fvScheme and fvSolution are in figure 4 and 5. Please give your suggestions, thanks!

Regards,

Maria
Attached Images
File Type: png 3.PNG (4.2 KB, 29 views)
File Type: png 4.PNG (52.3 KB, 28 views)
marialhm is offline   Reply With Quote

Old   June 8, 2017, 09:25
Default
  #12
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi all,

@marialhm

I think it would be MUCH easier if you disclose your geometry, mesh, boundary conditions, schemes, linear solvers, convergence criteria used. Right now, people are trying to explain why the second picture is possible, while simpler answer could be: "your simulation does not converge". And for icoFoam it could be just lucky coincidence.
following is figure 5.
Attached Images
File Type: png 5.PNG (38.3 KB, 22 views)
marialhm is offline   Reply With Quote

Old   June 8, 2017, 09:57
Default
  #13
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
You have hidden the most interesting thing: PIMPLE dictionary in fvSolutions (can't you just post gzipped files?). Also boundary conditions are missing or should we assume, you use "standard" ones?.
alexeym is offline   Reply With Quote

Old   June 8, 2017, 10:05
Default
  #14
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by alexeym View Post
You have hidden the most interesting thing: PIMPLE dictionary in fvSolutions (can't you just post gzipped files?). Also boundary conditions are missing or should we assume, you use "standard" ones?.
Pimple dictionary is,

nNonOrthogonalCorrectors 0;
nCorrectors 2;

Boundary conditions for U is in figure 3. For P, it's fixed value in outlet, and others are zeroGradient.

Acturally I tried several cases, different cases may have small differences. but almost all of them have wavering flow field.

Thanks again.

Maria
marialhm is offline   Reply With Quote

Old   June 8, 2017, 10:13
Default
  #15
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
So, basically, you do not check convergence, use GAMG solver and limitedLinear scheme. Do you adjust time step? What is your Courant number? Did you try with PCG instead of GAMG? Did you try to check for convergence (using residualControl)? Did you try other discretisation schemes?
alexeym is offline   Reply With Quote

Old   June 8, 2017, 10:21
Default
  #16
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by alexeym View Post
So, basically, you do not check convergence, use GAMG solver and limitedLinear scheme. Do you adjust time step? What is your Courant number? Did you try with PCG instead of GAMG? Did you try to check for convergence (using residualControl)? Did you try other discretisation schemes?
The maximum Co is 0.5~1, I changed limitedlinear scheme into upwind, but didnt change GAMG, maybe I should.
marialhm is offline   Reply With Quote

Old   June 8, 2017, 10:31
Default
  #17
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Maybe you could also post domain sizes? So people can at least try to reproduce your behaviour.

I do not believe single GAMG -> PCG change will solve your problem. Though it can postpone start of the oscillations (like it does in case of von Karman vortex street).
alexeym is offline   Reply With Quote

Old   June 8, 2017, 10:34
Default
  #18
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Maybe you could also post domain sizes? So people can at least try to reproduce your behaviour.

I do not believe single GAMG -> PCG change will solve your problem. Though it can postpone start of the oscillations (like it does in case of von Karman vortex street).
domain size:
x length: 2m
y:0.45m
injection width: 0.01m

Thanks.

Last edited by marialhm; June 8, 2017 at 10:34. Reason: wrong information
marialhm is offline   Reply With Quote

Old   June 8, 2017, 23:54
Default
  #19
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Hi all,

I think it's not the problem of settings, but it's the reality. @Uwe Pilz is right.

But the problem is, how can I set up to avoid this phenomenon? I tried outlet boundaries for the bottom and top, but the results are still not satisfactory.

Thanks in advance.

Maria
marialhm is offline   Reply With Quote

Old   June 9, 2017, 06:24
Default
  #20
New Member
 
Diego Ferrando
Join Date: Mar 2017
Location: Zaragoza
Posts: 19
Rep Power: 9
dferrando is on a distinguished road
You could try with symmetry boundary condition.
dferrando 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
Setting time varying flow field in OpenFOAM Tings_ OpenFOAM Pre-Processing 5 May 8, 2017 11:21
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
Fluid Flow over a bus -- Convergence Problem Roberto J. STAR-CCM+ 2 May 12, 2016 14:05
Problem with an old Simulation FrankW CFX 3 February 8, 2016 05:28
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 16:25.