https://mooseframework.inl.gov
Functions
RotationTensorTest.C File Reference

Go to the source code of this file.

Functions

 TEST (RotationTensorTest, rotation)
 

Function Documentation

◆ TEST()

TEST ( RotationTensorTest  ,
rotation   
)

Definition at line 15 of file RotationTensorTest.C.

16 {
17  std::vector<Real> input(81);
18  for (size_t i = 0; i < input.size(); ++i)
19  input[i] = i + 1.1;
20 
22 
25 
26  auto xyrot = xrot * yrot;
27  auto yxrot = yrot * xrot;
28 
29  auto axy1 = a;
30  axy1.rotate(xrot);
31  axy1.rotate(yrot);
32 
33  auto axy2 = a;
34  axy2.rotate(yxrot);
35 
36  EXPECT_NEAR(0, (axy1 - axy2).L2norm(), 1E-8);
37 }
T L2norm(const RankTwoTensorTempl< T > &r2tensor)
This is a RealTensor version of a rotation matrix It is instantiated with the Euler angles...