mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: fvMotionSolverEngineMesh: updated for new fvMotionSolver
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,7 +43,22 @@ Foam::fvMotionSolverEngineMesh::fvMotionSolverEngineMesh(const IOobject& io)
|
|||||||
:
|
:
|
||||||
engineMesh(io),
|
engineMesh(io),
|
||||||
pistonLayers_("pistonLayers", dimLength, 0.0),
|
pistonLayers_("pistonLayers", dimLength, 0.0),
|
||||||
motionSolver_(*this, engineDB_.engineDict().lookup("motionSolver"))
|
motionSolver_
|
||||||
|
(
|
||||||
|
*this,
|
||||||
|
IOdictionary
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"dynamicMeshDict",
|
||||||
|
time().constant(),
|
||||||
|
*this,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
engineDB_.engineDict()
|
||||||
|
)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
engineDB_.engineDict().readIfPresent("pistonLayers", pistonLayers_);
|
engineDB_.engineDict().readIfPresent("pistonLayers", pistonLayers_);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user