Skip to content
Snippets Groups Projects
Commit 3ce61785 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[T] KelvinVector; Test symmetric tensor to KV map.

parent 8d281153
No related branches found
No related tags found
No related merge requests found
......@@ -58,32 +58,6 @@ TEST_F(MaterialLibSolidsKelvinVector6, SelfTestMappingKelvinToTensor)
f, 1000, ac::make_arbitrary(kelvinVectorGenerator), gtest_reporter);
}
TEST_F(MaterialLibSolidsKelvinVector4, SelfTestMappingKelvinToSymmetricTensor)
{
auto f = [](KelvinVectorType<2> const& v) {
return (v -
symmetricTensorToKelvinVector(kelvinVectorToSymmetricTensor(v)))
.norm() <=
1.5 * std::numeric_limits<double>::epsilon() * v.norm();
};
ac::check<KelvinVectorType<2>>(
f, 1000, ac::make_arbitrary(kelvinVectorGenerator), gtest_reporter);
}
TEST_F(MaterialLibSolidsKelvinVector6, SelfTestMappingKelvinToSymmetricTensor)
{
auto f = [](KelvinVectorType<3> const& v) {
return (v -
symmetricTensorToKelvinVector(kelvinVectorToSymmetricTensor(v)))
.norm() <=
1.5 * std::numeric_limits<double>::epsilon() * v.norm();
};
ac::check<KelvinVectorType<3>>(
f, 1000, ac::make_arbitrary(kelvinVectorGenerator), gtest_reporter);
}
//
// Determinants of a Kelvin vector and corresponding Eigen::Matrix are equal.
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment