engineTime: Completely replaced engineTime derived from Time

with the run-time selectable engine userTime embedded in Time.

All parts of the original engineTime relating to the engine geometry have been
moved to engineMesh.  This is part of the process of integrating engine
simulations within the standard moving-mesh solvers.
This commit is contained in:
Henry Weller
2021-11-03 19:33:41 +00:00
parent 7f56646aba
commit e10830632e
31 changed files with 222 additions and 1232 deletions

View File

@ -49,7 +49,6 @@ Description
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "engineTime.H"
#include "engineMesh.H"
#include "psiuReactionThermo.H"
#include "compressibleMomentumTransportModels.H"
@ -67,12 +66,11 @@ Description
int main(int argc, char *argv[])
{
#define CREATE_TIME createEngineTime.H
#define CREATE_MESH createEngineMesh.H
#include "postProcess.H"
#include "setRootCaseLists.H"
#include "createEngineTime.H"
#include "createTime.H"
#include "createEngineMesh.H"
#include "createControl.H"
#include "readCombustionProperties.H"
@ -99,7 +97,7 @@ int main(int argc, char *argv[])
runTime++;
Info<< "Crank angle = " << runTime.theta() << " CA-deg" << endl;
Info<< "Crank angle = " << runTime.timeName() << endl;
mesh.move();

View File

@ -12,7 +12,7 @@
Info<< "Mean u':" << meanup << endl;
logSummaryFile()
<< runTime.theta() << tab
<< runTime.userTimeValue() << tab
<< meanp << tab
<< meanT << tab
<< meanup << tab

View File

@ -30,7 +30,6 @@ Description
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "engineTime.H"
#include "engineMesh.H"
#include "psiThermo.H"
#include "compressibleMomentumTransportModels.H"
@ -44,12 +43,11 @@ Description
int main(int argc, char *argv[])
{
#define CREATE_TIME createEngineTime.H
#define CREATE_MESH createEngineMesh.H
#include "postProcess.H"
#include "setRootCaseLists.H"
#include "createEngineTime.H"
#include "createTime.H"
#include "createEngineMesh.H"
#include "createControl.H"
#include "createFields.H"

View File

@ -11,7 +11,7 @@
Info<< "Mean u':" << meanup << endl;
logSummaryFile()
<< runTime.theta() << tab
<< runTime.userTimeValue() << tab
<< meanp << tab
<< meanT << tab
<< meanup

View File

@ -47,12 +47,11 @@ Description
int main(int argc, char *argv[])
{
#define CREATE_TIME createEngineTime.H
#define CREATE_MESH createEngineMesh.H
#include "postProcess.H"
#include "setRootCaseLists.H"
#include "createEngineTime.H"
#include "createTime.H"
#include "createEngineMesh.H"
#include "createEngineControls.H"
#include "initContinuityErrs.H"

View File

@ -5,7 +5,7 @@ Info<< "Mean u':"
<< endl;
logSummaryFile
<< runTime.theta() << tab
<< runTime.userTimeValue() << tab
<< p.weightedAverage(mesh.V()).value() << tab
<< T.weightedAverage(mesh.V()).value() << tab
<< (sqrt((2.0/3.0)*turbulence->k()))().weightedAverage(mesh.V()).value()