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;

View File

@ -65,19 +65,19 @@ functions
libs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
writeControl writeTime; writeControl writeTime;
} }
lambVector1 lambVector1
{ {
type lambVector; type lambVector;
libs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
writeControl writeTime; writeControl writeTime;
field U; field U;
} }
div1 div1
{ {
type div; type div;
libs ("libfieldFunctionObjects.so"); libs ("libfieldFunctionObjects.so");
writeControl writeTime; writeControl writeTime;
field lambVector; field lambVector;
} }
fieldAverage1 fieldAverage1
{ {
@ -102,18 +102,18 @@ functions
base time; base time;
} }
lambVector lambVector
{ {
mean on; mean on;
prime2Mean off; prime2Mean off;
base time; base time;
} }
div(lambVector) div(lambVector)
{ {
mean on; mean on;
prime2Mean off; prime2Mean off;
base time; base time;
} }
); );
} }

View File

@ -1,23 +1,23 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 | | \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com | | \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
{ {
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
object blockMeshDict; object blockMeshDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 1; scale 1;
vertices vertices
( (
( -25.0 0 1 ) // 0 ( -25.0 0 1 ) // 0
( 0 0 1 ) // 1 ( 0 0 1 ) // 1
( 0.3 0 1 ) // 2 ( 0.3 0 1 ) // 2
@ -45,10 +45,10 @@ vertices
( 0.3 5 -1 ) // 21 ( 0.3 5 -1 ) // 21
( 0 5 -1 ) // 22 ( 0 5 -1 ) // 22
( -25.0 5 -1 ) // 23 ( -25.0 5 -1 ) // 23
); );
blocks blocks
( (
// Medium level for tutorial // Medium level for tutorial
hex ( 0 1 13 12 11 10 22 23) (30 1 81) simpleGrading (0.002 1 20000) hex ( 0 1 13 12 11 10 22 23) (30 1 81) simpleGrading (0.002 1 20000)
hex ( 1 2 14 13 10 9 21 22) (25 1 81) simpleGrading (2 1 20000) hex ( 1 2 14 13 10 9 21 22) (25 1 81) simpleGrading (2 1 20000)
@ -62,7 +62,7 @@ blocks
//hex ( 2 3 15 14 9 8 20 21) (480 1 648) simpleGrading (1 1 20000) //hex ( 2 3 15 14 9 8 20 21) (480 1 648) simpleGrading (1 1 20000)
//hex ( 3 4 16 15 8 7 19 20) (200 1 648) simpleGrading (0.5 1 20000) //hex ( 3 4 16 15 8 7 19 20) (200 1 648) simpleGrading (0.5 1 20000)
//hex ( 4 5 17 16 7 6 18 19) (240 1 648) simpleGrading (500 1 20000) //hex ( 4 5 17 16 7 6 18 19) (240 1 648) simpleGrading (500 1 20000)
); );
edges #codeStream edges #codeStream
{ {
@ -101,37 +101,37 @@ edges #codeStream
}; };
boundary boundary
( (
inlet inlet
{ {
type patch; type patch;
faces faces
( (
(0 11 23 12) (0 11 23 12)
); );
} }
outlet outlet
{ {
type patch; type patch;
faces faces
( (
(17 18 6 5) (17 18 6 5)
); );
} }
top top
{ {
type symmetryPlane; type symmetryPlane;
faces faces
( (
(11 10 22 23) (11 10 22 23)
(10 9 21 22) (10 9 21 22)
( 9 8 20 21) ( 9 8 20 21)
( 8 7 19 20) ( 8 7 19 20)
( 7 6 18 19) ( 7 6 18 19)
); );
} }
symUp symUp
@ -143,15 +143,15 @@ boundary
); );
} }
bump bump
{ {
type wall; type wall;
faces faces
( (
( 1 13 14 2) ( 1 13 14 2)
( 2 14 15 3) ( 2 14 15 3)
( 3 15 16 4) ( 3 15 16 4)
); );
} }
symDown symDown
@ -161,7 +161,7 @@ boundary
( (
( 4 16 17 5) ( 4 16 17 5)
); );
} }
frontAndBack frontAndBack
{ {
@ -180,12 +180,12 @@ boundary
( 3 8 7 4) ( 3 8 7 4)
( 4 7 6 5) ( 4 7 6 5)
); );
} }
); );
mergePatchPairs mergePatchPairs
( (
); );
// ************************************************************************* // // ************************************************************************* //

View File

@ -46,7 +46,7 @@ boundaryField
{ {
type zeroGradient; type zeroGradient;
} }
bottomWall bottomWall
{ {
type zeroGradient; type zeroGradient;

View File

@ -46,7 +46,7 @@ boundaryField
{ {
type zeroGradient; type zeroGradient;
} }
bottomWall bottomWall
{ {
type zeroGradient; type zeroGradient;