Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78672235
test_finite_def_materials.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 22, 07:57
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Aug 24, 07:57 (2 d)
Engine
blob
Format
Raw Data
Handle
20017652
Attached To
rAKA akantu
test_finite_def_materials.cc
View Options
/* -------------------------------------------------------------------------- */
#include "material_neohookean.hh"
#include "solid_mechanics_model.hh"
#include "test_material_fixtures.hh"
#include <gtest/gtest.h>
#include <type_traits>
/* -------------------------------------------------------------------------- */
using namespace akantu;
using types = ::testing::Types<
Traits<MaterialNeohookean, 1>, Traits<MaterialNeohookean, 2>,
Traits<MaterialNeohookean, 3>>;
/*****************************************************************/
template <> void FriendMaterial<MaterialNeohookean<3>>::testComputeStress() {
TO_IMPLEMENT;
}
/*****************************************************************/
template <>
void FriendMaterial<MaterialNeohookean<3>>::testComputeTangentModuli() {
TO_IMPLEMENT;
}
/*****************************************************************/
template <> void FriendMaterial<MaterialNeohookean<3>>::testEnergyDensity() {
TO_IMPLEMENT;
}
/*****************************************************************/
namespace {
template <typename T>
class TestFiniteDefMaterialFixture : public ::TestMaterialFixture<T> {};
TYPED_TEST_CASE(TestFiniteDefMaterialFixture, types);
TYPED_TEST(TestFiniteDefMaterialFixture, FiniteDefComputeStress) {
this->material->testComputeStress();
}
TYPED_TEST(TestFiniteDefMaterialFixture, FiniteDefEnergyDensity) {
this->material->testEnergyDensity();
}
TYPED_TEST(TestFiniteDefMaterialFixture, FiniteDefComputeTangentModuli) {
this->material->testComputeTangentModuli();
}
TYPED_TEST(TestFiniteDefMaterialFixture, FiniteDefComputePushWaveSpeed) {
this->material->testPushWaveSpeed();
}
TYPED_TEST(TestFiniteDefMaterialFixture, FiniteDefComputeShearWaveSpeed) {
this->material->testShearWaveSpeed();
}
}
/*****************************************************************/
Event Timeline
Log In to Comment