Outlet Boundary condition (extrapolated type) bug

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
M4mina
Posts: 8
Joined: Sat Apr 09, 2022 4:48 am

Outlet Boundary condition (extrapolated type) bug

Post by M4mina »

When I tried to define an exit as outlet extrapolated i received an error that the word uniform or nonuniform is missing from the case/0/U dictionary
I had to add the word uniform myself to make it work in line 32 I added "// I added Uniform here!!!!! [Mina]" to find it easily

Code: Select all

/*--------------------------------*- C++ -*----------------------------------*\
|                                                                             |
|                Generated by the CfdOF workbench for FreeCAD                 |
|                  https://gitlab.com/opensimproject/CfdOF                    |
|                                                                             |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (0.0 0.0 0.0);

boundaryField
{

    inlet
    {
        // Fix all three components of velocity on inflow and only the normal component on outflow,
        // in order to be well-posed if there are some faces on the patch which are actually outflows.
        type                fixedNormalInletOutletVelocity;
        fixTangentialInflow yes;
        normalVelocity
        {
            type            fixedValue;
            value           uniform ( 0.0 0.4255 0.0 );
        }
        value               uniform ( 0.0 0.4255 0.0 );
    }

    open
    {
        type        inletOutlet;
        inletValue uniform (0 0 0); // I added Uniform here!!!!! [Mina]
        //TODO: We need to write an out-flowing value here so that adjustPhi can have an adjustable flux to work
        //TODO: with at iteration 1
        value       $internalField;
    }

    open001
    {
        type        pressureInletOutletVelocity;
        value       $internalField;
    }

    defaultFaces
    {
        type        slip;
        value       $internalField;
    }

}
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Outlet Boundary condition (extrapolated type) bug

Post by oliveroxtoby »

M4mina wrote: Fri Nov 11, 2022 12:04 am When I tried to define an exit as outlet extrapolated i received an error that the word uniform or nonuniform is missing from the case/0/U dictionary
Thanks. Fixed.
M4mina
Posts: 8
Joined: Sat Apr 09, 2022 4:48 am

Re: Outlet Boundary condition (extrapolated type) bug

Post by M4mina »

Thank you :)
Post Reply