Added testing functions. Will be removed again.

This commit is contained in:
Thomas Lichtenegger
2016-07-13 18:06:02 +02:00
parent 4f7c2cbbab
commit 32870ea73f
2 changed files with 58 additions and 3 deletions

View File

@ -121,7 +121,9 @@ int main(int argc, char *argv[])
#include "pEqn.H"
rhoeps=rho*voidfraction;
}
//divphi = fvc::div(phi);
//divphi2 = fvc::div(linearInterpolate(rho*U*voidfraction) & mesh.Sf());
gP = fvc::grad(p);
if (pimple.turbCorr())
{
turbulence->correct();

View File

@ -194,7 +194,60 @@ Info<< "Reading thermophysical properties\n" << endl;
//===============================
volScalarField divphi
(
IOobject
(
"divphi",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
mesh,
dimensionedScalar("0", dimensionSet(1, -3, -1, 0, 0), 0.0)
);
volScalarField divphi2
(
IOobject
(
"divphi2",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
mesh,
dimensionedScalar("0", dimensionSet(1, -3, -1, 0, 0), 0.0)
);
volVectorField gP
(
IOobject
(
"gP",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
mesh,
dimensionedVector("0", dimensionSet(1, -2, -2, 0, 0), vector::zero)
);
//
// volVectorField gP2
// (
// IOobject
// (
// "gP2",
// runTime.timeName(),
// mesh,
// IOobject::NO_READ,
// IOobject::AUTO_WRITE
// ),
// mesh,
// dimensionedVector("0", dimensionSet(1, -2, -2, 0, 0), vector::zero)
// );
// singlePhaseTransportModel laminarTransport(U, phi);