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

Assigning mass flow rate at the outlet

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2017, 12:28
Default
  #21
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
Originally Posted by cyln View Post
@alexeym

I varied relTol between 0.1 and 0.01. I am getting the same error.
In CFX, I assigned mass flow rate at the outflow boundary. It is so robust, converge no matter what. I wanna assign the same BC in OF.

@Santiago

I am a CFX user, however, switching to OF. I need to capture the velocity gradient at the outlet as accurate as possible.

You need a precursor simulation in order to start with this one. Again, you are solving Incompressible flows and mass must be conserved at all times. Usually, inflow/outflow BC's what they do is to integrate mass on domain and then somehow assing the mass defect (outflow = (sum u dvol )/ Vol - inflow ) to the outflow(s); obviously such defect cannot be big because it will violate the integral relation of mass conservation (inflow=outflow) rendering the Cauchy condition on the Poisson equation invalid. A good start could be a potential flow, either generated using potentialFoam or generated manually. Another option is to set a fixedValue velocity BC for the inlet and zeroGradient/outflowInflow velocity BC in the outlet

Look it up in this way, you start your simulation (a channel, one outlet one inlet normal to x) from a zero field with your inflow BC. The predictor equation will update U* only by diffusion, and since the outflow velocity is equal to zero, you'll get a linear horizontal profile of the intermediate velocity. The poisson equation will throw a linear function in x for the pressure gradient which will generate a velocity profile that monotonically decreases along x, reaching zero at the boundary since this boundary is usually updated after. The inflow/outflow BC will force the mass flux on the exit to be equal to the integral over the volume of the said velocity profiles minus the inflow flux. As you may have seen, two problems arise: (1) a -possibly- large discontinuity is set on near the outlet, (2) the integral conservation of mass is not guaranteed by this method, since what it is imposed on the outflow BC are mass flow INCREMENTS.
Santiago is offline   Reply With Quote

Old   June 19, 2017, 15:00
Default
  #22
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Quote:
Originally Posted by cyln View Post
I varied relTol between 0.1 and 0.01. I am getting the same error.
And why not 1e-3? 1e-5? 1e-8? Since adjustPhi function is trying to adjust mass flux calculated as H/A, reducing solution error can help. Since all your velocity BCs fix value, there is no way to adjust mass flux. Btw zero gradient for velocity for one of the outlets is not an option?

Quote:
In CFX, I assigned mass flow rate at the outflow boundary. It is so robust, converge no matter what. I wanna assign the same BC in OF.
So, in CFX you in fact set a) fixed pressure at the outlets, b) set mass flow rate outflow BCs? I.e. you use "Mass Flow Rate: Scale Mass Flows" in terms of CFX 11.0 theory guide.
alexeym is offline   Reply With Quote

Old   March 18, 2020, 21:17
Default Outflow and Pressure
  #23
New Member
 
Sricharan S Veeturi
Join Date: Jun 2016
Posts: 5
Rep Power: 9
veeturi is on a distinguished road
I'm not sure if this helps anyone but here's what I did:

As explained a lot of people in this thread, If you use flow rates at all the outlets, that's ill posed. Instead, impose flow rate at inlet, calculate percentage flow at one of the outlets, and leave the other outlet as 0 pressure. If >2 then do the same for the others i.e. specify flow rate at all the outles except the farthest one and specify that as 0 pressure.

My U file is as follows

boundaryField
{
INLET
{
type flowRateInletVelocity;
volumetricFlowRate 0.0005;
value uniform (0 0 0);
}

OUTLET1
{
type flowRateOutletVelocity;
volumetricFlowRate 0.000205;
value uniform (0 0 0);
}

OUTLET2
{
type zeroGradient;
}

WALL
{
type noSlip;
}
}

and P file was

boundaryField
{
INLET
{
type zeroGradient;
}

OUTLET1
{
type zeroGradient;
}

OUTLET2
{
type fixedValue;
value uniform 0;
}

WALL
{
type zeroGradient;
}
}

Hope this helps
veeturi 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
Outlet mass flow rate xab Fluent Multiphase 2 February 6, 2017 10:56
Plotting mass flow rate at outlet for transient simulation Rakib Fluent Multiphase 4 September 5, 2015 23:46
Compressible flow, no data at the outlet mireis FLUENT 6 September 3, 2015 02:10
How Other Conditions Impact Mass Flow Rate Outlet andy P. Main CFD Forum 2 February 9, 2007 10:41
Inlet and outlet flow rate Neser CFX 1 March 2, 2004 16:02


All times are GMT -4. The time now is 09:41.