ENH: Updates to Lambda2 and Q function objects

This commit is contained in:
andy
2012-11-28 17:09:43 +00:00
parent a65254af4b
commit 0f3fc4457a
2 changed files with 3 additions and 10 deletions

View File

@ -85,8 +85,7 @@ Foam::Lambda2::Lambda2
IOobject::NO_WRITE
),
mesh,
dimensionedScalar("0", dimless, 0.0),
zeroGradientFvPatchScalarField::typeName
dimensionedScalar("0", dimless/sqr(dimTime), 0.0)
)
);
@ -147,11 +146,7 @@ void Foam::Lambda2::write()
mesh.lookupObject<volScalarField>(type())
);
scalarField& iField = Lambda2.internalField();
iField = -eigenValues(SSplusWW)().component(vector::Y);
Lambda2.correctBoundaryConditions();
Lambda2 = -eigenValues(SSplusWW)().component(vector::Y);
Lambda2.write();

View File

@ -84,7 +84,7 @@ Foam::Q::Q
IOobject::NO_WRITE
),
mesh,
dimensionedScalar("0", dimless, 0.0)
dimensionedScalar("0", dimless/sqr(dimTime), 0.0)
)
);
@ -141,8 +141,6 @@ void Foam::Q::write()
Q = 0.5*(sqr(tr(gradU)) - tr(((gradU) & (gradU))));
Q.correctBoundaryConditions();
Q.write();
Info<< type() << " output:" << nl