mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updates to Lambda2 and Q function objects
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user