CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] axissymetric body (https://www.cfd-online.com/Forums/openfoam-meshing/118278-axissymetric-body.html)

kulkarni Harshawardhan May 24, 2013 02:25

axissymetric body
 
hello friends,

I've got following error during creating axissymetric body in OpenFOAM.



--> FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
patch type wedge and patchField type zeroGradient

file: /home/harshawardhan/OpenFOAM/harshawardhan-2.2.0/run/tutorials/incompressible/icoFoam/cavity_test/0/p.boundaryField.front from line 25 to line 25.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file lnInclude/fvPatchFieldNew.C at line 165.

FOAM exiting

wyldckat May 25, 2013 17:13

Greetings Harshawardhan,

Good thing I keep an RSS monitor at OpenFOAM's bug tracker, otherwise I wouldn't find out about your (somewhat) more complete report here: http://www.openfoam.org/mantisbt/view.php?id=870

Just in case your bug report gets erased, here's the "blockMeshDict" you posted there:
Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.1;

vertices
(
    (0 0 0)
    (1 0 0)
    (1 1 0)
    (0 1 0)
    (0 0 1)
    (1 0 1)
    (1 1 1)
    (0 1 1)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (20 20 20) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
    movingWall
    {
        type wall;
        faces
        (
            (3 7 6 2)
        );
    }
    fixedWalls
    {
        type wall;
        faces
        (
            (0 4 7 3)
            (2 6 5 1)
            (1 5 4 0)
        );
    }
    frontAndBack
    {
        type empty;
        faces
        (
            (0 3 2 1)
            (4 5 6 7)
        );
    }
);

mergePatchPairs
(
);

// ************************************************************************* //

You can find out how to post pieces of code here on the forum, by following the instructions on my second signature link, namely this one: How to post code using [CODE]


Now, as for the error in question: you've missed some important steps while adapting the case.
From the output error code you've given and the "blockMeshDict" you've provided, it looks like you've modified the "p" field, but forgot to properly modify the "blockMeshDict" accordingly.

In other words:
  • In the file "blockMeshDict", you only have these patches:
    Code:

    movingWall
    fixedWalls
    frontAndBack

  • In the file "0/p", you have a patch named "front", which is not present in the previous list.
Therefore, your modifications are incomplete! ;)

Best regards,
Bruno

Yosmcer May 26, 2013 05:17

Hello,

Is the BlockMeshDict the right one for the problem you have?
I recognize something similar to the cavity tutorial one: this is a cube.
So this is not an axissymetric body (like cylinder, diabolo, cone, etc).

However, the problem seams to be the one pointed by wyldckat.


All times are GMT -4. The time now is 04:50.