Merge branch 'master' of develop.openfoam.com:Development/OpenFOAM-plus

This commit is contained in:
sergio
2019-07-30 08:49:57 -07:00
committed by Andrew Heather
7 changed files with 112 additions and 89 deletions

View File

@ -1,2 +1,2 @@
api=1906 api=1906
patch=190708 patch=190724

View File

@ -0,0 +1,23 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Version: v1906
\\ / A nd | Web: www.OpenFOAM.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Calculates and writes the second largest eigenvalue of the sum of the
square of the symmetrical and anti-symmetrical parts of the velocity
gradient tensor.
\*---------------------------------------------------------------------------*/
type lambVector;
libs ("libfieldFunctionObjects.so");
field U;
executeControl writeTime;
writeControl writeTime;
// ************************************************************************* //

View File

@ -259,7 +259,7 @@ inline Foam::quaternion::quaternion
- rotationTensor.zz() - rotationTensor.zz()
); );
w_ = (rotationTensor.xz() - rotationTensor.xz())/s; w_ = (rotationTensor.xz() - rotationTensor.zx())/s;
v_[0] = (rotationTensor.xy() + rotationTensor.yx())/s; v_[0] = (rotationTensor.xy() + rotationTensor.yx())/s;
v_[1] = 0.25*s; v_[1] = 0.25*s;
v_[2] = (rotationTensor.yz() + rotationTensor.zy())/s; v_[2] = (rotationTensor.yz() + rotationTensor.zy())/s;