CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   how to define the motionSolver (http://www.cfd-online.com/Forums/openfoam/107933-how-define-motionsolver.html)

conceptone October 9, 2012 19:40

how to define the motionSolver
 
Hi everyone, right now I am running the sprayEnginefoam. In the engineGeometry input file, I select the fvMotionSolver for engineMesh for dynamic meshing,but I got the error message below. Is there anyone knowing how to define the initial value for motionSolver in the input file? Thanks.

--> FOAM FATAL IO ERROR:
keyword motionSolver is undefined in dictionary "/usr/people4/liao23/sprayEngine_runcases/biggermesh2/constant/engineGeometry"

file: /usr/people4/liao23/sprayEngine_runcases/biggermesh2/constant/engineGeometry from line 18 to line 29.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 400.

FOAM exiting

Peter_600 October 10, 2012 03:10

Just plug in motionSolver in ur dictionary file. Than re-run yyour case. It will complain anyways , but also gives you a list with available motionSolvers. Than choose just one of them. OR check the source code itself.

conceptone October 10, 2012 21:15

Thanks for replying, but I tried the first way by:
engineMesh fvMotionSolver;
motionSolver dummy;
in engineGeometry file
and it returns:
--> FOAM FATAL IO ERROR:
cannot open file

file: /usr/people4/liao23/sprayEngine_runcases/biggermesh_0rpm/constant/dynamicMeshDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 87.
I also read the code in fvMotionSolverEngineMesh.C but didn't figure out..I am not familiar with C++....

Peter_600 October 11, 2012 03:11

Go ahead an create your dynamicMeshDict.
Are u using 1.6-ext? If yes and u are want to use engineMesh, u can choose between the following classes, which are derived from engineMesh:

fvMotionSolverEngineMesh
layeredEngineMesh
staticEngineMesh
tetDecompositionEngineMesh


try one of these! instead of fvMotionSolver

Cheers Peter

conceptone October 11, 2012 13:44

acutually I am using 2.1 version and fvMotionSolverEngineMesh in 1.6 also needs to input the fvMotionSolver. But still thanks!


All times are GMT -4. The time now is 02:32.