CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   OpenFOAM 1.7 cylindricalInletVelocity and swirlFlowRateInletVelocity BC's (

ALC June 29, 2010 11:49

OpenFOAM 1.7 cylindricalInletVelocity and swirlFlowRateInletVelocity BC's
I am very new to this software and recently installed OF1.7 beside OF1.6 to use the new boundary conditions.

I am trying to use the new swirl/cylindrical boundary conditions in OF 1.7, but I get the error below even though I follow the format specified in the header files for these bc's. The file should not need a 'value' line according to the header. Also, I have checked that my shell is searching OF1.7 directories for files by running a solver (fireFoam) that does not exist in my non-updated version of OF1.6. Finally, I am trying to do this on a nonplanar mesh that was produced by snappyHexMesh.

Thanks in advance for any help.


Reading field U

Essential entry 'value' missing

file: /home/alc79/OpenFOAM/OpenFOAM-1.7.0/tutorials/mesh/combustor_jetson_swirl_coldflow_refined/2e-07/U::boundaryField::comb_injector_inlet from line 79 to line 84.

From function fvPatchField<Type>::fvPatchField(const fvPatch& p,const DimensionedField<Type, volMesh>& iF,const dictionary& dict,const bool valueRequired)
in file /home/alc79/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude/fvPatchField.C at line 120.

FOAM exiting

l_r_mcglashan June 29, 2010 12:33

Yes, I was just looking at that, and also changed it to accept a velocity instead of a flowrate. Just include value, it needs that to place the calculated velocities in. It shouldn't matter what you put there.


        type            swirlFlowRateInletVelocity;
        flowRate    0.2;        // Volumetric/mass flow rate [m3/s or kg/s]
        rpm            100;
        value          uniform (0 0 0);

ALC June 30, 2010 04:10

Thanks a lot. The same value line seems to be needed for the cylindricalInletVelocity BC as well.

Many Thanks.


pit December 8, 2010 09:51

Hi Adam (or someone else),
can you please post your BC with the cylindricalInletVelocity.

With best regards

ALC December 8, 2010 09:56

For a patch named AIR_INLET

type cylindricalInletVelocity;
axis (0 1 0);
centre (0 0.114 0);
axialVelocity 2.202582536;
rpm 444.4074;
radialVelocity 0;
value uniform (0 0 0);

pit December 8, 2010 12:34

Looks like my first trial. :)
Thank you for the fast reply. Now it's running.

pilafa February 1, 2017 05:11


With swirlFlowRateInletVelocity, I don't know how to determine if "flowRate" is mass or volume flow rate.

According to the code, it depends on units of "phi"


if (phi.dimensions() == dimVelocity*dimArea)
        // volumetric flow-rate
        operator==(tangentialVelocity + n*avgU);
    else if (phi.dimensions() == dimDensity*dimVelocity*dimArea)
        const fvPatchField<scalar>& rhop =
            patch().lookupPatchField<volScalarField, scalar>(rhoName_);

        // mass flow-rate
        operator==(tangentialVelocity + n*avgU/rhop);

But what is phi??


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