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

Pressure V Density based solver wrt Mach, Far field conditions and Domain Size

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By sbaffini
  • 2 Post By sbaffini
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2024, 16:54
Default Pressure V Density based solver wrt Mach, Far field conditions and Domain Size
  #1
Senior Member
 
Brett
Join Date: May 2013
Posts: 216
Rep Power: 14
Bdew8556 is on a distinguished road
Hey guys,

Just looking to do a deep dive into why we use pressure or density based solvers for different applications and how that affects our domain size.

Solvers:
To my knowledge pressure based solvers are used for low speed flows because density does not change (very small changes). pressure based solvers can be sequential or coupled, coupled being the SIMPLE algorithm and it's various cousins?

Far field conditions:
We can use far field conditions with the pressure based solver but they must be a certain distance from the object. In an aviation setting this is usually an aircraft where you set the domain size to be x 10, x 20 aircraft length away from the aircraft. this is to make sure there isn't a mach change at the boundary yes?
Does this mean the far field condition varies pressure and velocity in order to achieve a constant mach? I hear all this stuff about the reimann variable but nobody seems to know exactly what that means.

Density based solver:
However with density based solvers for high mach flows, eg a missile on re entry, I've seen people use very small domains. Is this because the density based solver can handle shock waves at the far field boundary? ie it can calculate density explicitly so having a mach gradient at the boundary isn't an issue?

Just trying to understand this from a 'gut' level if that makes sense.
Oh and I swear to god if someone comments "read the manual", yeah.... you're not clever bro.
Bdew8556 is offline   Reply With Quote

Old   Yesterday, 09:41
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
You have, in your mind, a collection of completely random facts which are not true. How can we even remotely be assumed to be able to change that in a post or two? We can't.

So, from the gut, read an effing book bro
LuckyTran likes this.
sbaffini is offline   Reply With Quote

Old   Yesterday, 16:35
Default
  #3
Senior Member
 
Brett
Join Date: May 2013
Posts: 216
Rep Power: 14
Bdew8556 is on a distinguished road
How are they not true? do high speed density based simulations not sometimes use boundaries close to the object? why is that ok with density based solvers but seemingly not pressure based solvers?
Bdew8556 is offline   Reply With Quote

Old   Yesterday, 16:48
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Bdew8556 View Post
How are they not true? do high speed density based simulations not sometimes use boundaries close to the object? why is that ok with density based solvers but seemingly not pressure based solvers?



Who told that? Have you read this statement in a CFD textbook?
FMDenaro is offline   Reply With Quote

Old   Yesterday, 16:51
Default
  #5
Senior Member
 
Brett
Join Date: May 2013
Posts: 216
Rep Power: 14
Bdew8556 is on a distinguished road
I've seen work/papers setup like this. Maybe those works were doing something wrong? quite possibly, it jumped out at me that it was odd and the only difference was the pressure v density based solver.
Bdew8556 is offline   Reply With Quote

Old   Yesterday, 17:02
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Bdew8556 View Post
I've seen work/papers setup like this. Maybe those works were doing something wrong? quite possibly, it jumped out at me that it was odd and the only difference was the pressure v density based solver.

Pressure or density based solvers have nothing to do with the theoretical extension of the domain and location of boundaries. These latter depend on physical considerations about the influence of the numerical BCs.
Could you post the papers you have read?
FMDenaro is offline   Reply With Quote

Old   Yesterday, 17:16
Default
  #7
Senior Member
 
Brett
Join Date: May 2013
Posts: 216
Rep Power: 14
Bdew8556 is on a distinguished road
Cool, that helps answer my question. I'll have a look to see if I can find the specific paper I recall. Did some quick googling and found this:
https://www.ata-e.com/software/train...-dynamics-cfd/

Any difference in the way pressure v density solvers interact with the far field condition? sounds like its the same?
Bdew8556 is offline   Reply With Quote

Old   Yesterday, 17:23
Default
  #8
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Let's see...

SOLVERS: since more than 20 years pressure based solvers in commercial CFD codes can be used for variable density flows, including highly compressible ones, and have no specific limitations with respect to density based solvers. It is true that pressure based solvers can be either SEGREGATED or coupled, but SIMPLE family, PISO family and other fractional steps solvers are all segregated. There are a few coupled pressure based implementations out there, but none of the authors cared about naming them (to the best of my knowledge), so what people usually mean when talking about a pressure based coupled solver is, in fact, the one implemented in their CFD code of choice.

Modern implementations of density based solvers also bypass their major limitations trough preconditioning and dual time step.

All in all, it obviously makes sense to use pressure based for low to non compressible flows and density based for highly compressible flows. But it is more a matter of efficiency than anything else.

FAR FIELD BC: The FLUENT bc called "pressure far field", which is a totally arbitrary naming convention, is based on preserving/extrapolating the Riemann invariants for the ingoing and outgoing waves and is based on an ideal gas assumption. If your scheme is an approximate Riemann solver or similar (and it sort of must be in order to work with compressible flows) then using your scheme at the boundary is pretty much the same concept. In any case, Mach number is not an invariant and it will vary with all the other variables. What is pretty much accurate in the naming is that FAR FIELD, as most bcs, is meant to be put on a... far field. The only case where disturbances won't affect the close boundary is, schematically, for fully supersonic inlets BUT... this must be steady and you have to get there starting from your initial solution. Every other use case is misuse and, unless confirmed to be ininfluent trough tests, has a misplaced boundary.

SHOCKS AT BOUNDARIES: every working compressible code must be able to handle shockwaves passing trough boundaries. Still, the limited/inaccurate informations we have at open boundaries, in addition to the further approximations we introduce in the discretization there, make them a zone that is always better put away from your zone of interest, no matter what.
arjun and Krapf like this.
sbaffini is offline   Reply With Quote

Old   Yesterday, 17:29
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Bdew8556 View Post
Cool, that helps answer my question. I'll have a look to see if I can find the specific paper I recall. Did some quick googling and found this:
https://www.ata-e.com/software/train...-dynamics-cfd/

Any difference in the way pressure v density solvers interact with the far field condition? sounds like its the same?



I don't see something relevant to the discussion about BCs. Clearly, density-based formulation is suitable for high compressible flows.
Hypersonic flows is complex due to ionization, dissociation, eventually also due to lack in the continuum model.
You should check the topic in well known textbook, not in industry presentation.
sbaffini likes this.
FMDenaro is offline   Reply With Quote

Reply

Tags
coupled boundary, far field, mach, pressure based solver


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
Divergence detected in AMG solver. VOF. Mr.Mister Fluent Multiphase 5 November 22, 2024 07:32
An error occurs.'Increase the file catalog size. ' dhehdxhdaus CFX 3 April 10, 2022 21:13
Fail to converge when solving with a fabricated solution zizhou FLUENT 0 March 22, 2021 07:33
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 17, 2020 00:44
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20


All times are GMT -4. The time now is 13:55.