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

periodic BC & pressure gradient in a 2D two-phase turbulent pipe flow

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2025, 23:42
Default periodic BC & pressure gradient in a 2D two-phase turbulent pipe flow
  #1
New Member
 
Andrew H. Li
Join Date: Mar 2025
Posts: 4
Rep Power: 2
li_hledm is on a distinguished road
Hi Foamers,

I just got a question regarding imposing the periodic BC and the pressure gradient implementation.

My flow is as the figure attached where the water flows in against the pipe wall and the crude oil comes in from the centre core. I've set three pairs of periodic(cyclic) BCs.

Several questions here:

1. I saw the reference that there's a way to mimic the pressure gradient and drive the flow by specifying the mass flow rate, can anyone show me the syntax of specifying a mass flow rate? I saw the syntax of the meanVelocityForce :


pressureGradient
{
type meanVelocityForce;
active true;

selectionMode all;

meanVelocityForceCoeffs
{
selectionMode all; // Apply force to all cells
fields (U); // Name of velocity field
Ubar (0.5 0 0); // Desired mean velocity
relaxation 1; // Optional relaxation factor
}

}

Or the syntax of momentumSource(my guess is they are identical):
//momentumSource
//{
// type meanVelocityForce;

// selectionMode all;

// fields (U);
// Ubar (0.5 0 0);
//}

2. if the two phases of flow in my case have different flow rates (this can be easily done if to work with velocity inlets), is it possible to impose different mass flow rate for different phases, if yes and how?

I appreciate your help!

Thanks!
Attached Images
File Type: jpg demo.jpg (18.7 KB, 2 views)
li_hledm is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Intuition for why flow follows convex surfaces lopp Main CFD Forum 47 February 1, 2022 13:14
Simple Box - Gravity with Pressure Outlet - Unrealistic Reverse Flow pyccknn FLUENT 2 December 1, 2021 17:31
Periodic Pipe Flow LES dvolkind CFX 8 March 21, 2020 05:30
2 phase flow in a pipe, reference pressure wissal CFX 2 April 13, 2017 07:08
pressure gradient of a 2D periodic flow problem Honey FLUENT 1 October 17, 2012 06:06


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