|
[Sponsors] |
[pimpleDyMFoam][dynamicMeshDict] "Attempt to return dictionary entry as a primitive" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 18, 2019, 02:07 |
[pimpleDyMFoam][dynamicMeshDict] "Attempt to return dictionary entry as a primitive"
|
#1 |
Member
Saurabh Das
Join Date: Jul 2018
Posts: 43
Rep Power: 8 |
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 ??:? 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 } } Code:
solidBodyMotionFunction rotatingMotion; Regards, Sorabh |
|
July 18, 2019, 08:23 |
|
#2 |
Member
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 7 |
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. |
|
July 18, 2019, 08:24 |
|
#3 |
Member
Saurabh Das
Join Date: Jul 2018
Posts: 43
Rep Power: 8 |
||
July 18, 2019, 08:38 |
|
#4 |
Member
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 7 |
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; Code:
find $FOAM_TUTORIALS -name 'dynamicMeshDict' |
|
July 19, 2019, 03:08 |
|
#5 |
Member
Saurabh Das
Join Date: Jul 2018
Posts: 43
Rep Power: 8 |
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 // ************************************************************************* // Code:
keyword solver is undefined in dictionary "/home/mslab02/Saurabh/V15_V13_NoPorosity_ConcentratedSlurry_worked/constant/dynamicMeshDict" |
|
July 19, 2019, 07:57 |
|
#6 |
Member
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 7 |
Change your cellZone to propellerTip.
|
|
Tags |
dynamic mesh, openfoam |
|
|
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 08:46 |
driftFluxFoam viscosity model modification problem | dleduc | OpenFOAM Programming & Development | 15 | October 1, 2018 10:37 |
Creating a new field from terms of the turbulence model | HaZe | OpenFOAM Programming & Development | 15 | November 24, 2014 14:51 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |