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

FlowRateInletVelocity in pimpleFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 18, 2014, 10:14
Default FlowRateInletVelocity in pimpleFoam
  #1
New Member
 
Join Date: Feb 2013
Posts: 17
Rep Power: 6
Werne is on a distinguished road
Sponsored Links
Hello,

I want to use the boundary condition "flowRateInletVelocity" to define a constant massflow of 5g/s at the inlet.
However, I don't know how to define the density of my fluid.
My syntax looks like this:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.2                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    INLET
    {
        type            flowRateInletVelocity;
        massFlowRate        constant 0.005;
        value           uniform (0 0 0);
    }

    OUTLET
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
    }
If I use this setup, the solver quits with the error:

Quote:
---> FOAM FATAL ERROR:
Did not find registered density field rho and no constant density "rhoInlet" specified
Where do I have to define the density, so that I can use this boundary condition?
I'm using pimpleFoam.
Werne is offline   Reply With Quote
Sponsored Links

Old   November 18, 2014, 14:44
Default
  #2
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 6
kmefun is on a distinguished road
https://github.com/OpenFOAM/OpenFOAM...hVectorField.H

Description
This boundary condition provides a velocity boundary condition, derived
from the flux (volumetric or mass-based), whose direction is assumed
to be normal to the patch.
For a mass-based flux:
- the flow rate should be provided in kg/s
- if \c rhoName is "none" the flow rate is in m3/s
- otherwise \c rhoName should correspond to the name of the density field
- if the density field cannot be found in the database, the user must
specify the inlet density using the \c rhoInlet entry
For a volumetric-based flux:
- the flow rate is in m3/s
\heading Patch usage
\table
Property | Description | Required | Default value
massFlowRate | mass flow rate [kg/s] | no |
volumetricFlowRate | volumetric flow rate [m3/s]| no |
rhoInlet | inlet density | no |
\endtable
Example of the boundary condition specification for a volumetric flow rate:
\verbatim
myPatch
{
type flowRateInletVelocity;
volumetricFlowRate 0.2;
value uniform (0 0 0); // placeholder
}
\endverbatim
Example of the boundary condition specification for a mass flow rate:
\verbatim
myPatch
{
type flowRateInletVelocity;
massFlowRate 0.2;
rho rho;
rhoInlet 1.0;
}
\endverbatim
The \c flowRate entry is a \c DataEntry type, meaning that it can be
specified as constant, a polynomial fuction of time, and ...
Note
- \c rhoInlet is required for the case of a mass flow rate, where the
density field is not available at start-up
- the value is positive into the domain (as an inlet)
- may not work correctly for transonic inlets
- strange behaviour with potentialFoam since the U equation is not solved
kmefun is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
pimpleFoam initialization? TBERGE OpenFOAM Running, Solving & CFD 2 April 2, 2014 08:20
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 09:35
Understanding pimpleFoam convergence criterion Nucleophobe OpenFOAM Running, Solving & CFD 0 March 13, 2013 19:46
Differences simpleFoam vs. pimpleFoam / RASModel.H vs turbulenceModel.H uli OpenFOAM Programming & Development 7 January 26, 2013 16:01
unable to get parabolic velocity profile with pimplefoam houkensjtu OpenFOAM 4 October 8, 2012 04:41

Sponsored Links


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