Skip to content
Snippets Groups Projects
Commit b87dd814 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: add moveMesh -deltaT option

- overrides normal deltaT for testing accelerated motion.

  Can be useful to test mesh motions with constant/dynamicMeshDict
  entries (updateControl, updateInterval) where the mesh motion is
  much slower than any of the fluid physics.

  see commit 87bba9ae
parent 076bcc25
No related merge requests found
......@@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2015 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -50,10 +51,23 @@ int main(int argc, char *argv[])
"A solver utility for moving meshes"
);
argList::addOption
(
"deltaT",
"time",
"Override deltaT for accelerated motion"
);
#include "setRootCase.H"
#include "createTime.H"
#include "createNamedMesh.H"
scalar deltaT = 0;
if (args.readIfPresent("deltaT", deltaT))
{
runTime.setDeltaT(deltaT);
}
autoPtr<motionSolver> motionPtr = motionSolver::New(mesh);
while (runTime.loop())
......
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