Skip to content
Snippets Groups Projects
Commit 0f3fc445 authored by andy's avatar andy
Browse files

ENH: Updates to Lambda2 and Q function objects

parent a65254af
No related merge requests found
......@@ -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();
......
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment