You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Conception/drake-master/multibody/fem/test/linear_constitutive_model_t...

38 lines
1.1 KiB

#include "drake/multibody/fem/linear_constitutive_model.h"
#include <gtest/gtest.h>
#include "drake/multibody/fem/test/constitutive_model_test_utilities.h"
namespace drake {
namespace multibody {
namespace fem {
namespace internal {
namespace test {
constexpr int kNumLocations = 1;
GTEST_TEST(LinearConstitutiveModelTest, Parameters) {
TestParameters<LinearConstitutiveModel<double, kNumLocations>>();
TestParameters<LinearConstitutiveModel<AutoDiffXd, kNumLocations>>();
}
GTEST_TEST(LinearConstitutiveModelTest, UndeformedState) {
TestUndeformedState<LinearConstitutiveModel<double, kNumLocations>>();
TestUndeformedState<LinearConstitutiveModel<AutoDiffXd, kNumLocations>>();
}
GTEST_TEST(LinearConstitutiveModelTest, PIsDerivativeOfPsi) {
TestPIsDerivativeOfPsi<LinearConstitutiveModel<AutoDiffXd, kNumLocations>>();
}
GTEST_TEST(LinearConstitutiveModelTest, dPdFIsDerivativeOfP) {
TestdPdFIsDerivativeOfP<LinearConstitutiveModel<AutoDiffXd, kNumLocations>>();
}
} // namespace test
} // namespace internal
} // namespace fem
} // namespace multibody
} // namespace drake