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

Convergence problem with flow facing a backstep

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2013, 18:42
Default Convergence problem with flow facing a backstep (case files now attached)
  #1
Member
 
David
Join Date: Aug 2012
Posts: 48
Rep Power: 14
GM_XIII is on a distinguished road
I am starting with OpenFoam so this can be a silly question. I have experience with other CFD programs but i decide to start learning OpenFoam.

Problem data: Incompressible airfoil facing a backstep, Steady, I am using the icoFoam solver.

I have convergence problems as the Courant goes up as the residuals.

Feel free to ask for further information and thanks in advance.
Attached Files
File Type: zip backstep.zip (10.9 KB, 14 views)

Last edited by GM_XIII; January 20, 2013 at 16:17. Reason: Attach case files
GM_XIII is offline   Reply With Quote

Old   January 22, 2013, 00:23
Default
  #2
Member
 
Eric Robertson
Join Date: Jul 2012
Posts: 95
Rep Power: 15
msuaeronautics is on a distinguished road
Can we see your output file?
msuaeronautics is offline   Reply With Quote

Old   January 22, 2013, 06:10
Default
  #3
New Member
 
Max Meinicke
Join Date: Jul 2012
Posts: 6
Rep Power: 14
maxmeinicke is on a distinguished road
Hi,

icoFoam is a transient solver. You can identify that under:

<OPENFOAM_DIR>/applications/solvers/incompressible/icoFoam/icoFoam.C line 58 (OF-2.1.x)

fvm::ddt(U) -> transient

So you must not set steadyState ddtSchemes in system/fvSchemes. For example: use full implicit Euler scheme.

Search the following folder for all available ddtSchemes:

<OPENFOAM_DIR>/src/finiteVolume/finiteVolume/ddtSchemes

To identify their name for fvSchemes, have a look into their header files (*.H). Search for the string in TypeName. That's what you can put into fvSchemes.

Example:

EulerDdtScheme.H

->

line 71 (OF-2.1.x):

TypeName("Euler");

->

ddtSchemes
{
default Euler;
}
maxmeinicke is offline   Reply With Quote

Old   January 22, 2013, 09:02
Default
  #4
Member
 
David
Join Date: Aug 2012
Posts: 48
Rep Power: 14
GM_XIII is on a distinguished road
Thank you, I thought that a transient solver could manage steady cases with that fvShemes, my fault of couse. I would like to do it Steady becouse if i do it transient i need to set a very low time step in order to keep the coutant number low. So, what's the best solver to solve this case as Steady?
GM_XIII is offline   Reply With Quote

Old   January 22, 2013, 10:29
Default
  #5
New Member
 
Max Meinicke
Join Date: Jul 2012
Posts: 6
Rep Power: 14
maxmeinicke is on a distinguished road
Use simpleFoam. It has the following properties:

- steady state
  • no fvm::ddt in UEqn.H, which means
  • ddt == 0
- incompressible
  • rho == constant, not solving for rho
  • pressure p is not the real pressure in [N/m2], but it is p / rho [m2/s2]
- time step
  • important: it does not matter which deltaT you select; as best you select dT = 1s
  • convergence is reached with relaxation factors in fvSolution
maxmeinicke is offline   Reply With Quote

Old   January 22, 2013, 11:24
Default
  #6
Member
 
Aathavan
Join Date: Nov 2012
Posts: 70
Rep Power: 14
Aadhavan is on a distinguished road
Hi Maxmeinicke,
I have a small silly question,

[ pressure p is not the real pressure in [N/m2], but it is p / rho [m2/s2] ]

according your post, to get the real pressure in [N/m2], what should we do?

how to convert the simpleFoam simulation pressure in to real pressure????

I am bit confused by the unit of (p/rho ---> m2/s2), can you please explain about it?


Thanks,
Aadhavan
Aadhavan is offline   Reply With Quote

Old   January 22, 2013, 11:45
Default
  #7
Member
 
David
Join Date: Aug 2012
Posts: 48
Rep Power: 14
GM_XIII is on a distinguished road
Thank you mate, I finally did it I haven't realised that you could use a turbulent solver and then specify that the case is laminar. Now it is done, I will upload the case files in case someone could be interested.
GM_XIII is offline   Reply With Quote

Old   January 22, 2013, 14:22
Default
  #8
New Member
 
Max Meinicke
Join Date: Jul 2012
Posts: 6
Rep Power: 14
maxmeinicke is on a distinguished road
Congratulations to you

unit calculation:

compressible:

p = F / A = N / m2 = kg * m / s2 / m2 = kg / m / s2

OpenFOAM notation: 'dimensions [1 -1 -2 0 0 0 0];'

incompressible:

p / rho = F / A / rho = N / m2 / (kg / m3) = kg * m / s2 / m2 / (kg / m3) = m2 / s2

OpenFOAM notation: 'dimensions [0 2 -2 0 0 0 0];'

Have a look into the pressure boundary files in time folder 0 for incompressible and compressible tutorial cases.

unit explanation:

In OpenFOAM basic solvers, 'incompressible' means constant density and 'compressible' means the density varies. So in compressible solvers a density transport equation is solved (rhoEqn). If the density is constant, you can divide all terms in the transport equations by the density. You will find out that the density is removed from all terms except the pressure term and the viscosity term. That is why with compressible and incompressible solvers one must be careful with units.

compressible uses:
  • pressure p [Pa]
  • dynamic viscosity mu (greek letter) [kg / m / s]
incompressible uses:
  • pressure p which is actually p / rho [m2 / s2]
  • kinematic viscosity nu (greek letter) [m2 / s]
Connection between units:

p_compr = p_incompr * rho
mu_compr = nu_incompr * rho

As you can see, the units scale with rho. So if you calculate water, mu is 1000 times larger than nu.

To calculate the real pressure for an incompressible solver, multiply with the density. If I would like to write the real pressure to the timefolders, I would derive a new solver and add a new volScalarField p_real.

If someone knows, how to manage writing the real pressure for incompressible solvers to time folders using functions and without creating a new solver, please let us know.

If you have more questions, please ask.

which OF version do you use?

Last edited by maxmeinicke; January 23, 2013 at 05:07. Reason: corrections
maxmeinicke is offline   Reply With Quote

Old   January 23, 2013, 03:47
Default
  #9
Member
 
Aathavan
Join Date: Nov 2012
Posts: 70
Rep Power: 14
Aadhavan is on a distinguished road
Hi,
Thanks for your long reply, I am using OF-2.0.1.

small correction your explanation,

pressure p which is actually p / rho [m2 / m2],

this should be (m2/s2).


Thanks,
Aadhavan
Aadhavan is offline   Reply With Quote

Old   January 23, 2013, 06:52
Default
  #10
New Member
 
Max Meinicke
Join Date: Jul 2012
Posts: 6
Rep Power: 14
maxmeinicke is on a distinguished road
I've created a new solver simpleFoam2.

It is derived from simpleFoam and outputs the real pressure pReal.

just extract the file and read the README...
Attached Files
File Type: gz simpleFoam2.git.tar.gz (48.3 KB, 5 views)
maxmeinicke is offline   Reply With Quote

Old   January 28, 2013, 22:54
Default
  #11
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
Hi, this paper is useful

http://www.cimec.org.ar/ojs/index.ph...File/3263/3186

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   January 29, 2013, 02:43
Default
  #12
Member
 
Aathavan
Join Date: Nov 2012
Posts: 70
Rep Power: 14
Aadhavan is on a distinguished road
Hi Santiag,
Can you please say something about it. I tried to look at it but I am not able.
It seems it is in French or some other language.
is there any English version.


Thanks,
Aadhavan
Aadhavan is offline   Reply With Quote

Old   January 29, 2013, 04:16
Default
  #13
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
I opened Santiago's link and got an English PDF.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   March 26, 2014, 03:55
Default
  #14
Member
 
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13
CFDUser_ is on a distinguished road
Quote:
Originally Posted by GM_XIII View Post
Thank you mate, I finally did it I haven't realised that you could use a turbulent solver and then specify that the case is laminar. Now it is done, I will upload the case files in case someone could be interested.
can you tel me the boundary conditions for this problem.
I also would like to see your result, may be velocity contort is quiet enough. can you post here?
CFDUser_ is offline   Reply With Quote

Old   March 27, 2014, 04:56
Default
  #15
Member
 
David
Join Date: Aug 2012
Posts: 48
Rep Power: 14
GM_XIII is on a distinguished road
Quote:
Originally Posted by CFDUser_ View Post
can you tel me the boundary conditions for this problem.
I also would like to see your result, may be velocity contort is quiet enough. can you post here?
It is my mot have uploaded it when i finished it, now it would be hard to find it but if i do i will upload it. By the way, i think i might not change the BC of my initial case, which is uploaded. I. Think i use velocity inlet+ presure outlet (0 pressure).

Regards
GM_XIII 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
Modeling unsteady multiphase flow in porous media - convergence problem Vaibhav Kumar Main CFD Forum 1 July 22, 2012 05:32
transient, impregnating flow problem fgommer FLUENT 0 February 29, 2012 17:10
simpleFoam convergence problems for pipe flow problem Mike Graham OpenFOAM Running, Solving & CFD 0 January 30, 2012 15:40
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


All times are GMT -4. The time now is 07:54.