|
[Sponsors] |
November 18, 2014, 09:14 |
FlowRateInletVelocity in pimpleFoam
|
#1 | |
New Member
Join Date: Feb 2013
Posts: 17
Rep Power: 13 |
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); } Quote:
I'm using pimpleFoam. |
||
November 18, 2014, 13:44 |
|
#2 |
Member
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12 |
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 |
|
|
|
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 08:35 |
Understanding pimpleFoam convergence criterion | Nucleophobe | OpenFOAM Running, Solving & CFD | 0 | March 13, 2013 18:46 |
Differences simpleFoam vs. pimpleFoam / RASModel.H vs turbulenceModel.H | uli | OpenFOAM Programming & Development | 7 | January 26, 2013 15:01 |
unable to get parabolic velocity profile with pimplefoam | houkensjtu | OpenFOAM | 4 | October 8, 2012 04:41 |