Go to the documentation of this file.
13 #include "RankFourTensor.h"
21 params.addRequiredRangeCheckedParam<Real>(
"yield_function_tolerance",
22 "yield_function_tolerance>0",
23 "If the yield function is less than this amount, the "
24 "(stress, internal parameter) are deemed admissible.");
25 params.addRequiredRangeCheckedParam<Real>(
"internal_constraint_tolerance",
26 "internal_constraint_tolerance>0",
27 "The Newton-Raphson process is only deemed converged "
28 "if the internal constraint is less than this.");
29 params.addClassDescription(
30 "Plastic Model base class. Override the virtual functions in your class");
35 : GeneralUserObject(parameters),
36 _f_tol(getParam<Real>(
"yield_function_tolerance")),
37 _ic_tol(getParam<Real>(
"internal_constraint_tolerance"))
71 std::vector<Real> & f)
const
86 std::vector<RankTwoTensor> & df_dstress)
const
100 std::vector<Real> & df_dintnl)
const
113 std::vector<RankTwoTensor> & r)
const
127 std::vector<RankFourTensor> & dr_dstress)
const
141 std::vector<RankTwoTensor> & dr_dintnl)
const
154 std::vector<Real> & h)
const
168 std::vector<RankTwoTensor> & dh_dstress)
const
182 std::vector<Real> & dh_dintnl)
const
192 std::vector<bool> & act,
196 "f incorrectly sized at " << f.size() <<
" in activeConstraints");
199 act[surface] = (f[surface] >
_f_tol);
227 std::vector<Real> & ,
229 std::vector<Real> & yf,
230 bool & trial_stress_inadmissible)
const
232 trial_stress_inadmissible =
false;
237 trial_stress_inadmissible =
true;
250 return (dpm == 0 && yf <=
_f_tol) || (dpm > -dpm_tol && yf <= _f_tol && yf >= -
_f_tol);
260 const std::vector<Real> & )
const
virtual unsigned int numberSurfaces() const
The number of yield surfaces for this plasticity model.
virtual void hardPotentialV(const RankTwoTensor &stress, Real intnl, std::vector< Real > &h) const
The hardening potential.
virtual bool useCustomCTO() const
Returns false. You will want to override this in your derived class if you write a custom consistent ...
virtual RankTwoTensor dflowPotential_dintnl(const RankTwoTensor &stress, Real intnl) const
The derivative of the flow potential with respect to the internal parameter.
static InputParameters validParams()
virtual bool useCustomReturnMap() const
Returns false. You will want to override this in your derived class if you write a custom returnMap f...
virtual void dyieldFunction_dintnlV(const RankTwoTensor &stress, Real intnl, std::vector< Real > &df_dintnl) const
The derivative of yield functions with respect to the internal parameter.
defineLegacyParams(TensorMechanicsPlasticModel)
virtual RankTwoTensor dyieldFunction_dstress(const RankTwoTensor &stress, Real intnl) const
The derivative of yield function with respect to stress.
virtual Real dhardPotential_dintnl(const RankTwoTensor &stress, Real intnl) const
The derivative of the hardening potential with respect to the internal parameter.
virtual void dflowPotential_dintnlV(const RankTwoTensor &stress, Real intnl, std::vector< RankTwoTensor > &dr_dintnl) const
The derivative of the flow potential with respect to the internal parameter.
bool KuhnTuckerSingleSurface(Real yf, Real dpm, Real dpm_tol) const
Returns true if the Kuhn-Tucker conditions for the single surface are satisfied.
virtual void dhardPotential_dstressV(const RankTwoTensor &stress, Real intnl, std::vector< RankTwoTensor > &dh_dstress) const
The derivative of the hardening potential with respect to stress.
virtual void dhardPotential_dintnlV(const RankTwoTensor &stress, Real intnl, std::vector< Real > &dh_dintnl) const
The derivative of the hardening potential with respect to the internal parameter.
const Real _f_tol
Tolerance on yield function.
TensorMechanicsPlasticModel(const InputParameters ¶meters)
virtual void dflowPotential_dstressV(const RankTwoTensor &stress, Real intnl, std::vector< RankFourTensor > &dr_dstress) const
The derivative of the flow potential with respect to stress.
virtual Real hardPotential(const RankTwoTensor &stress, Real intnl) const
The hardening potential.
virtual void yieldFunctionV(const RankTwoTensor &stress, Real intnl, std::vector< Real > &f) const
Calculates the yield functions.
InputParameters validParams()
virtual bool returnMap(const RankTwoTensor &trial_stress, Real intnl_old, const RankFourTensor &E_ijkl, Real ep_plastic_tolerance, RankTwoTensor &returned_stress, Real &returned_intnl, std::vector< Real > &dpm, RankTwoTensor &delta_dp, std::vector< Real > &yf, bool &trial_stress_inadmissible) const
Performs a custom return-map.
RankTwoTensorTempl< Real > RankTwoTensor
virtual RankFourTensor consistentTangentOperator(const RankTwoTensor &trial_stress, Real intnl_old, const RankTwoTensor &stress, Real intnl, const RankFourTensor &E_ijkl, const std::vector< Real > &cumulative_pm) const
Calculates a custom consistent tangent operator.
Plastic Model base class The virtual functions written below must be over-ridden in derived classes t...
virtual RankFourTensor dflowPotential_dstress(const RankTwoTensor &stress, Real intnl) const
The derivative of the flow potential with respect to stress.
virtual std::string modelName() const =0
virtual Real yieldFunction(const RankTwoTensor &stress, Real intnl) const
The following functions are what you should override when building single-plasticity models.
virtual RankTwoTensor flowPotential(const RankTwoTensor &stress, Real intnl) const
The flow potential.
virtual RankTwoTensor dhardPotential_dstress(const RankTwoTensor &stress, Real intnl) const
The derivative of the hardening potential with respect to stress.
virtual void flowPotentialV(const RankTwoTensor &stress, Real intnl, std::vector< RankTwoTensor > &r) const
The flow potentials.
virtual void dyieldFunction_dstressV(const RankTwoTensor &stress, Real intnl, std::vector< RankTwoTensor > &df_dstress) const
The derivative of yield functions with respect to stress.
RankFourTensorTempl< Real > RankFourTensor
virtual void activeConstraints(const std::vector< Real > &f, const RankTwoTensor &stress, Real intnl, const RankFourTensor &Eijkl, std::vector< bool > &act, RankTwoTensor &returned_stress) const
The active yield surfaces, given a vector of yield functions.
virtual Real dyieldFunction_dintnl(const RankTwoTensor &stress, Real intnl) const
The derivative of yield function with respect to the internal parameter.