Commit 1cba7e17 authored by Henry's avatar Henry
Browse files

fvMotionSolverEngineMesh: construct the motionSolver from the engineTime IOdictionary

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=774
parent 17f37056
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -46,19 +46,8 @@ Foam::fvMotionSolverEngineMesh::fvMotionSolverEngineMesh(const IOobject& io)
motionSolver_
(
*this,
IOdictionary
(
IOobject
(
"dynamicMeshDict",
time().constant(),
*this,
IOobject::NO_READ,
IOobject::NO_WRITE
),
engineDB_.engineDict()
)
)
{
engineDB_.engineDict().readIfPresent("pistonLayers", pistonLayers_);
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -133,7 +133,7 @@ public:
// Access
//- Return the engine geometry dictionary
const dictionary& engineDict() const
const IOdictionary& engineDict() const
{
return dict_;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment