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] Meshing this plate with cyclic boundary conditions (https://www.cfd-online.com/Forums/openfoam-meshing/218030-meshing-plate-cyclic-boundary-conditions.html)

Roxxor91 June 5, 2019 07:18

Meshing this plate with cyclic boundary conditions
 
Hello everyone

I want to mesh a thin plate in the x-y plane and apply cyclic/periodic boundary conditions for each of my internal fields. Then I would like to use a compressible solver dbnsFoam (p, T, U) to move a vortex. I am trying to reproduce the results in that paper: https://dl.acm.org/citation.cfm?id=3067565, section 7.5.

Here is my 'blockMeshDict'

Code:

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

convertToMeters 1;

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

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

edges
(
);

boundary
(
    inlet
    {
      faces ((0 4 7 3));
      type cyclic;
      neighbourPatch outlet;
    }
    outlet
    {
      faces ((2 6 5 1));
      type cyclic;
      neighbourPatch inlet;
    }
    bottom
    {
      faces ((1 5 4 0));
      type cyclic;
      neighbourPatch top;
    }
    top
    {
      faces ((3 7 6 2));
      type cyclic;
      neighbourPatch bottom;
    }
    left
    {
      faces  ((0 3 2 1));
      type wall;//cyclic;
      //neighbourPatch right;
    }
    right
    {
      faces ((4 5 6 7));
      type wall;//cyclic;
      //neighbourPatch left;
    }
);

mergePatchPairs
(
);


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

and here is my error message

Code:

Creating block mesh from
    "./shockTube/constant/polyMesh/blockMeshDict"

Creating curved edges
Creating topology blocks
Creating topology patches

Creating block mesh topology
Segmentation fault (core dumped)

I am using foam-extend-4.0 on Linux Mint 18.

Can you help me figure out what is wrong in this piece of code ?

Thanks

Thomas


All times are GMT -4. The time now is 05:42.