mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
using new constant definitions
This commit is contained in:
@ -25,7 +25,7 @@ License
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "tensor.H"
|
||||
#include "mathematicalConstants.H"
|
||||
#include "mathConstants.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -150,10 +150,8 @@ vector eigenValues(const tensor& t)
|
||||
scalar aBy3 = a/3;
|
||||
|
||||
i = m2SqrtQ*cos(theta/3) - aBy3;
|
||||
ii = m2SqrtQ*cos((theta + mathematicalConstant::twoPi)/3)
|
||||
- aBy3;
|
||||
iii = m2SqrtQ*cos((theta - mathematicalConstant::twoPi)/3)
|
||||
- aBy3;
|
||||
ii = m2SqrtQ*cos((theta + constant::math::twoPi)/3) - aBy3;
|
||||
iii = m2SqrtQ*cos((theta - constant::math::twoPi)/3) - aBy3;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -345,10 +343,8 @@ vector eigenValues(const symmTensor& t)
|
||||
scalar aBy3 = a/3;
|
||||
|
||||
i = m2SqrtQ*cos(theta/3) - aBy3;
|
||||
ii = m2SqrtQ*cos((theta + mathematicalConstant::twoPi)/3)
|
||||
- aBy3;
|
||||
iii = m2SqrtQ*cos((theta - mathematicalConstant::twoPi)/3)
|
||||
- aBy3;
|
||||
ii = m2SqrtQ*cos((theta + constant::math::twoPi)/3) - aBy3;
|
||||
iii = m2SqrtQ*cos((theta - constant::math::twoPi)/3) - aBy3;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user