ENH: Initial testing updates

This commit is contained in:
Andrew Heather
2016-09-26 09:28:31 +01:00
parent 1fbcb686ff
commit ad1e798293
17 changed files with 89 additions and 103 deletions

View File

@ -137,12 +137,10 @@ bool Foam::functionObjects::yPlus::execute()
const volScalarField::Boundary& d = nwd.y();
// nut needed for wall function patches
const volScalarField::Boundary& nutBf = model.nut()().boundaryField();
tmp<volScalarField> tnut = model.nut();
const volScalarField::Boundary& nutBf = tnut().boundaryField();
// nuEff nu and U needed for plain wall patches
const volScalarField::Boundary& nuEffBf =
model.nuEff()().boundaryField();
const volScalarField::Boundary& nuBf = model.nu()().boundaryField();
// U needed for plain wall patches
const volVectorField::Boundary& UBf = model.U().boundaryField();
const fvPatchList& patches = mesh_.boundary();
@ -167,9 +165,9 @@ bool Foam::functionObjects::yPlus::execute()
d[patchi]
*sqrt
(
nuEffBf[patchi]
model.nuEff(patchi)
*mag(UBf[patchi].snGrad())
)/nuBf[patchi];
)/model.nu(patchi);
}
}
}

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -25,7 +25,7 @@ Class
Foam::functionObjects::runTimeControl
Group
grpJobControlFunctionObjects
grpUtilitiesFunctionObjects
Description
Controls when the calculation is terminated based on satisfying
@ -120,9 +120,6 @@ public:
//- Execute, currently does nothing
virtual bool execute();
//- Called when time was set at the end of the Time::operator++
virtual void timeSet();
//- Calculate the runTimeControl and write
virtual bool write();
};