https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TensileStressUpdate.h
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
10#pragma once
11
14
20{
21public:
23
25
29 bool requiresIsotropicTensor() override { return true; }
30
31protected:
34
36 const bool _perfect_guess;
37
40
42 virtual Real tensile_strength(const Real internal_param) const;
43
45 virtual Real dtensile_strength(const Real internal_param) const;
46
47 void computeStressParams(const RankTwoTensor & stress,
48 std::vector<Real> & stress_params) const override;
49
50 void dstressparam_dstress(const RankTwoTensor & stress,
51 std::vector<RankTwoTensor> & dsp) const override;
52
53 void d2stressparam_dstress(const RankTwoTensor & stress,
54 std::vector<RankFourTensor> & d2sp) const override;
55
56 virtual void setStressAfterReturnV(const RankTwoTensor & stress_trial,
57 const std::vector<Real> & stress_params,
58 Real gaE,
59 const std::vector<Real> & intnl,
60 const yieldAndFlow & smoothed_q,
61 const RankFourTensor & Eijkl,
62 RankTwoTensor & stress) const override;
63
64 virtual void preReturnMapV(const std::vector<Real> & trial_stress_params,
65 const RankTwoTensor & stress_trial,
66 const std::vector<Real> & intnl_old,
67 const std::vector<Real> & yf,
68 const RankFourTensor & Eijkl) override;
69
70 void setEffectiveElasticity(const RankFourTensor & Eijkl) override;
71
72 void yieldFunctionValuesV(const std::vector<Real> & stress_params,
73 const std::vector<Real> & intnl,
74 std::vector<Real> & yf) const override;
75
76 void computeAllQV(const std::vector<Real> & stress_params,
77 const std::vector<Real> & intnl,
78 std::vector<yieldAndFlow> & all_q) const override;
79
80 void initializeVarsV(const std::vector<Real> & trial_stress_params,
81 const std::vector<Real> & intnl_old,
82 std::vector<Real> & stress_params,
83 Real & gaE,
84 std::vector<Real> & intnl) const override;
85
86 void setIntnlValuesV(const std::vector<Real> & trial_stress_params,
87 const std::vector<Real> & current_stress_params,
88 const std::vector<Real> & intnl_old,
89 std::vector<Real> & intnl) const override;
90
91 void setIntnlDerivativesV(const std::vector<Real> & trial_stress_params,
92 const std::vector<Real> & current_stress_params,
93 const std::vector<Real> & intnl,
94 std::vector<std::vector<Real>> & dintnl) const override;
95
96 virtual void consistentTangentOperatorV(const RankTwoTensor & stress_trial,
97 const std::vector<Real> & trial_stress_params,
98 const RankTwoTensor & stress,
99 const std::vector<Real> & stress_params,
100 Real gaE,
101 const yieldAndFlow & smoothed_q,
102 const RankFourTensor & Eijkl,
103 bool compute_full_tangent_operator,
104 const std::vector<std::vector<Real>> & dvar_dtrial,
105 RankFourTensor & cto) override;
106
107private:
112 mutable std::vector<RankTwoTensor> _dsp_trial_scratch;
113
118 mutable std::vector<Real> _eigvals_scratch;
119};
const InputParameters & parameters() const
MultiParameterPlasticityStressUpdate performs the return-map algorithm and associated stress updates ...
TensileStressUpdate implements rate-independent associative tensile failure ("Rankine" plasticity) wi...
RankTwoTensor _eigvecs
Eigenvectors of the trial stress as a RankTwoTensor, in order to rotate the returned stress back to s...
void setEffectiveElasticity(const RankFourTensor &Eijkl) override
Sets _Eij and _En and _Cij.
virtual void consistentTangentOperatorV(const RankTwoTensor &stress_trial, const std::vector< Real > &trial_stress_params, const RankTwoTensor &stress, const std::vector< Real > &stress_params, Real gaE, const yieldAndFlow &smoothed_q, const RankFourTensor &Eijkl, bool compute_full_tangent_operator, const std::vector< std::vector< Real > > &dvar_dtrial, RankFourTensor &cto) override
Calculates the consistent tangent operator.
std::vector< Real > _eigvals_scratch
eigenvalues of the stress, used in dstressparam_dstress and preReturnMapV.
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
std::vector< RankTwoTensor > _dsp_trial_scratch
this is d(stress_param[:])/d(stress) which is calculated by dstressparam_dstress.
const SolidMechanicsHardeningModel & _strength
Hardening model for tensile strength.
void setIntnlDerivativesV(const std::vector< Real > &trial_stress_params, const std::vector< Real > &current_stress_params, const std::vector< Real > &intnl, std::vector< std::vector< Real > > &dintnl) const override
Sets the derivatives of internal parameters, based on the trial values of stress_params,...
static InputParameters validParams()
void computeAllQV(const std::vector< Real > &stress_params, const std::vector< Real > &intnl, std::vector< yieldAndFlow > &all_q) const override
Completely fills all_q with correct values.
virtual Real tensile_strength(const Real internal_param) const
tensile strength as a function of residual value, rate, and internal_param
virtual void setStressAfterReturnV(const RankTwoTensor &stress_trial, const std::vector< Real > &stress_params, Real gaE, const std::vector< Real > &intnl, const yieldAndFlow &smoothed_q, const RankFourTensor &Eijkl, RankTwoTensor &stress) const override
Sets stress from the admissible parameters.
virtual void preReturnMapV(const std::vector< Real > &trial_stress_params, const RankTwoTensor &stress_trial, const std::vector< Real > &intnl_old, const std::vector< Real > &yf, const RankFourTensor &Eijkl) override
Derived classes may employ this function to record stuff or do other computations prior to the return...
void d2stressparam_dstress(const RankTwoTensor &stress, std::vector< RankFourTensor > &d2sp) const override
d2(stress_param[i])/d(stress)/d(stress) at given stress.
void computeStressParams(const RankTwoTensor &stress, std::vector< Real > &stress_params) const override
Computes stress_params, given stress.
bool requiresIsotropicTensor() override
Does the model require the elasticity tensor to be isotropic?
void setIntnlValuesV(const std::vector< Real > &trial_stress_params, const std::vector< Real > &current_stress_params, const std::vector< Real > &intnl_old, std::vector< Real > &intnl) const override
Sets the internal parameters based on the trial values of stress_params, their current values,...
void yieldFunctionValuesV(const std::vector< Real > &stress_params, const std::vector< Real > &intnl, std::vector< Real > &yf) const override
Computes the values of the yield functions, given stress_params and intnl parameters.
const bool _perfect_guess
Whether to provide an estimate of the returned stress, based on perfect plasticity.
void dstressparam_dstress(const RankTwoTensor &stress, std::vector< RankTwoTensor > &dsp) const override
d(stress_param[i])/d(stress) at given stress.
void initializeVarsV(const std::vector< Real > &trial_stress_params, const std::vector< Real > &intnl_old, std::vector< Real > &stress_params, Real &gaE, std::vector< Real > &intnl) const override
Sets (stress_params, intnl) at "good guesses" of the solution to the Return-Map algorithm.
Struct designed to hold info about a single yield function and its derivatives, as well as the flow d...