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

[pimpleDyMFoam][dynamicMeshDict] "Attempt to return dictionary entry as a primitive"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2019, 01:07
Default [pimpleDyMFoam][dynamicMeshDict] "Attempt to return dictionary entry as a primitive"
  #1
Member
 
Saurabh Das
Join Date: Jul 2018
Posts: 43
Rep Power: 7
Sorabh is on a distinguished road
I am trying to simulate a propeller in pimpleDyMFoam. Meshing has been successful, but on running the solver, the following error appears:

Code:
Attempt to return dictionary entry as a primitive

file: /home/mslab02/Saurabh/OpenFoamTutorials/incompressible/pimpleDyMFoam/TestPropeller2/constant/dynamicMeshDict.solver from line 26 to line 26.

    From function ITstream& primitiveEntry::stream() const
    in file db/dictionary/dictionaryEntry/dictionaryEntry.C at line 83.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::IOerror::abort() at ??:?
#2  Foam::dictionaryEntry::stream() const at ??:?
#3  Foam::motionSolver::New(Foam::polyMesh const&, Foam::IOdictionary const&) at ??:?
#4  Foam::motionSolver::New(Foam::polyMesh const&) at ??:?
#5  Foam::dynamicMotionSolverFvMesh::dynamicMotionSolverFvMesh(Foam::IOobject const&) at ??:?
#6  Foam::dynamicFvMesh::addIOobjectConstructorToTable<Foam::dynamicMotionSolverFvMesh>::New(Foam::IOobject const&) at ??:?
#7  Foam::dynamicFvMesh::New(Foam::IOobject const&) at ??:?
#8  ? at ??:?
#9  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10  ? at ??:?
It seems like the issue is with the dynamicMeshDict, line 26. This is my dynamicMeshDict file:

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

dynamicFvMesh   solidBodyMotionFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

solidBodyMotionFvMeshCoeffs
{
    cellZone        propellerTip;

    solidBodyMotionFunction  rotatingMotion;
    rotatingMotionCoeffs
    {
        origin      (0 0 0);
        axis        (0 1 0);
        omega       105; // rad/s //126 rad/sec == 1200 rpm
    }
}
The line causing the trouble seems to be this one:

Code:
solidBodyMotionFunction  rotatingMotion;
It would be a great help if someone could help me out with this problem.

Regards,
Sorabh
Sorabh is offline   Reply With Quote

Old   July 18, 2019, 07:23
Default
  #2
Member
 
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 6
CFD_10 is on a distinguished road
Which version of OpenFOAM you are using?
is it 3.0.x?
I think you are using an old dictionary version with a recent version of OpenFOAM.
CFD_10 is offline   Reply With Quote

Old   July 18, 2019, 07:24
Default
  #3
Member
 
Saurabh Das
Join Date: Jul 2018
Posts: 43
Rep Power: 7
Sorabh is on a distinguished road
Quote:
Originally Posted by CFD_10 View Post
Which version of OpenFOAM you are using?
is it 3.0.x?
I am using OpenFOAM 5.0
Sorabh is offline   Reply With Quote

Old   July 18, 2019, 07:38
Default
  #4
Member
 
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 6
CFD_10 is on a distinguished road
I think there is some changes in OpenFOAM 5 version. I think solidBodyMotionFvMesh is changed to solidBodyMotionFvMesh
Here is an example:

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh   dynamicMotionSolverFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

motionSolver    solidBody;

cellZone        propellerTip;

solidBodyMotionFunction  rotatingMotion;

origin        (0 0 0);
axis          (0 1 0);
omega         105;
You can find other examples by executing the following:
Code:
find $FOAM_TUTORIALS -name 'dynamicMeshDict'
CFD_10 is offline   Reply With Quote

Old   July 19, 2019, 02:08
Default
  #5
Member
 
Saurabh Das
Join Date: Jul 2018
Posts: 43
Rep Power: 7
Sorabh is on a distinguished road
Well, I changed the syntax as instructed. This is the new dynamicMeshDict:

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh   dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");

motionSolver    solidBody;

cellZone        innerCylinderSmall;

solidBodyMotionFunction  rotatingMotion;

origin      (0 0 0);
axis        (0 1 0);
omega       158; // rad/s


// ************************************************************************* //
But the following error pops up:
Code:
keyword solver is undefined in dictionary "/home/mslab02/Saurabh/V15_V13_NoPorosity_ConcentratedSlurry_worked/constant/dynamicMeshDict"
Sorabh is offline   Reply With Quote

Old   July 19, 2019, 06:57
Default
  #6
Member
 
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 6
CFD_10 is on a distinguished road
Change your cellZone to propellerTip.
CFD_10 is offline   Reply With Quote

Reply

Tags
dynamic mesh, openfoam


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
No matching function error: Phase change source term added to interMixingFoam wavefunction OpenFOAM Programming & Development 2 February 4, 2022 07:46
driftFluxFoam viscosity model modification problem dleduc OpenFOAM Programming & Development 15 October 1, 2018 09:37
Creating a new field from terms of the turbulence model HaZe OpenFOAM Programming & Development 15 November 24, 2014 13:51
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51


All times are GMT -4. The time now is 23:48.