Skip to content

Commit b2c03d4

Browse files
committed
Add AutoDiff test with NeoHooke + EAS
1 parent def4b16 commit b2c03d4

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

tests/src/checkfebyautodiff.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
template <typename GridView, typename BasisHandler, typename Skills, typename AffordanceColl, typename VectorType>
1818
auto checkFESByAutoDiffImpl(const GridView& gridView, const BasisHandler& basis, Skills&& skills,
19-
AffordanceColl affordance, VectorType& d, const std::string& messageIfFailed = "",
19+
AffordanceColl affordance, VectorType& d, const std::string& testName = "",
2020
double tol = 1e-10) {
2121
double lambda = 7.3;
2222
auto fe = Ikarus::makeFE(basis, std::forward<Skills>(skills));

tests/src/testnonlineareas.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,16 @@ int main(int argc, char** argv) {
153153
Dune::TestSuite t("Nonlinear EAS Test");
154154
auto matParameter = toLamesFirstParameterAndShearModulus({.emodul = 100.0, .nu = 0.3});
155155
StVenantKirchhoff matSVK(matParameter);
156-
auto reducedMat = planeStrain(matSVK);
157-
easAutoDiffTest<2>(t, reducedMat);
156+
NeoHooke matNH(matParameter1);
157+
auto reducedMatSVK = planeStrain(matSVK);
158+
auto reducedMatNH = planeStrain(matNH);
159+
160+
easAutoDiffTest<2>(t, reducedMatSVK);
158161
easAutoDiffTest<3>(t, matSVK);
159-
t.subTest(cantileverBeamTest(reducedMat));
162+
163+
easAutoDiffTest<2>(t, reducedMatNH);
164+
easAutoDiffTest<3>(t, matNH);
165+
166+
t.subTest(cantileverBeamTest(reducedMatSVK));
160167
return t.exit();
161168
}

0 commit comments

Comments
 (0)