ENH: engineTime: Generalized to provide run-time selection of piston-motion

Standard crank-connecting rod and the new free-piston kinematics motion options
are provides, others can easily be added.

Contributed by Francesco Contino and Nicolas Bourgeois, BURN Research Group.
This commit is contained in:
Henry Weller
2017-09-19 09:26:26 +01:00
committed by Andrew Heather
parent d425421c0a
commit 01efb2c85b
32 changed files with 1599 additions and 109 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -77,7 +77,7 @@ int main(int argc, char *argv[])
runTime++;
Info<< "Crank angle = " << runTime.theta() << " CA-deg"
Info<< "Engine time = " << runTime.theta() << runTime.unit()
<< endl;
mesh.move();

View File

@ -0,0 +1,3 @@
#include "createTimeControls.H"
maxDeltaT = runTime.userTimeToTime(maxDeltaT);