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

rhoSimpleFoam with specified mass flow rate at outlet

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By jherb
  • 2 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2020, 16:27
Default rhoSimpleFoam with specified mass flow rate at outlet
  #1
Member
 
ishan
Join Date: Oct 2017
Posts: 78
Rep Power: 9
ishan_ae is on a distinguished road
Hello.

I want to run a subsonic compressible flow inside a duct. I am essentially trying to replicate the boundary conditions used in experimental setup through OpenFOAM 7.0.

For the outlet of the system, the mass flow rate has been provided and at the inlet total pressure/total temperature as been provided.

For the specified mass flow rate, I want to use flowRateOutletVelocity.

But I am confused as to what parameters have to be actually defined in the BC definition.

I used
Code:
foamInfo -FlowRateOutletVelocity
to get some information:

Code:
 Velocity outlet boundary condition which corrects the extrapolated velocity
    to match the specified flow rate.

    For a mass-based flux:
    - the flow rate should be provided in kg/s
    - if \c rho is "none" the flow rate is in m^3/s
    - otherwise \c rho should correspond to the name of the density field
    - if the density field cannot be found in the database, the user must
      specify the outlet density using the \c rhoOutlet entry

    For a volumetric-based flux:
    - the flow rate is in m^3/s

outlet
{
    type                  flowRateOutletVelocity;
    massFlowRate          0.256
    rhoOutlet             xxxxx;     //what is this  value?
    rho                   rho;       //how is this different from rhoOutlet
}
What are the rho and rhoOutlet parameters here?

I want to use the mass flow rate definition.

I have referred to the discussion here but there seems to be no conclusion: flowRateOutletVelocity BC for compressible application

Finally, how can I initialize my rhoSimpleFoam solution ? Do you suggest running first in simpleFoam and then running rhoSimpleFoam ? If I do this, will I have to change the boundary conditions ?

Some information on this will be helpful.
ishan_ae is offline   Reply With Quote

Old   August 31, 2020, 12:12
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
If you use a solver for incompressible flows like simpleFoam which does not have a density field, you have to specify rho with the rhoOutlet key word. If you use a solver for compressible flows, e.g. buoyantPimpleFoam, then you must specify the name of the density field, which in then would be rho.
lpz456 likes this.
jherb is offline   Reply With Quote

Old   August 31, 2020, 18:44
Default
  #3
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 746
Rep Power: 14
Tobermory will become famous soon enough
In case Joachim's response is not 100% clear, take a look at the "Detailed Description" of the Doxygen entry for the BC: https://cpp.openfoam.org/v8/classFoa...d.html#details.

You are using rhoSimpleFoam, i.e. a compressible solver with a density field that has the default name "rho", so if I am reading it right you should be able to ignore the rho and rhoOutlet parameters and just define the massFlowRate, viz:

Code:
<patchName>
    {
        type                flowRateOutletVelocity;
        massFlowRate        0.2;
        value               uniform (0 0 0);
    }
Good luck.
ishan_ae and lpz456 like this.
Tobermory is offline   Reply With Quote

Old   September 1, 2020, 02:11
Default
  #4
Member
 
ishan
Join Date: Oct 2017
Posts: 78
Rep Power: 9
ishan_ae is on a distinguished road
Thanks for the information. For simpleFoam if I ignore any of the rho related parameters, then volumetric flow rate has to be specified. So let's say that my m_dot is 4 kg/s and my density is 2 kg/m3. If I am understanding it right, for simpleFoam, I will have to use m_dot / 2 = 2 m3/s. Or can I just use the actual m_dot value ? I know that for in compressible flows, OF uses kinematic pressure and hence the density term doesn't come into the picture.

I am still not sure what does
Code:
rho rho;
mean here ? Is it calculated using ideal gas law ?

In the same documentation link, it mentions that rhoOutlet entry needs to be provided(for rhoSimpleFoam run) if the density field is not available at start-up. Density field will of course not be available at start-up because that's what I want to solve for.

In that case I will have to give the density value using the rhoOutlet parameter right ? The issue is that I don't have this value. I have tried to make some estimations using 1D isentropic flow calculations but in vain. There is simply not enough information available. The only information I have from experimental setup is total pressure/temperature at duct inlet, Mach number at a location upstream of outlet, and finally mass flow rate at outlet.
ishan_ae is offline   Reply With Quote

Reply

Tags
opefoam7


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
Mass flow rate history over solution step- rhoSimpleFoam gian93 OpenFOAM Post-Processing 0 December 8, 2019 11:20
Plotting mass flow rate at outlet for transient simulation Rakib Fluent Multiphase 4 September 6, 2015 00:46
Compressible flow, no data at the outlet mireis FLUENT 6 September 3, 2015 03:10
How Other Conditions Impact Mass Flow Rate Outlet andy P. Main CFD Forum 2 February 9, 2007 11:41
Inlet and outlet flow rate Neser CFX 1 March 2, 2004 17:02


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