10 #include "gtest/gtest.h" 34 const RankTwoTensor kSigmaOld(30.0, -10.0, 15.0, 4.0, -3.0, 6.0);
65 for (
unsigned int k = 0;
k < 3; ++
k)
66 for (
unsigned int l = 0; l < 3; ++l)
71 const RankTwoTensor d = (rate(makeInputs(
C, dLp),
false).cauchy_stress -
72 rate(makeInputs(
C, dLm),
false).cauchy_stress) /
74 for (
unsigned int i = 0; i < 3; ++i)
75 for (
unsigned int j = 0;
j < 3; ++
j)
76 Jfd(i,
j,
k, l) =
d(i,
j);
83 TEST(LagrangianObjectiveRateTest, zeroIncrement)
91 EXPECT_LT((
truesdell(in,
false).cauchy_stress - expected).L2norm(), 1.0e-12);
92 EXPECT_LT((
jaumann(in,
false).cauchy_stress - expected).L2norm(), 1.0e-12);
93 EXPECT_LT((
greenNaghdi(in,
false).cauchy_stress - expected).L2norm(), 1.0e-12);
94 EXPECT_LT((
rashid(in,
false).cauchy_stress - expected).L2norm(), 1.0e-12);
98 TEST(LagrangianObjectiveRateTest, truesdellJacobian)
103 TEST(LagrangianObjectiveRateTest, jaumannJacobian)
108 TEST(LagrangianObjectiveRateTest, rashidJacobian)
114 checkJacobianFD(&
rashid, isotropicC(), dL);
static RankFourTensorTempl< Real > IdentityFour()
TEST(LagrangianObjectiveRateTest, zeroIncrement)
Objective-stress-rate updates as stateless free functions.
Outputs greenNaghdi(const Inputs &in, bool need_jacobian)
sigma_{n+1} = J(dO)^{-1} (sigma_n + Deltasigma), with dO built from the polar rotation increment...
Outputs jaumann(const Inputs &in, bool need_jacobian)
sigma_{n+1} = J(dW)^{-1} (sigma_n + Deltasigma). Jaumann rate.
static RankTwoTensorTempl Identity()
RankTwoTensorTempl< Real > transpose() const
RankFourTensorTempl< T > transposeIj() const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Outputs truesdell(const Inputs &in, bool need_jacobian)
sigma_{n+1} = J(dL)^{-1} (sigma_n + Deltasigma). Truesdell rate.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
Per-qp outputs a rate produces.
Outputs rashid(const Inputs &in, bool need_jacobian)
sigma_{n+1} = r_hat (sigma_n + Deltasigma) r_hat^T, r_hat = exp(Deltaw).
static const std::string k
static const std::string C