Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80242648
test_plastic_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
Fri, Aug 30, 16:01
Size
1 KB
Mime Type
text/x-c++
Expires
Sun, Sep 1, 16:01 (2 d)
Engine
blob
Format
Raw Data
Handle
20329678
Attached To
rAKA akantu
test_plastic_materials.cc
View Options
/* -------------------------------------------------------------------------- */
#include "material_linear_isotropic_hardening.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<MaterialLinearIsotropicHardening, 1>,
Traits<MaterialLinearIsotropicHardening, 2>,
Traits<MaterialLinearIsotropicHardening, 3>>;
/*****************************************************************/
namespace {
template <typename T>
class TestPlasticMaterialFixture : public ::TestMaterialFixture<T> {};
TYPED_TEST_CASE(TestPlasticMaterialFixture, types);
TYPED_TEST(TestPlasticMaterialFixture, PlasticComputeStress) {
this->material->testComputeStress();
}
TYPED_TEST(TestPlasticMaterialFixture, PlasticEnergyDensity) {
this->material->testEnergyDensity();
}
TYPED_TEST(TestPlasticMaterialFixture, PlasticComputeTangentModuli) {
this->material->testComputeTangentModuli();
}
TYPED_TEST(TestPlasticMaterialFixture, PlasticComputePushWaveSpeed) {
this->material->testPushWaveSpeed();
}
TYPED_TEST(TestPlasticMaterialFixture, PlasticComputeShearWaveSpeed) {
this->material->testShearWaveSpeed();
}
}
/*****************************************************************/
Event Timeline
Log In to Comment