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

flowRateInletVelocity

Register Blogs Community New Posts Updated Threads Search

Like Tree32Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2015, 11:07
Default
  #21
Member
 
Vineet Bhola
Join Date: Jun 2015
Location: Chemnitz, Germany
Posts: 49
Rep Power: 10
vineet_bhola is on a distinguished road
ohh sorry, I didn't realise you were talking about transient variation of mass flow rate.
I have always worked with steady state flows so I don't know about how to incorporate time factor.
and I don't know how to Keep phi in m3/s even when the fluid is compressible. I think it is defined in the solver equations.
Thanks
Vineet
vineet_bhola is offline   Reply With Quote

Old   October 19, 2015, 11:14
Default
  #22
New Member
 
James F.
Join Date: May 2015
Posts: 24
Rep Power: 10
NoradFirst2 is an unknown quantity at this point
Nevermind, your comment was funny and not patronizing.

Basically, I wouldn't need a time factor if I can set the volume flow rate to be constant along time rather than the mass flow rate. I'll have a look at the solver and use a averaged rho value is I am not suceeding.

Thanks for helping
NoradFirst2 is offline   Reply With Quote

Old   June 15, 2016, 10:00
Default
  #23
Member
 
Fatemeh
Join Date: Dec 2015
Location: Isfahan,Iran
Posts: 39
Rep Power: 10
fatemehfarshi62 is on a distinguished road
Quote:
Originally Posted by romant View Post
You can find it under $FOAM_SRC/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H


Hi romant and every one,
I have a question if you don' mind? would you please tell me if one can use volumetricFlowRate for the incompressible flow too? thanks a lot and best regards.
fatemehfarshi62 is offline   Reply With Quote

Old   September 14, 2018, 09:56
Default Getting back on subject
  #24
New Member
 
Thomas M
Join Date: Aug 2018
Posts: 20
Rep Power: 7
tmik is on a distinguished road
Getting back to flowRateInletVelocity, is there a way to specify a massFlowRate which follows a vector?



The documentation you showed says its normal to the face. Is there a way to change that? Need a vectored inlet mass flow (see 2D geometry image)
Attached Images
File Type: png 5.PNG (8.6 KB, 20 views)
tmik is offline   Reply With Quote

Old   May 16, 2019, 05:59
Default
  #25
Senior Member
 
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7
Raza Javed is on a distinguished road
Hello Everyone,


I am using chtMultiRegionSimpleFoam and my OpenFoam version is 4.1.


My geometry has a box, and inside this box, there is a fluid region.
The inlet and outlet of the fluid region is at two faces of the box.



I have to specify a flow rate at the inlet. And according to that I set my boundary conditions like below:


Code:
boundary
{
    inlet
    {
        type            patch;
    }
    outlet
    {
        type            patch;
    }
    defaultFaces
    {
        type            patch;
    }
}
U
{
    internalField   uniform (1e-3 0 0);

    boundaryField
    {
        inlet
        {
            type                flowRateInletVelocity;//fixedValue;//pressureInletVelocity;
            volumetricFlowRate  0.066;
            extrapolateProfile  yes;
            value               uniform (1 0 0);
        }

        outlet
        {
            type            zeroGradient;
            //value           uniform (0 0 0);//$internalField;
        }
        defaultFaces
        {
            type            zeroGradient;
        }
        "fluid_to_box"
        {
            type            noSlip;
        }
    }
}

T
{
    internalField   uniform 300;

    boundaryField
    {
        inlet
        {
            type            fixedValue;
            value           $internalField;
            
        }

        outlet
        {
            type            zeroGradient;//inletOutlet;
            value           $internalField;
            //inletValue      $internalField;
        }
        defaultFaces
        {
            type            zeroGradient;
        }

        "fluid_to_box"
        {
            type            compressible::turbulentTemperatureCoupledBaffleMixed;
            Tnbr            T;
            kappaMethod     fluidThermo;
            value           uniform 300;
        }
    }
}


epsilon
{
    internalField   uniform 0.01;

    boundaryField
    {
        inlet
        {
            type            fixedValue;
            value           uniform 0.01;
        }

        outlet
        {
            type            inletOutlet;
            inletValue      uniform 0.01;
        }

        ".*"
        {
            type            epsilonWallFunction;
            value           uniform 0.01;
        }
    }
}

k
{
    internalField   uniform 0.1;

    boundaryField
    {
        inlet
        {
            type            inletOutlet;
            inletValue      uniform 0.1;
        }

        outlet
        {
            type            zeroGradient;
            value           uniform 0.1;
        }

        ".*"
        {
            type            kqRWallFunction;
            value           uniform 0.1;
        }
    }
}


p_rgh
{
    internalField   uniform 0;

    boundaryField
    {
        inlet
        {
            type            zeroGradient;
            value           uniform 0;
        }

        outlet
        {
            type            fixedValue;
            value           uniform 0;
        }

        ".*"
        {
            type            fixedFluxPressure;
            value           uniform 0;
        }
    }
}

p
{
    internalField   uniform 0;

    boundaryField
    {
        ".*"
        {
            type            zeroGradient;
            //value           uniform 0;
        }
    }
}
But when I RUN this solver it gives me the error that "maximum number of iterations exceeded". The error is given below:


Code:
--> FOAM FATAL ERROR: 
Maximum number of iterations exceeded

    From function Foam::scalar Foam::species::thermo<Thermo, Type>::T(Foam::scalar, Foam::scalar, Foam::scalar, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar) const) const [with Thermo = Foam::hConstThermo<Foam::rhoConst<Foam::specie> >; Type = Foam::sensibleEnthalpy; Foam::scalar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam::hConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy>]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-4.1/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 66.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > > >::calculate() at ??:?
#3  Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > > >::correct() at ??:?
#4  ? at ??:?
#5  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#6  ? at ??:?
Aborted (core dumped)
I think there is some problem with my boundary conditions of the fluid.


log file of my solver is also attached.



Can someone please guide me where I am doing mistake?


I shall be very thankful if someone can help me out in this.


Thank you
Attached Files
File Type: zip log.chtMultiRegionSimpleFoam.zip (2.4 KB, 1 views)
Raza Javed is offline   Reply With Quote

Old   August 27, 2021, 10:46
Default Hi everyone
  #26
New Member
 
María Angélica Mayorga Sandoval
Join Date: Aug 2021
Posts: 1
Rep Power: 0
AngelicaMayorga is on a distinguished road
Hi everyone
I am trying to execute an interFoam action but I get the following message.
Could anyone help me please.

-> FOAM FATAL IO ERROR:
Please supply either 'volumetricFlowRate' or 'massFlowRate' and 'rho'

file: C:/OpenFOAM/20.09/Janus-dev/run/Task4/0/U/boundaryField/inlet from line 26
to line 28.

From function Foam::flowRateInletVelocityFvPatchVectorField::flo wRateInletVe
locityFvPatchVectorField(const Foam::fvPatch&, const Foam:imensionedField<Foam
::Vector<double>, Foam::volMesh>&, const Foam::dictionary&)
in file fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelo
cityFvPatchVectorField.C at line 78.

FOAM exiting
AngelicaMayorga 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



All times are GMT -4. The time now is 10:48.