CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

twoPhaseEulerFoam mass balance with different boundary conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2022, 10:45
Default twoPhaseEulerFoam mass balance with different boundary conditions
  #1
New Member
 
Join Date: Apr 2009
Posts: 13
Rep Power: 17
user is on a distinguished road
Dear foamers,

I'm struggling with the mass (im)balance of twoPhaseEulerFoam with different boundary conditions. My conclusion is, that there is a mass imbalance when zeroGradient is used as the boundary for p_rgh at the inlet - i.e. it comes more mass out than going in. With fixedFluxPressure at the inlet, everything looks good. In the attached file a test case (a small vertical channel) is included, which can be run with twoPhaseEulerFoam. There are already two logfiles included - one with fixedFluxPressure and one with zeroGradient. From these one can see the mass fluxes at inlet and outlet patches for the phases. There are a lot of discussion about the right / correct / best way to specify the boundary conditions when gravity is considered but I never found statements regarding the imbalance.

Could somebody explain this behavior? I first thought of something like a transient effect, but even after 100 s the mass flux of liquid at the outlet is more than 3 times bigger than at the input. Do I miss something or is my mass flux calculation (alphaRhoPhi) wrong?

I'm using OpenFOAM v2012 / 2112 but this effect can also be reproduced it with multiphaseEulerFoam (OF 9).

Thanks in advance
Ulf

twoPhaseEulerFoam_checkMassBalance.zip
user 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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
Centrifugal fan j0hnny CFX 13 October 1, 2019 14:55
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 05:39
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32


All times are GMT -4. The time now is 11:43.