enGits / engrid

ENGRID is a mesh generation software with CFD applications in mind. It supports automatic prismatic boundary layer grids for Navier-Stokes simulations and has a Qt based GUI.
Other
146 stars 55 forks source link

Unable to import cases created with OpenFOAM 2.3 #46

Open wyldckat opened 10 years ago

wyldckat commented 10 years ago

As reported in this thread: http://www.cfd-online.com/Forums/engrid/138251-error-importing-openfoam-case-engrid.html - there is a new entry "inGroups" for each boundary in the file "constant/polyMesh/boundary". For example, see the tutorial "incompressible/icoFoam/elbow".

Steps for solving this issue:

  1. Write in the FAQ about the workaround: http://www.cfd-online.com/Forums/engrid/138251-error-importing-openfoam-case-engrid.html#post500283
  2. Add compatibility in enGrid.
wyldckat commented 10 years ago

Example content of the file from the aforementioned tutorial:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

6
(
    wall-4
    {
        type            wall;
        inGroups        1(wall);
        nFaces          100;
        startFace       1300;
    }
    velocity-inlet-5
    {
        type            patch;
        nFaces          8;
        startFace       1400;
    }
    velocity-inlet-6
    {
        type            patch;
        nFaces          4;
        startFace       1408;
    }
    pressure-outlet-7
    {
        type            patch;
        nFaces          8;
        startFace       1412;
    }
    wall-8
    {
        type            wall;
        inGroups        1(wall);
        nFaces          34;
        startFace       1420;
    }
    frontAndBackPlanes
    {
        type            empty;
        inGroups        1(empty);
        nFaces          1836;
        startFace       1454;
    }
)

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