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

Velocity Boundary Conditions to respect mass balance

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2016, 04:17
Default Velocity Boundary Conditions to respect mass balance
  #1
New Member
 
Pierre
Join Date: Oct 2011
Posts: 15
Rep Power: 14
pilafa is on a distinguished road
Hi,

I am solving this problem (see image attached):

- Filling of a tank with water. The tank is initially full, we just fill it with new water (water level is constant)
- Axi-symmetric
- No free-surface modeled
- inlet section's surface is equal to outer surface (Ain=Aout)

My question is about the boundary conditions to apply.

I first tried the traditional "velocity prescribed at inlet" and "P=0 at oulet", but it is very difficult to have a good mass balance (The output velocity that I observe is not equal to the inlet velocity prescribed).

I then tried the BC showed on the image. The convergence is much easier, but I am not sure if it's "legal".

- Inlet: Vr
- Outet: -Vr (it should be that way in order to respect mass balance)
- top surface: this surface is at "open air" (but I don't consider free surface). I put P=0, and Vz=0 to prevent the fluid to exit the domain

Do you think that this set of BC is valid?

Thanks,
Pierre
Attached Images
File Type: png BC.png (19.9 KB, 9 views)
pilafa is offline   Reply With Quote

Old   July 26, 2016, 11:06
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
What do you mean for Vr, is a constant value prescribed on all the nodes constituting the inlet and outlet faces? Apart from the fact that a uniform velocity profile is physically questionable (particularly as outflow), it does respect the mass flow and it must work. Thus, I think you have some bug in the code (or I do not understand well your setup...)
FMDenaro is offline   Reply With Quote

Old   July 26, 2016, 11:24
Wink
  #3
New Member
 
Pierre
Join Date: Oct 2011
Posts: 15
Rep Power: 14
pilafa is on a distinguished road
Hi FMDenaro,

Quote:
What do you mean for Vr, is a constant value prescribed on all the nodes constituting the inlet and outlet faces?
Yes.

Quote:
Apart from the fact that a uniform velocity profile is physically questionable (particularly as outflow), it does respect the mass flow and it must work
You are right. I guess a parabolic function should be better.

Quote:
Thus, I think you have some bug in the code (or I do not understand well your setup...)
Actually, the convergence is quite good with the BC I proposed. I never say it didn't work
It's just that I never used this configuration before and wasn't sure if that make sense or not.

Thanks!
Pierre
pilafa is offline   Reply With Quote

Old   July 26, 2016, 11:38
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by pilafa View Post
Hi FMDenaro,



Yes.



You are right. I guess a parabolic function should be better.



Actually, the convergence is quite good with the BC I proposed. I never say it didn't work
It's just that I never used this configuration before and wasn't sure if that make sense or not.

Thanks!
Pierre
from a mathematical point of view the problem is well posed, however the numerical solution you get is physically acceptable only if you assume inviscid flow conditions
FMDenaro is offline   Reply With Quote

Old   July 26, 2016, 11:46
Default
  #5
New Member
 
Pierre
Join Date: Oct 2011
Posts: 15
Rep Power: 14
pilafa is on a distinguished road
..mmm...interesting.

If I follow you correctly, you say that prescribing the inlet AND outlet velocity would be physically valid only for inviscid flow (no viscosity). Correct?

I don't understand why

Could help me with that?
pilafa is offline   Reply With Quote

Old   July 26, 2016, 11:56
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by pilafa View Post
..mmm...interesting.

If I follow you correctly, you say that prescribing the inlet AND outlet velocity would be physically valid only for inviscid flow (no viscosity). Correct?

I don't understand why

Could help me with that?
well, the fact that an outflow velocity profile is exactly the same of the inflow can happen also for some particular viscous flows but for very restricted conditions. For example the Poiseuille solution, mathematically valid for any Reynolds number but physically not stable just at low Re number.
On the other hand, an inviscid flow hypothesis cancels the shear wall effects and makes more acceptable such profile due to the energy reversibility (no energy dissipation, no entropy production)
FMDenaro is offline   Reply With Quote

Old   July 26, 2016, 12:01
Default
  #7
New Member
 
Pierre
Join Date: Oct 2011
Posts: 15
Rep Power: 14
pilafa is on a distinguished road
ok, I see. Thanks for this explanation. I agree with you.
pilafa 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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39
OpenFOAM Variable Velocity Boundary Conditions NickolasPl OpenFOAM Programming & Development 2 May 19, 2011 05:37
maintaining a logarithmic velocity distribution Morten Andersen CFX 1 January 8, 2007 11:37


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