https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ComputeNeoHookeanStress.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
11
13
16{
18
19 params.addParam<MaterialPropertyName>("lambda",
20 "lambda",
21 "Parameter conjugate to Lame parameter"
22 " for small deformations");
23 params.addParam<MaterialPropertyName>("mu",
24 "mu",
25 "Parameter conjugate to Lame parameter"
26 " for small deformations");
27
28 return params;
29}
30
32 : ComputeLagrangianStressPK2(parameters),
33 _lambda(getMaterialProperty<Real>(getParam<MaterialPropertyName>("lambda"))),
34 _mu(getMaterialProperty<Real>(getParam<MaterialPropertyName>("mu")))
35
36{
37}
38
39void
41{
42 // Hyperelasticity is weird, we need to branch on the type of update if we
43 // want a truly linear model
44 //
45 // This is because we need to drop quadratic terms for the linear update
46 usingTensorIndices(i_, j_, k_, l_);
47
48 // Large deformation = nonlinear strain
50 {
51 RankTwoTensor Cinv = (2 * _E[_qp] + RankTwoTensor::Identity()).inverse();
53 (_lambda[_qp] * log(_stabilized_deformation_gradient[_qp].det()) - _mu[_qp]) * Cinv +
56 -2 * (_lambda[_qp] * log(_stabilized_deformation_gradient[_qp].det()) - _mu[_qp]) *
57 Cinv.times<i_, k_, l_, j_>(Cinv) +
58 _lambda[_qp] * Cinv.times<i_, j_, k_, l_>(Cinv);
59 }
60 // Small deformations = linear strain
61 else
62 {
63 const auto I = RankTwoTensor::Identity();
66 I;
67 _pk2_jacobian[_qp] = _lambda[_qp] * I.times<i_, j_, k_, l_>(I) +
69 _pk2_stress[_qp] = _pk2_jacobian[_qp] * strain;
70 }
71}
registerMooseObject("SolidMechanicsApp", ComputeNeoHookeanStress)
bool _large_kinematics
If true use large deformations.
const MaterialProperty< RankTwoTensor > & _stabilized_deformation_gradient
F-bar-stabilized deformation gradient (= the strain calc's published _F).
Native interface for providing the 2nd Piola Kirchhoff stress.
static InputParameters validParams()
MaterialProperty< RankTwoTensor > & _pk2_stress
2nd PK stress
MaterialProperty< RankTwoTensor > & _E
Green-Lagrange strain.
MaterialProperty< RankFourTensor > & _pk2_jacobian
2nd PK tangent (dS/dE)
Compressible Neo-Hookean hyperelasticity.
virtual void computeQpPK2Stress()
Actual stress/Jacobian update.
ComputeNeoHookeanStress(const InputParameters &parameters)
const MaterialProperty< Real > & _mu
static InputParameters validParams()
const MaterialProperty< Real > & _lambda
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
unsigned int _qp
RankFourTensorTempl< T > times(const RankTwoTensorTempl< T > &b) const
static RankTwoTensorTempl Identity()