CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

blockMesh with error "Attempt to return dictionary entry as a primitive"

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Lorenzo210

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 29, 2024, 00:39
Question blockMesh with error "Attempt to return dictionary entry as a primitive"
  #1
New Member
 
Yidonguk
Join Date: May 2024
Posts: 2
Rep Power: 0
half-opened is on a distinguished road
I ran blockMesh and got this error message
Code:
--> FOAM FATAL IO ERROR: 
Attempt to return dictionary entry as a primitive


file: /home/dnrmehd/OpenFOAM/dnrmehd-11/run/test1/system/blockMeshDict/boundary from line 53 to line 76.

    From function virtual Foam::ITstream& Foam::dictionaryEntry::stream() const
    in file db/dictionary/dictionaryEntry/dictionaryEntry.C at line 83.
[/CODE]

and the code of blockMeshDict is
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  11
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}

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

convertToMeters 0.01;

vertices
(
    (0 0 0)      // 0
    (10 0 0)     // 1
    (10 10 0)    // 2
    (0 10 0)     // 3
    (0 0 12)     // 4
    (10 0 12)    // 5
    (10 10 12)   // 6
    (0 10 12)    // 7
);

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

edges
(
    arc 0 1 (5 5 0)
    arc 1 2 (10 5 5)
    arc 2 3 (5 15 0)
    arc 3 0 (-5 5 0)
    arc 4 5 (5 5 12)
    arc 5 6 (15 5 12)
    arc 6 7 (5 15 12)
    arc 7 4 (-5 5 12)
);

boundary
{
    walls
    {
        type wall;
        faces
        (
            (0 3 7 4)
            (1 2 6 5)
            (0 1 5 4)
            (2 3 7 6)
        );
    }
    bottom
    {
        type wall;
        faces
        (
            (0 3 2 1)
        );
    }
    top
    {
        type wall;
        faces
        (
            (4 5 6 7)
        );
    }
}

mergePatchPairs
(
);

// ************************************************************************* //
what should i do
half-opened is offline   Reply With Quote

Old   May 29, 2024, 03:59
Default
  #2
Member
 
Lorenzo
Join Date: Apr 2020
Location: Italy
Posts: 44
Rep Power: 6
Lorenzo210 is on a distinguished road
Hello,


It should be:


boundary
(
...
);


Instead of:


boundary
{
...
}


Cheers,
Lorenzo
half-opened likes this.
Lorenzo210 is offline   Reply With Quote

Reply

Tags
error


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
buoyantSimpleRadiationFoam - "Attempt to return primitive entry [...] mixture [...]" javad814 OpenFOAM 6 June 14, 2022 00:57
Add Temperature to multiphaseInterFoam nthiers OpenFOAM Programming & Development 6 February 17, 2016 08:42
Creating a new field from terms of the turbulence model HaZe OpenFOAM Programming & Development 15 November 24, 2014 13:51
Derive fixed number of phase from clone () in multiphaseEulerFoam Solver Aj Nair OpenFOAM Programming & Development 0 December 16, 2013 20:41
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48


All times are GMT -4. The time now is 19:59.