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

Channel forcing (pressure gradient)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sbaffini

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2014, 16:06
Default Channel forcing (pressure gradient)
  #1
Senior Member
 
Joachim
Join Date: Mar 2012
Location: Paris, France
Posts: 145
Rep Power: 15
Joachim is on a distinguished road
Hello everyone!

My question of the day: If you have a finite volume code, and you want to run a channel flow case, how do you drive the flow?

I am slightly confused, because even if I do not impose any pressure gradient, the flow will just keep on moving due to the periodic boundary conditions (no mass or momentum is being destroyed, so it has to keep on moving).

Basically, does the following procedure work?

1. compute the average flow rate
2. compute the delta flow rate = actual - target
3. define dpdx = delta flow rate/channel area
4. add dpdx as a source term in the momentum equation and rho*u*dpdx as a source term in the energy equation.

Is that ok? I am confused because I would have thought that my simulation would converge towards the pressure gradient required to drive the flow. Instead, following the previous procedure, the simulation will converge to the correct flow rate when dpdx goes to zero. Does that make sense?

Thanks!

Joachim
Joachim is offline   Reply With Quote

Old   May 14, 2014, 16:14
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
usually, two ways are possible: imposing a constant pressure gradient or imposing a flow rate.
If you work with pressure gradient then a constant forcing term is included in the momentum equation and the pressure solver adjusts the periodical part of the pressure to ensure the continuity constraint
FMDenaro is offline   Reply With Quote

Old   May 14, 2014, 16:21
Default
  #3
Senior Member
 
Joachim
Join Date: Mar 2012
Location: Paris, France
Posts: 145
Rep Power: 15
Joachim is on a distinguished road
Thanks!
It is possible to impose a flow rate without using a pressure gradient? How could I do that?
Joachim is offline   Reply With Quote

Old   May 15, 2014, 10:49
Default
  #4
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
Dear Joachim,

the flow in the periodic settings MUST have a source term to be sustained. Otherwise the viscosity will eventually kill your motion. In all the cases this source term is a pressure gradient (the non-periodic part). As stated by Filippo, you have two choices:

- fixed pressure gradient -> the mass flow rate is just an output of your computation

- fixed mass flow rate -> you iterate on the source term (pressure gradient) until the resulting mass flow rate reaches your target value. As this is a control problem, there is no unique way to iterate on the source term and you have to consider additional information to make a proper choice.
sbaffini is offline   Reply With Quote

Old   May 15, 2014, 10:54
Default
  #5
Senior Member
 
Joachim
Join Date: Mar 2012
Location: Paris, France
Posts: 145
Rep Power: 15
Joachim is on a distinguished road
Viscosity is only acting as a transport phenomena in the equations. Shouldn't it only move the momentum around instead of dissipating it?

In my case, the flow is compressible, is that fine if I simply add the source term without further consideration?

Thanks!
Joachim is offline   Reply With Quote

Old   May 15, 2014, 11:39
Default
  #6
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
Don't you expect the effect of viscosity to be dissipative? Thus, if you initialize the flow in the periodic channel with a parabolic laminar profile and no source term, do you expect the fluid to keep moving without any energy input?

You should check the kinetic energy equation, it will show you this is not actually the case. For compressible flows there are additional considerations on the energy equation ,where an additional source term is needed.

Check this:

http://onlinelibrary.wiley.com/doi/1...O;2-6/abstract
FMDenaro likes this.
sbaffini is offline   Reply With Quote

Old   May 15, 2014, 12:52
Default
  #7
Senior Member
 
Joachim
Join Date: Mar 2012
Location: Paris, France
Posts: 145
Rep Power: 15
Joachim is on a distinguished road
Well, if you consider the case of an incompressible laminar flow, then yes, I would expect the flow to magically goes on forever I guess.
Joachim is offline   Reply With Quote

Old   May 15, 2014, 13:01
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Joachim View Post
Well, if you consider the case of an incompressible laminar flow, then yes, I would expect the flow to magically goes on forever I guess.
without any forcing, for compressible flows you would find a vanishing velocity field, the kinetic energy will be converted in internal energy. Density can eventually have a final gradient but pressure is homogeneous
FMDenaro is offline   Reply With Quote

Old   May 15, 2014, 13:09
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Joachim View Post
Well, if you consider the case of an incompressible laminar flow, then yes, I would expect the flow to magically goes on forever I guess.

...and laminar or not is the same
FMDenaro is offline   Reply With Quote

Old   May 15, 2014, 13:13
Default
  #10
Senior Member
 
Joachim
Join Date: Mar 2012
Location: Paris, France
Posts: 145
Rep Power: 15
Joachim is on a distinguished road
agreed. I only meant that a viscous incompressible flow (my scenario) theoretically does not require any pressure gradient to drive its motion. Correct?
Joachim is offline   Reply With Quote

Old   May 15, 2014, 13:20
Default
  #11
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
well, for example a wall-free constant velocity field is a solution with zero pressure gradient, but in a channel, to substain the motion you need a pressure gap ...
FMDenaro is offline   Reply With Quote

Old   May 15, 2014, 13:31
Default
  #12
Senior Member
 
Joachim
Join Date: Mar 2012
Location: Paris, France
Posts: 145
Rep Power: 15
Joachim is on a distinguished road
I understand that this is the case in nature.
For a finite volume solver however, I do not really see how momentum could dissapear without any dissipative term in the equation...The momentum and mass are only being convected and transported throughout the domain...
Joachim is offline   Reply With Quote

Old   May 15, 2014, 13:46
Default
  #13
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Joachim View Post
I understand that this is the case in nature.
For a finite volume solver however, I do not really see how momentum could dissapear without any dissipative term in the equation...The momentum and mass are only being convected and transported throughout the domain...
why FV should change the physics? I don't understand... maybe you are solving Euler equations? in viscous flows, the momentum equation has the convective, diffusive and pressure fluxes. The diffusive flux does dissipate the velocity gradient by means of molecular viscosity. Without a difference in the pressure, the acceleration will diminish until the rest
FMDenaro is offline   Reply With Quote

Old   May 15, 2014, 13:55
Default
  #14
Senior Member
 
Joachim
Join Date: Mar 2012
Location: Paris, France
Posts: 145
Rep Power: 15
Joachim is on a distinguished road
Well, viscosity acts as a transport term in the momentum equation. Basically, you can use Green's theorem to show that a transport term only redistribute the variable. Over the entire domain, the total amount of momentum should stay the same. If you compare with the TKE equation for example, you still have the transport of TKE due to viscosity, but you also have the dissipation term (also due to viscosity), with explains the decay of TKE. Maybe I missed something...
Joachim is offline   Reply With Quote

Old   May 15, 2014, 14:09
Default
  #15
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
but the kinetic energy does not conserve... it has a production term that takes into account for the dissipation of energy in internal energy.

If you integrate the momentum equation over the boundaries of the channel, the total convective flux vanishes, the pressure flux vanishes (if you consider only the periodical field) and the diffusive flux has a contribute due to the integral along the walls. To substain the transport of momentum you need a forcing term
FMDenaro is offline   Reply With Quote

Old   May 15, 2014, 14:10
Default
  #16
Senior Member
 
Joachim
Join Date: Mar 2012
Location: Paris, France
Posts: 145
Rep Power: 15
Joachim is on a distinguished road
For compressible flow I agree. However, if the flow is incompressible, the continuity/momentum and energy equations are decoupled. It follows that you can compute your velocity profile independently of the temperature/internal energy field.
Joachim is offline   Reply With Quote

Old   May 15, 2014, 14:19
Default
  #17
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Joachim View Post
For compressible flow I agree. However, if the flow is incompressible, the continuity/momentum and energy equations are decoupled. It follows that you can compute your velocity profile independently of the temperature/internal energy field.
Yes, the decoupling from energy is true fro incompressible, but that does not mean that your kinetic energy is conserved....
you can solve continuity and momentum alone but the evolution of the kinetic energy remains imposed by the velocity field obtained from the equation system and you can always write the kinetic energy to see that exists a production term that dissipate the v^2/2 you obtained from the continuity/momentum.

For example, the continuity equation (divergence-free velocity) must be resolved very well as the residual in the continuity acts (implicitly) as source term in the kinetic energy and can false the energy level (or also driving to a numerical instability)
FMDenaro is offline   Reply With Quote

Old   May 18, 2014, 16:37
Default
  #18
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
Consider again, for the sake of simplicity, the steady, incompressible, laminar case for the channel flow. What are the momentum equations and how the terms are balanced in them? You will notice that only the x-momentum equation is non-null and the dp/dx balances the diffusion term mu*d2u/dy2. If you neglect the pressure gradient, the only possible outcome in a fixed channel is a no flow condition. You can't mix diffusion and dissipation, one is a transport mechanism, the other is a net energy effect. The momentum is not an effective measure for the energy of the flow.

If you let the flow in the channel evolve without pressure gradient, than you have to consider the unsteady term too, which will balance your momentum equation to the no flow condition.
sbaffini is offline   Reply With Quote

Old   September 19, 2024, 04:07
Default
  #19
New Member
 
Join Date: Sep 2024
Posts: 1
Rep Power: 0
cecilrichardson is on a distinguished road
What I meant to say was that, theoretically, a viscous incompressible flow (like the one I am in) may go ahead without the assistance of a pressure gradient. Indeedt rex game
cecilrichardson 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
Pressure gradient in channel flow - mapped BC MaryBau OpenFOAM Running, Solving & CFD 3 February 26, 2013 16:30
pressure gradient of a 2D periodic flow problem Honey FLUENT 1 October 17, 2012 07:06
Rotating Reference Frame Pressure Gradient clac FLUENT 0 August 22, 2012 19:20
Does star cd takes reference pressure? monica Siemens 1 April 19, 2007 12:26
pressure gradient??? Mech FLUENT 2 July 5, 2006 08:25


All times are GMT -4. The time now is 00:39.