dynamicFvMesh: Rationalised the handling and caching of the dynamicMeshDict

The base dynamicFvMesh now reads and stores the dynamicMeshDict and motion
solver receive it as a constructor argument.

Also rationalised the motionSolver diffusivity classes in which storing the
faceDiffusivity field provided no advantage; now it is created and returned on
demand.
This commit is contained in:
Henry Weller
2019-03-21 10:58:31 +00:00
parent 5a978bbc65
commit a1a225c504
75 changed files with 447 additions and 729 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -40,12 +40,22 @@ using namespace Foam;
int main(int argc, char *argv[])
{
#include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
autoPtr<motionSolver> motionPtr = motionSolver::New(mesh);
IOdictionary dynamicMeshDict
(
IOobject
(
"dynamicMeshDict",
mesh.time().constant(),
mesh,
IOobject::MUST_READ
)
);
autoPtr<motionSolver> motionPtr = motionSolver::New(mesh, dynamicMeshDict);
while (runTime.loop())
{