www.mooseframework.org
TensorMechanicsPlasticWeakPlaneTensileN.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "RotationMatrix.h" // for rotVecToZ
12 #include "RankFourTensor.h"
13 
15 
17 
18 InputParameters
20 {
21  InputParameters params = TensorMechanicsPlasticWeakPlaneTensile::validParams();
22  params.addRequiredParam<RealVectorValue>("normal_vector", "The normal vector to the weak plane");
23  params.addClassDescription("Associative weak-plane tensile plasticity with hardening/softening, "
24  "with specified, fixed normal vector. (WeakPlaneTensile combined "
25  "with specifying N in the Material might be preferable to you.)");
26 
27  return params;
28 }
29 
31  const InputParameters & parameters)
33  _input_n(getParam<RealVectorValue>("normal_vector")),
34  _df_dsig(RankTwoTensor())
35 {
36  // cannot check the following for all values of strength, but this is a start
37  if (_strength.value(0) < 0)
38  mooseError("Weak plane tensile strength must not be negative");
39  if (_input_n.norm() == 0)
40  mooseError("Weak-plane normal vector must not have zero length");
41  else
42  _input_n /= _input_n.norm();
43  _rot = RotationMatrix::rotVecToZ(_input_n);
44 
45  for (unsigned i = 0; i < 3; ++i)
46  for (unsigned j = 0; j < 3; ++j)
47  _df_dsig(i, j) = _rot(2, i) * _rot(2, j);
48 }
49 
50 Real
52  Real intnl) const
53 {
54  Real s22 = 0;
55  for (unsigned i = 0; i < 3; ++i)
56  for (unsigned j = 0; j < 3; ++j)
57  s22 += _rot(2, i) * _rot(2, j) * stress(i, j);
58  return s22 - tensile_strength(intnl);
59 }
60 
63  Real /*intnl*/) const
64 {
65  return _df_dsig;
66 }
67 
68 Real
70  Real intnl) const
71 {
72  return -dtensile_strength(intnl);
73 }
74 
77  Real /*intnl*/) const
78 {
79  return _df_dsig;
80 }
81 
84  Real /*intnl*/) const
85 {
86  return RankFourTensor();
87 }
88 
91  Real /*intnl*/) const
92 {
93  return RankTwoTensor();
94 }
95 
96 std::string
98 {
99  return "WeakPlaneTensileN";
100 }
TensorMechanicsPlasticWeakPlaneTensile::tensile_strength
virtual Real tensile_strength(const Real internal_param) const
tensile strength as a function of residual value, rate, and internal_param
Definition: TensorMechanicsPlasticWeakPlaneTensile.C:91
TensorMechanicsPlasticWeakPlaneTensileN::TensorMechanicsPlasticWeakPlaneTensileN
TensorMechanicsPlasticWeakPlaneTensileN(const InputParameters &parameters)
Definition: TensorMechanicsPlasticWeakPlaneTensileN.C:30
TensorMechanicsPlasticWeakPlaneTensileN
Rate-independent associative weak-plane tensile failure with hardening/softening, and normal directio...
Definition: TensorMechanicsPlasticWeakPlaneTensileN.h:23
TensorMechanicsPlasticWeakPlaneTensileN::flowPotential
RankTwoTensor flowPotential(const RankTwoTensor &stress, Real intnl) const override
The flow potential.
Definition: TensorMechanicsPlasticWeakPlaneTensileN.C:76
TensorMechanicsPlasticWeakPlaneTensileN::yieldFunction
Real yieldFunction(const RankTwoTensor &stress, Real intnl) const override
The following functions are what you should override when building single-plasticity models.
Definition: TensorMechanicsPlasticWeakPlaneTensileN.C:51
TensorMechanicsPlasticWeakPlaneTensileN::dyieldFunction_dstress
RankTwoTensor dyieldFunction_dstress(const RankTwoTensor &stress, Real intnl) const override
The derivative of yield function with respect to stress.
Definition: TensorMechanicsPlasticWeakPlaneTensileN.C:62
TensorMechanicsPlasticWeakPlaneTensileN.h
TensorMechanicsPlasticWeakPlaneTensile::_strength
const TensorMechanicsHardeningModel & _strength
Yield function = _a * stress_zz - _strength;.
Definition: TensorMechanicsPlasticWeakPlaneTensile.h:45
TensorMechanicsPlasticWeakPlaneTensile::validParams
static InputParameters validParams()
Definition: TensorMechanicsPlasticWeakPlaneTensile.C:18
TensorMechanicsPlasticWeakPlaneTensileN::dflowPotential_dintnl
RankTwoTensor dflowPotential_dintnl(const RankTwoTensor &stress, Real intnl) const override
The derivative of the flow potential with respect to the internal parameter.
Definition: TensorMechanicsPlasticWeakPlaneTensileN.C:90
registerMooseObject
registerMooseObject("TensorMechanicsApp", TensorMechanicsPlasticWeakPlaneTensileN)
defineLegacyParams
defineLegacyParams(TensorMechanicsPlasticWeakPlaneTensileN)
TensorMechanicsHardeningModel::value
virtual Real value(Real intnl) const
Definition: TensorMechanicsHardeningModel.C:45
TensorMechanicsPlasticWeakPlaneTensileN::dyieldFunction_dintnl
Real dyieldFunction_dintnl(const RankTwoTensor &stress, Real intnl) const override
The derivative of yield function with respect to the internal parameter.
Definition: TensorMechanicsPlasticWeakPlaneTensileN.C:69
RankTwoTensor
RankTwoTensorTempl< Real > RankTwoTensor
Definition: ACGrGrElasticDrivingForce.h:17
TensorMechanicsPlasticWeakPlaneTensileN::_df_dsig
RankTwoTensor _df_dsig
Flow direction, which is constant in this case.
Definition: TensorMechanicsPlasticWeakPlaneTensileN.h:49
TensorMechanicsPlasticWeakPlaneTensileN::modelName
virtual std::string modelName() const override
Definition: TensorMechanicsPlasticWeakPlaneTensileN.C:97
RankFourTensorTempl
Definition: ACGrGrElasticDrivingForce.h:20
TensorMechanicsPlasticWeakPlaneTensileN::validParams
static InputParameters validParams()
Definition: TensorMechanicsPlasticWeakPlaneTensileN.C:19
TensorMechanicsPlasticWeakPlaneTensile::dtensile_strength
virtual Real dtensile_strength(const Real internal_param) const
d(tensile strength)/d(internal_param) as a function of residual value, rate, and internal_param
Definition: TensorMechanicsPlasticWeakPlaneTensile.C:97
RankTwoTensorTempl< Real >
TensorMechanicsPlasticWeakPlaneTensileN::_rot
RealTensorValue _rot
This rotation matrix rotates _input_n to (0, 0, 1)
Definition: TensorMechanicsPlasticWeakPlaneTensileN.h:52
TensorMechanicsPlasticWeakPlaneTensileN::_input_n
RealVectorValue _input_n
Unit normal inputted by user.
Definition: TensorMechanicsPlasticWeakPlaneTensileN.h:46
RankFourTensor
RankFourTensorTempl< Real > RankFourTensor
Definition: ACGrGrElasticDrivingForce.h:20
TensorMechanicsPlasticWeakPlaneTensileN::dflowPotential_dstress
RankFourTensor dflowPotential_dstress(const RankTwoTensor &stress, Real intnl) const override
The derivative of the flow potential with respect to stress.
Definition: TensorMechanicsPlasticWeakPlaneTensileN.C:83
TensorMechanicsPlasticWeakPlaneTensile
Rate-independent associative weak-plane tensile failure with hardening/softening of the tensile stren...
Definition: TensorMechanicsPlasticWeakPlaneTensile.h:24