TurbulenceModels: LienCubicKE, ShihQuadraticKE and LienLeschziner models rewritten

The implementation now correspond to the definitions in the readily
available reference:

http://personalpages.manchester.ac.uk/staff/david.d.apsley/specturb.pdf

in which a large number of linear and non-linear models are presented in
a clean and consistent manner.  This has made re-implementation and
checking far easier than working from the original references which anyway
are no longer available for the LienCubicKE and ShihQuadraticKE models.
This commit is contained in:
Henry
2015-03-01 17:55:16 +00:00
parent f04a84e970
commit 5aa5fe6f11
13 changed files with 357 additions and 889 deletions

View File

@ -57,19 +57,18 @@ int main()
Info<< "Check symmetric transformation "
<< transform(t1, st1) << endl;
Info<< "Check for dot product of symmetric tensors "
Info<< "Check dot product of symmetric tensors "
<< (st1 & st2) << endl;
Info<< "Check for inner sqr of a symmetric tensor "
Info<< "Check inner sqr of a symmetric tensor "
<< innerSqr(st1) << " " << innerSqr(st1) - (st1 & st1) << endl;
Info<< "Check for symmetric part of dot product of symmetric tensors "
Info<< "Check symmetric part of dot product of symmetric tensors "
<< twoSymm(st1&st2) - ((st1&st2) + (st2&st1)) << endl;
tensor sk1 = skew(t6);
tensor sk2 = skew(t7);
Info<< "Check for symmetric part of dot product of skew tensors "
<< twoSymm(sk1&sk2) - ((sk1&sk2) - (sk2&sk1)) << endl;
Info<< "Check dot product of symmetric and skew tensors "
<< twoSymm(st1&sk1) - ((st1&sk1) - (sk1&st1)) << endl;
vector v1(1, 2, 3);