Go to the source code of this file.
|
| | TEST (NumericsTest, computeOrthogonalDirections_x_aligned) |
| |
| | TEST (NumericsTest, computeOrthogonalDirections_skew) |
| |
◆ TEST() [1/2]
| TEST |
( |
NumericsTest |
, |
|
|
computeOrthogonalDirections_x_aligned |
|
|
) |
| |
Definition at line 16 of file TestTHMUtils.C.
22 EXPECT_TRUE(MooseUtils::absoluteFuzzyEqual(t1.
norm(), 1));
23 EXPECT_TRUE(MooseUtils::absoluteFuzzyEqual(t2.
norm(), 1));
24 EXPECT_TRUE(MooseUtils::absoluteFuzzyEqual(t1 * n, 0));
25 EXPECT_TRUE(MooseUtils::absoluteFuzzyEqual(t2 * n, 0));
26 EXPECT_TRUE(MooseUtils::absoluteFuzzyEqual(t1 * t2, 0));
auto norm() const -> decltype(std::norm(Real()))
void computeOrthogonalDirections(const RealVectorValue &n_unnormalized, RealVectorValue &t1, RealVectorValue &t2)
Computes two unit vectors orthogonal to the given vector.
◆ TEST() [2/2]
| TEST |
( |
NumericsTest |
, |
|
|
computeOrthogonalDirections_skew |
|
|
) |
| |
Definition at line 29 of file TestTHMUtils.C.
35 EXPECT_TRUE(MooseUtils::absoluteFuzzyEqual(t1.
norm(), 1));
36 EXPECT_TRUE(MooseUtils::absoluteFuzzyEqual(t2.
norm(), 1));
37 EXPECT_TRUE(MooseUtils::absoluteFuzzyEqual(t1 * n, 0));
38 EXPECT_TRUE(MooseUtils::absoluteFuzzyEqual(t2 * n, 0));
39 EXPECT_TRUE(MooseUtils::absoluteFuzzyEqual(t1 * t2, 0));
auto norm() const -> decltype(std::norm(Real()))
void computeOrthogonalDirections(const RealVectorValue &n_unnormalized, RealVectorValue &t1, RealVectorValue &t2)
Computes two unit vectors orthogonal to the given vector.