CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Translating 'U' file from OpenFOAM 3 to OpenFOAM 5 (https://www.cfd-online.com/Forums/openfoam/219990-translating-u-file-openfoam-3-openfoam-5-a.html)

Sorabh August 20, 2019 00:47

Translating 'U' file from OpenFOAM 3 to OpenFOAM 5
 
In an older openfoam 3 case file, the 'U' file was written as such:

Code:

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

internalField  uniform (0 0 0);

boundaryField
{
    //- Set patchGroups for constraint patches
    #includeEtc "caseDicts/setConstraintTypes"

    outerCylinder
    {
        type            fixedValue;
        value          uniform (0 0 0);
    }

    walls
    {
        type            fixedValue;
        value          uniform (0 0 0);
    }

    "propeller.*"
    {
        type            movingWallVelocity;
        value          uniform (0 0 0);
    }
}

And the case ran perfectly fine. However, with openfoam 5, this is not working. It is asking for a 'patchField entry for innerCylinderSmall' (innerCylinderSmall is a patch which did not need any entry in openfoam 3)

What changes do I need to make in 'U' to make the case compatible with openfoam5?

Thanks.

Sorabh August 23, 2019 00:13

No one to answer this query? I urgently need the solution, I would be very grateful for any help in this matter.

anon_q August 23, 2019 01:30

As you can see in the case: $FOAM_TUTORIALS/incompressible/pimpleDyMFoam/propeller, there are some scripts to run the case, mainly:

Allrun and Allrun.pre.
The script Allrun calls Allrun.pre before running the solver.

So you have first to run Allrun.pre script before running the solver:
Code:

./Allrun.pre
Just if you are curious, take a look to this file [font='Courier New'']Allrun.pre [/font] to see its content.


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