CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Velocity Inlet & Compressible Flow

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2019, 06:41
Default Velocity Inlet & Compressible Flow
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15
sasanghomi is on a distinguished road
Dear friends,

Many say that it is not correct to use velocity inlet as a boundary condition when it comes to compressible flow.
I am wondering what the reason is behind this idea! What problems could be raised if I used velocity inlet for compressible flow simulations?


Best Regards

Last edited by sasanghomi; January 10, 2019 at 08:20.
sasanghomi is offline   Reply With Quote

Old   January 9, 2019, 11:07
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23
evcelica is on a distinguished road
As far as I know, there is no problem using velocity inlet for compressible flow.
The only reason I can think that one might say that is that perhaps your mass flow may not be exactly as expected since your density may be different depending on the inlet pressure.
But a boundary condition is a known/defined condition at that boundary, if you know the velocity at that boundary, then that is what you should use as your boundary condition.
I'd be interested in the reasoning of the "many" though, as I don't see a problem with it.
evcelica is offline   Reply With Quote

Old   January 9, 2019, 13:54
Default
  #3
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Perhaps the problem the context and or the wording/interpretation of "correct".

In the appropriate context (given all the boundary conditions of the problem), it is correct to specify the velocity as long as the pressure level is defined somehow; however, it is not useful for engineering purposes or design iterations.

Upstream of the system you may be able to control the pressure/total pressure to deliver a specific mass flow. The velocity level will be a function of such pressure/total pressure and the relationship from pressure/total pressure to velocity via mass flow is not trivial since it also depends on the equation of state.

Since you have not described your outlet boundary condition, the context is incomplete. Now, if you are set (assumption) in using a mass flow outlet, or outlet velocity, the use of specified velocity at the inlet is definitely incorrect since the pressure level would be missing.
Opaque is offline   Reply With Quote

Old   January 9, 2019, 17:57
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
To add to the useful comments already on this thread:

If you think about the fundamental purpose of boundary conditions, it is to put a boundary on the modelled domain such that the boundary is representative of how the modelled domain interacts with the rest of the world outside the modelled domain. A correctly implemented boundary condition will mean that the modelled domain reproduces the actually thing you are modelling with sufficient accuracy that the results are useful.

So the most important assessment of whether a boundary condition is suitable or not depends on the accuracy you are looking for. A preliminary design assessment will have very different requirements compared to a precision benchmark solution.

And secondly, if a constant velocity boundary is a reasonable representation of the actual situation to an accuracy you are happy with then it sounds like a good boundary condition.

And finally, don't forget CFD has assumptions and simplifications about a continuum, the applicability of the Navier Stokes equations, approximate geometry due to meshing, numerical approximations due to numerical methods, and many more approximations (for instance the boundary condition of zero gradient of pressure normal to a wall is not correct in some creeping flows and there is no way in CFX to fix that).
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 10, 2019, 10:17
Default
  #5
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15
sasanghomi is on a distinguished road
I appreciate your thorough replies. In fact, I am simulating a compressible flow inside a domain whose outlet boundary is constrained by static pressure.

So, it seems to me that as long as there is no concern about the mass flow rate, no problem threatens the accuracy of my simulation in terms of boundary conditions.
sasanghomi is offline   Reply With Quote

Old   January 10, 2019, 14:55
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
In theory, you are correct; however, there is a major assumption in your statement:

Quote:
no problem threatens the accuracy of my simulation in terms of boundary conditions
Accuracy is only relevant for a converged solution, i.e. it cannot be accurate if it is not converged.

The proper selection of boundary conditions also helps to converge the equations. Some combinations are difficult to satisfy (inlet static pressure + outlet static pressure), or insensitive to minor variation during convergence; therefore, there are different convergence behaviors depending on the combinations of the chosen boundary conditions (usually problem dependent)

For example, the case for velocity inlet + static pressure outlet, the static pressure on the inlet is not bounded during the convergence algorithm while a total pressure inlet will limit the range of static pressures the solution can converge to. The mass flow inlet boundary condition is a bit softer numerically, but indirectly maintains a bound, i.e. regardless of the static pressure value, the mass flow through the system is fixed and it is something it can be converged to (say a pipe flow).

Hope the above helps
calf.Z and lpz456 like this.
Opaque is offline   Reply With Quote

Old   March 10, 2019, 04:51
Default
  #7
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
I am also simulating compressible flows. I want to use the result to compare it with the experiment. The experiment gives the mass flow rate. So should I define a mass flow BC for inlet? If so, I think flowRateInletVelocity is suitable.

And I use pressureInletOutletVelocity in the outlet of velocity. Is it suitable?

Thank you.
calf.Z is offline   Reply With Quote

Old   March 10, 2019, 05:57
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Are you using OpenFOAM? Then you should ask the question on that forum.

But in general, you can either define the mass flow rate and check against experiment to see if it gets the pressure drop right, or you can specify the pressures and see if it gets the mass flow rate correct. You only mention the mass flow rate, so if that is all the information you have you have to use that as the boundary condition and you do not have a check on the pressure for accuracy.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks 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
swirl inlet velocity for a 2-d axisymmetric flow zahrarashidi OpenFOAM Running, Solving & CFD 2 January 12, 2015 08:01
Steady pipe flow mean velocity higher than inlet velocity anita OpenFOAM Running, Solving & CFD 7 September 25, 2012 06:35
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
Channel flow: Inlet pressure AND uniform velocity? frmap1 Main CFD Forum 0 April 15, 2010 11:32
Compressible flow with inlet velocity Ma%23601 klaus OpenFOAM Running, Solving & CFD 2 July 3, 2005 16:43


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