diff --git a/applications/utilities/mesh/manipulation/moveMesh/moveMesh.C b/applications/utilities/mesh/manipulation/moveMesh/moveMesh.C index b63a7aa7e11986ec58f9b42d5359a9b2d405d82b..9b9ecdf0d27e5d42dc0ffcbcd758c05d5df691a0 100644 --- a/applications/utilities/mesh/manipulation/moveMesh/moveMesh.C +++ b/applications/utilities/mesh/manipulation/moveMesh/moveMesh.C @@ -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())