CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Incompressible Solver - What does this mean?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2019, 05:23
Default Incompressible Solver - What does this mean?
  #1
Member
 
Join Date: Apr 2016
Posts: 90
Rep Power: 10
CellZone is on a distinguished road
Hello,

I am wondering what the effect of an incompressible solver is?

So I have a mass flow inlet and a pressure outlet. If I switch to an incompressible solver, the density of my ideal gas does no longer depend on pressure.

But what happens to my ideal gas formulation: p = rho *R *T

According to: https://www.sharcnet.ca/Software/Flu...ug/node332.htm my density is now calculated by an operating pressure.

1) So for each cell in my domain the navier-stokes equations are solved for velocity and pressure. But for calculating density, not the local pressure of the cell is used but the operating one in p = rho *R *T ?

2) But why can I avoid this way osciallations regarding my solution (for example air velocity).


Thank you for your explenations

Best regards
Moritz
CellZone is offline   Reply With Quote

Old   January 11, 2019, 05:57
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,772
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by CellZone View Post
Hello,

I am wondering what the effect of an incompressible solver is?

So I have a mass flow inlet and a pressure outlet. If I switch to an incompressible solver, the density of my ideal gas does no longer depend on pressure.

But what happens to my ideal gas formulation: p = rho *R *T

According to: https://www.sharcnet.ca/Software/Flu...ug/node332.htm my density is now calculated by an operating pressure.

1) So for each cell in my domain the navier-stokes equations are solved for velocity and pressure. But for calculating density, not the local pressure of the cell is used but the operating one in p = rho *R *T ?

2) But why can I avoid this way osciallations regarding my solution (for example air velocity).


Thank you for your explenations

Best regards
Moritz



Generally, we assume "incompressible" flow model when the characteristic velocity of the problem is much lower than the characteristic sound velocity. In other words dp/d rho -> Infinity, acustic waves propagate at infinite velocity.

These assumptions let the possibility that the density can vary in the momentum as function of temperature (for example introducing the Bousinnesq model for small temperature variation).

In Fluent you can set directly a constant value of the density or you can have the density depending only on T as described in your link.
FMDenaro is offline   Reply With Quote

Old   January 11, 2019, 07:24
Default
  #3
Member
 
Join Date: Apr 2016
Posts: 90
Rep Power: 10
CellZone is on a distinguished road
Thank you for your answer.

2) But why can I avoid this way osciallations regarding my solution (for example air velocity).
CellZone is offline   Reply With Quote

Old   January 11, 2019, 07:33
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,772
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by CellZone View Post
Thank you for your answer.

2) But why can I avoid this way osciallations regarding my solution (for example air velocity).



In case of low Mach flow, the full NS system is stiff since very small perturbation in the density solution can be amplified in the pressure (dp/drho >> 1) and the pressure gradient in the momentum can produce oscillations also in the velocity field. For this reason the original system is modified by the assumption that the acoustic waves have infinite velocity and the density does not depend on the pressure.

But oscillations in the solution can be just due to the onset of numerical instability for a wrong setting of the time step value.
FMDenaro is offline   Reply With Quote

Old   January 11, 2019, 10:41
Default
  #5
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Fluent still solves the compressible N-S.

All you are doing is specifying the "incompressible ideal gas law" as the equation of state for density. A more extreme example is, you can even specify a constant density.


Quote:
Originally Posted by CellZone View Post
1) So for each cell in my domain the navier-stokes equations are solved for velocity and pressure. But for calculating density, not the local pressure of the cell is used but the operating one in p = rho *R *T ?

Yes the density is fixed at the operating pressure and depends only on temperature for this specific equation of state. It's not important that this looks like an ideal gas law. For example you can specify a polynomial function of temperature if you like.

Quote:
Originally Posted by CellZone View Post

2) But why can I avoid this way osciallations regarding my solution (for example air velocity).
What oscillations you are talking about?
LuckyTran is offline   Reply With Quote

Old   January 12, 2019, 10:00
Default
  #6
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,151
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
From the math side, consider that not all incompressible solvers are actually equal.

Pressure based ones typically involve a Poisson equation for the pressure. In this case the continuity equation is actually forced to be elliptic.

Preconditioned density based solvers (of which artificial compressibility method is an example) instead retain the hyperbolic nature of the continuity equation but actually reduce the numerical speed of sound (instead of making it infinite) so that it is comparable to the flow velocity.

I don't know about compressible pressure based solvers.
sbaffini is offline   Reply With Quote

Old   January 13, 2019, 05:07
Default
  #7
Senior Member
 
Join Date: Dec 2017
Posts: 153
Rep Power: 8
AliE is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
I don't know about compressible pressure based solvers.
Hi guys, seems that you are having a lot of fun here! Nothing more to add than Paolo's and Filippo's answers Just to complete the last point, in compressbile pressure based solvers you have a very similar framework to the incompressible pressure based solver, but in the pressure-correction equation, you have an addtional hyperbolic term. Edit: the elliptic term scales as as 1/M^2 and becomes dominant for low mach flows. This feature is very appealing to adapt an existent incompressible solver and make it suitable also for compressible flows (mmmmh sooner or later I will do this jump also in my code)

Last edited by AliE; January 13, 2019 at 06:29.
AliE is offline   Reply With Quote

Old   January 13, 2019, 06:23
Default
  #8
Member
 
Join Date: Apr 2016
Posts: 90
Rep Power: 10
CellZone is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
In case of low Mach flow, the full NS system is stiff since very small perturbation in the density solution can be amplified in the pressure (dp/drho >> 1) and the pressure gradient in the momentum can produce oscillations also in the velocity field.
I am not an expert in this topic - so what do you mean by this. Yes I have a low Mach flow.
a) But why are the NS "Stiff" vor low Mach flows?
b) can you maybe explain your statement with reference to the terms of the NS-equations?

I really want to understand this.

Quote:
Originally Posted by FMDenaro View Post
For this reason the original system is modified by the assumption that the acoustic waves have infinite velocity and the density does not depend on the pressure.
How can I understand this, that in an uncompressible case (what you are talking of?) the speed of sound in infinite?
CellZone is offline   Reply With Quote

Old   January 13, 2019, 08:17
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,772
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by CellZone View Post
I am not an expert in this topic - so what do you mean by this. Yes I have a low Mach flow.
a) But why are the NS "Stiff" vor low Mach flows?
b) can you maybe explain your statement with reference to the terms of the NS-equations?

I really want to understand this.


How can I understand this, that in an uncompressible case (what you are talking of?) the speed of sound in infinite?



Low Mach means that the sound waves travel at a velocity (a) much greater than the convective one (v). When a flow problem has different characteristic scales (lenght and time) you have a stiff problem.
FMDenaro is offline   Reply With Quote

Old   January 13, 2019, 08:21
Default
  #10
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,151
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Also, as a side problem, your pressure variations become tiny with respect to the background pressure value, which can give roundoff problems
sbaffini is offline   Reply With Quote

Old   January 14, 2019, 05:34
Default
  #11
Member
 
Join Date: Apr 2016
Posts: 90
Rep Power: 10
CellZone is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
stiff problem.
What does this mean FM Denaro?

You once said

Quote:
Originally Posted by FMDenaro View Post
since very small perturbation in the density solution can be amplified in the pressure
Where can I see this in the NS- equations?
CellZone is offline   Reply With Quote

Old   January 14, 2019, 05:44
Default
  #12
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,772
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by CellZone View Post
What does this mean FM Denaro?

You once said



Where can I see this in the NS- equations?
Concerning Fluent http://www.afs.enea.it/project/neptu...th/node377.htm

but I strongly encourage you to study the general issue in good CFD texbooks
FMDenaro is offline   Reply With Quote

Old   January 14, 2019, 15:06
Default
  #13
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Stiff means a small perturbation in one parameter results in large change in another. Said another way, a "very small perturbation in the density solution can be amplified in the pressure." This is consistent with an incompressible substance where rho does not depend on density (drho/dp = 0) or flipped the other way (dp/drho is infinite). All these statements say the same thing. But dp/drho is related to the speed of sound...

So now that you realize you have infinitely fast acoustic waves propagating around...how do you suppose to solve for them?


I would like to mention with regards to the original post/question that regardless of which equation of state you select in Fluent, always you have still the same solver. If you had the pressure-based solver before, you still are using the pressure based solver. If you use the density-based solver, you stick with the density-based solver. If you are not using Fluent but building your own incompressible solver, then maybe we kill the mention of Fluent?
LuckyTran 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
externalWallHeatFluxTemperature in incompressible solver Naresh yathuru OpenFOAM Running, Solving & CFD 7 January 18, 2019 06:22
Solver for Laminar incompressible transient flow RTom OpenFOAM 4 March 24, 2014 22:51
LES solver with variable density for incompressible liquids matthias OpenFOAM Running, Solving & CFD 1 April 26, 2010 05:46
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32
Incompressible flow solver (staggered grid) J. Ehrhard Main CFD Forum 1 October 8, 1998 19:47


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