mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Further tinkering and additional test of the eigenvaues of symmTensors.
This commit is contained in:
@ -38,6 +38,12 @@ int main()
|
||||
<< (eigenVector(t6, e[2]) & t6) << e[2]*eigenVector(t6, e[2])
|
||||
<< endl;
|
||||
|
||||
Info<< "Check eigenvalues for symmTensor "
|
||||
<< eigenValues(symm(t6)) - eigenValues(tensor(symm(t6))) << endl;
|
||||
|
||||
Info<< "Check eigenvectors for symmTensor "
|
||||
<< eigenVectors(symm(t6)) - eigenVectors(tensor(symm(t6))) << endl;
|
||||
|
||||
tensor t7(1, 2, 3, 2, 4, 5, 3, 5, 6);
|
||||
|
||||
Info<< "Check transformation "
|
||||
@ -49,7 +55,7 @@ int main()
|
||||
<< transform(t1, st1) << endl;
|
||||
|
||||
vector v1(1, 2, 3);
|
||||
|
||||
|
||||
Info<< sqr(v1) << endl;
|
||||
Info<< symm(t7) << endl;
|
||||
Info<< twoSymm(t7) << endl;
|
||||
|
||||
Reference in New Issue
Block a user