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

interPhaseChangeDyMFoam Boundary Conditions for internal flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2020, 17:04
Default interPhaseChangeDyMFoam Boundary Conditions for internal flow
  #1
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Hello!
I'm trying to calculate NPSH of a centrifugal pump but my interPhaseChangeDyMFoam simulation doesn't obey mass conservation. It also keeps minimum p_rgh very close to 0 (which is measured not true) and maximum p_rgh oscillates around set fixedValue by ~300%.
I guess it's a boundary condition issue.

What I have:
U:
  • Inlet: flowRateInletVelocity
  • Outlet: inletOutlet

p_rgh:
  • Inlet: fixedFluxPressure*
  • Outlet: fixedValue
  • Walls: fixedFluxPressure

I use dynamicMesh for impeller rotation.

There are no tutorials or anything I could find for proper BC for such cases. Am I missing something?

Thank you in advance!
__________________
www.damogranlabs.com
kandelabr is offline   Reply With Quote

Old   October 16, 2020, 02:37
Default
  #2
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
OK so after a ton of wrestling with the setup I found the problem.
I copied boundary conditions from the propeller tutorial.

The problem (as I can explain it at the moment) was that in the initial few timesteps pressures went berserk and induced cavitation which (at least in my specific geometry) then caused even more cavitation to occur which again did not help with convergence or anything at all.

I solved the issue by ramping up flow velocities and mesh rotation*:

0.orig/U:
Code:
suction_inlet
{
    type flowRateInletVelocity;
    volumetricFlowRate** table (
        (0 1e-9)
        (0.001 1e-9)
        (0.002 0.05)
        (100 0.05)
    );
    value uniform (0 0 0);
}
constant/dynamicMeshDict:
Code:
origin (0 0 0);
axis (1 0 0);
omega table (
    (0 0)
    (0.001 0)
    (0.002 628)
    (100 628)
);
Now I get results closer to what's physically possible - at least p_rgh is positive

Hope this is of any use to anybod.

EDIT:
** after some additional wrestling I discovered the main source of the problem: flowRateInlet must not be volumetric! In case pressure drops near the inlet (for whatever reasons, mainly numerical) flowrates change unphysically. So, set massFlowRate.
* with current setup, ramping up anything is not needed anymore.


Good luck!
__________________
www.damogranlabs.com

Last edited by kandelabr; November 11, 2020 at 03:01. Reason: New discoveries available
kandelabr 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
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 05:53
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Velocity vector in impeller passage ngoc_tran_bao CFX 24 May 3, 2016 21:16
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 14:32
Please help with flow around car modelling! Tudor Miron CFX 17 March 19, 2004 19:23


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