https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ComputeLagrangianStressPK1.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
14{
16
17 params.addClassDescription("Stress update based on the first Piola-Kirchhoff stress");
18
19 return params;
20}
21
23 : ComputeLagrangianStressBase(parameters),
24 _inv_df(getMaterialPropertyByName<RankTwoTensor>(_base_name +
25 "inverse_incremental_deformation_gradient")),
26 _inv_def_grad(
27 getMaterialPropertyByName<RankTwoTensor>(_base_name + "inverse_deformation_gradient")),
28 _stabilized_deformation_gradient(
29 getMaterialPropertyByName<RankTwoTensor>(_base_name + "deformation_gradient"))
30{
31}
32
33void
39
40void
42{
43 // computeQpPK1Stress provides the constitutive PK1 stress Pbar and dPbar/dFbar at the
44 // F-bar-stabilized deformation gradient Fbar = F_stab. F-bar replaces F only in the
45 // constitutive model (de Souza Neto et al. 1996), so the Cauchy stress is the push-forward
46 // with Fbar,
47 // sigma = Pbar Fbar^T / det(Fbar),
48 // and the residual pulls it back with the unstabilized F, P = det(F) sigma F^{-T}.
49 //
50 // All RankFourTensor algebra below builds Jacobian-only quantities
51 // (`_cauchy_jacobian`, `_pk1_jacobian`, and `_pk1_jacobian_bypass_fbar`).
52 // Skip them on residual-only sweeps.
53 const bool need_jacobian = _fe_problem.currentlyComputingJacobian() ||
56 {
58 const Real J_bar = F_bar.det();
59 const RankTwoTensor P_bar = _pk1_stress[_qp];
60 _cauchy_stress[_qp] = P_bar * F_bar.transpose() / J_bar;
62
63 if (!need_jacobian)
64 return;
65
66 // dsigma/dFbar = [dPbar/dFbar Fbar^T + Pbar d(Fbar^T)/dFbar] / det(Fbar) - sigma (x) Fbar^{-T}
67 usingTensorIndices(i_, j_, m_, n_);
68 const auto I = RankTwoTensor::Identity();
69 const RankFourTensor dsigma_dF_bar =
70 _pk1_jacobian[_qp].singleProductJ(F_bar) / J_bar + P_bar.times<i_, n_, j_, m_>(I) / J_bar -
71 _cauchy_stress[_qp].times<i_, j_, n_, m_>(_inv_def_grad[_qp]);
73 pullBackCauchyJacobian(dsigma_dF_bar);
74 }
75 // Small deformations: sigma = PK1 (no wrap), and the constitutive dPK1/d(F_stab) is
76 // cauchy_jacobian = dsigma/d(dL) since d(dL)/d(F_stab) = I.
77 else
78 {
80 if (!need_jacobian)
81 return;
84 }
85}
Provide stresses in the form required for the Lagrangian kernels.
MaterialProperty< RankFourTensor > & _pk1_jacobian
The derivative of the 1st PK stress wrt the deformation gradient (F that the stress material consumes...
const MaterialProperty< RankFourTensor > & _d_deformation_gradient_increment_d_F
d(spatial velocity gradient increment)/d(F_stab).
void pullBackCauchyStress()
Pull the Cauchy stress back to the 1st PK stress with the unstabilized deformation gradient,...
MaterialProperty< RankTwoTensor > & _pk1_stress
The 1st Piola-Kirchhoff stress.
void pullBackCauchyJacobian(const RankFourTensor dsigma_dF_stab)
Set pk1_jacobian and pk1_jacobian_bypass_fbar of P = det(F_ust) sigma F_ust^{-T} from dsigma/d(F_stab...
MaterialProperty< RankFourTensor > & _cauchy_jacobian
The derivative of the Cauchy stress wrt the increment in the spatial velocity gradient.
MaterialProperty< RankTwoTensor > & _cauchy_stress
The Cauchy stress.
bool _large_kinematics
If true use large deformations.
static InputParameters validParams()
virtual void computeQpPK1Stress()=0
Provide for the actual PK stress update (just PK1)
const MaterialProperty< RankTwoTensor > & _stabilized_deformation_gradient
F-bar-stabilized deformation gradient (= the strain calc's published _F).
virtual void computeQpStressUpdate() override
Calculate the stress update to provide both measures (cauchy and pk1)
ComputeLagrangianStressPK1(const InputParameters &parameters)
const MaterialProperty< RankTwoTensor > & _inv_def_grad
Inverse F-bar-stabilized deformation gradient (= _stabilized_deformation_gradient^{-1})
virtual void computeQpCauchyStress()
Wrap the PK stress to get the Cauchy stress.
void addClassDescription(const std::string &doc_string)
unsigned int _qp
FEProblemBase & _fe_problem
RankFourTensorTempl< T > inverse() const
RankFourTensorTempl< T > singleProductJ(const RankTwoTensorTempl< T > &) const
RankFourTensorTempl< T > times(const RankTwoTensorTempl< T > &b) const
RankTwoTensorTempl< T > transpose() const
static RankTwoTensorTempl Identity()
const bool & currentlyComputingJacobian() const
const bool & currentlyComputingResidualAndJacobian() const