OGS
MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim > Class Template Referencefinal

Detailed Description

template<int DisplacementDim>
class MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >

A class for computing the BGRa creep model, which reads.

\[ \dot {\mathbf{\epsilon}}^{cr}=\sqrt{\frac{3}{2}}A \mathrm{e}^{-\frac{Q}{RT}} \left(\frac{\sigma_{eff}}{\sigma_0}\right)^n\frac{\mathbf{s}}{||\mathbf{s}||} \]

where \(\sigma_{eff}=\sqrt{\frac{3}{2}}||\mathbf{s}||\), \(A, \sigma_0, n, Q\) are parameter, and \(R\) is the gas constant.

Definition at line 39 of file CreepBGRa.h.

#include <CreepBGRa.h>

Inheritance diagram for MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >:
[legend]
Collaboration diagram for MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >:
[legend]

Public Types

using ResidualVectorType = Eigen::Matrix<double, KelvinVectorSize, 1>
 
using JacobianMatrix
 
using KelvinVector
 
using KelvinMatrix
 
using Parameter = ParameterLib::Parameter<double>
 
- Public Types inherited from MaterialLib::Solids::LinearElasticIsotropic< DisplacementDim >
using KelvinVector
 
using KelvinMatrix
 
- Public Types inherited from MaterialLib::Solids::MechanicsBase< DisplacementDim >
using KelvinVector
 
using KelvinMatrix
 

Public Member Functions

std::unique_ptr< typename MechanicsBase< DisplacementDim >::MaterialStateVariables > createMaterialStateVariables () const override
 
 CreepBGRa (typename LinearElasticIsotropic< DisplacementDim >::MaterialProperties mp, NumLib::NewtonRaphsonSolverParameters nonlinear_solver_parameters, Parameter const &A, Parameter const &n, Parameter const &sigma_f, Parameter const &Q)
 
std::optional< std::tuple< KelvinVector, std::unique_ptr< typename MechanicsBase< DisplacementDim >::MaterialStateVariables >, KelvinMatrix > > integrateStress (MaterialPropertyLib::VariableArray const &variable_array_prev, MaterialPropertyLib::VariableArray const &variable_array, double const t, ParameterLib::SpatialPosition const &x, double const dt, typename MechanicsBase< DisplacementDim >::MaterialStateVariables const &material_state_variables) const override
 
ConstitutiveModel getConstitutiveModel () const override
 Gets the type of constitutive model.
 
double getTemperatureRelatedCoefficient (double const t, double const dt, ParameterLib::SpatialPosition const &x, double const T, double const deviatoric_stress_norm) const override
 
- Public Member Functions inherited from MaterialLib::Solids::LinearElasticIsotropic< DisplacementDim >
 LinearElasticIsotropic (MaterialProperties material_properties)
 
double computeFreeEnergyDensity (double const, ParameterLib::SpatialPosition const &, double const, KelvinVector const &eps, KelvinVector const &sigma, typename MechanicsBase< DisplacementDim >::MaterialStateVariables const &) const override
 
std::optional< std::tuple< typename MechanicsBase< DisplacementDim >::KelvinVector, std::unique_ptr< typename MechanicsBase< DisplacementDim >::MaterialStateVariables >, typename MechanicsBase< DisplacementDim >::KelvinMatrix > > integrateStress (MaterialPropertyLib::VariableArray const &variable_array_prev, MaterialPropertyLib::VariableArray const &variable_array, double const t, ParameterLib::SpatialPosition const &x, double const, typename MechanicsBase< DisplacementDim >::MaterialStateVariables const &material_state_variables) const override
 
KelvinMatrix getElasticTensor (double const t, ParameterLib::SpatialPosition const &x, double const T) const
 
MaterialProperties getMaterialProperties () const
 
double getBulkModulus (double const t, ParameterLib::SpatialPosition const &x, KelvinMatrix const *const) const override
 
- Public Member Functions inherited from MaterialLib::Solids::MechanicsBase< DisplacementDim >
virtual void initializeInternalStateVariables (double const, ParameterLib::SpatialPosition const &, typename MechanicsBase< DisplacementDim >::MaterialStateVariables &) const
 
virtual std::optional< std::tuple< KelvinVector, std::unique_ptr< MaterialStateVariables >, KelvinMatrix > > integrateStress (MaterialPropertyLib::VariableArray const &variable_array_prev, MaterialPropertyLib::VariableArray const &variable_array, double const t, ParameterLib::SpatialPosition const &x, double const dt, MaterialStateVariables const &material_state_variables) const =0
 
virtual std::vector< InternalVariablegetInternalVariables () const
 
virtual double computeFreeEnergyDensity (double const t, ParameterLib::SpatialPosition const &x, double const dt, KelvinVector const &eps, KelvinVector const &sigma, MaterialStateVariables const &material_state_variables) const =0
 
virtual ~MechanicsBase ()=default
 

Private Attributes

NumLib::NewtonRaphsonSolverParameters const _nonlinear_solver_parameters
 
Parameter const & _a
 
Parameter const & _n
 A parameter determined by experiment.
 
Parameter const & _sigma_f
 Creep rate exponent n.
 
Parameter const & _q
 A stress scaling factor.
 

Additional Inherited Members

- Static Public Attributes inherited from MaterialLib::Solids::LinearElasticIsotropic< DisplacementDim >
static int const KelvinVectorSize
 
- Protected Attributes inherited from MaterialLib::Solids::LinearElasticIsotropic< DisplacementDim >
MaterialProperties _mp
 

Member Typedef Documentation

◆ JacobianMatrix

template<int DisplacementDim>
using MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::JacobianMatrix
Initial value:
Eigen::Matrix<double, KelvinVectorSize,
KelvinVectorSize, Eigen::RowMajor>

Definition at line 44 of file CreepBGRa.h.

◆ KelvinMatrix

template<int DisplacementDim>
using MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::KelvinMatrix
Initial value:
Eigen::Matrix< double, kelvin_vector_dimensions(DisplacementDim), kelvin_vector_dimensions(DisplacementDim), Eigen::RowMajor > KelvinMatrixType

Definition at line 49 of file CreepBGRa.h.

◆ KelvinVector

template<int DisplacementDim>
using MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::KelvinVector
Initial value:
Eigen::Matrix< double, kelvin_vector_dimensions(DisplacementDim), 1, Eigen::ColMajor > KelvinVectorType

Definition at line 47 of file CreepBGRa.h.

◆ Parameter

template<int DisplacementDim>
using MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::Parameter = ParameterLib::Parameter<double>

Definition at line 52 of file CreepBGRa.h.

◆ ResidualVectorType

template<int DisplacementDim>
using MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::ResidualVectorType = Eigen::Matrix<double, KelvinVectorSize, 1>

Definition at line 43 of file CreepBGRa.h.

Constructor & Destructor Documentation

◆ CreepBGRa()

template<int DisplacementDim>
MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::CreepBGRa ( typename LinearElasticIsotropic< DisplacementDim >::MaterialProperties mp,
NumLib::NewtonRaphsonSolverParameters nonlinear_solver_parameters,
Parameter const & A,
Parameter const & n,
Parameter const & sigma_f,
Parameter const & Q )
inline

Definition at line 64 of file CreepBGRa.h.

70 _nonlinear_solver_parameters(std::move(nonlinear_solver_parameters)),
71 _a(A),
72 _n(n),
73 _sigma_f(sigma_f),
74 _q(Q)
75 {
76 }
Parameter const & _n
A parameter determined by experiment.
Definition CreepBGRa.h:102
Parameter const & _q
A stress scaling factor.
Definition CreepBGRa.h:104
NumLib::NewtonRaphsonSolverParameters const _nonlinear_solver_parameters
Definition CreepBGRa.h:99
Parameter const & _sigma_f
Creep rate exponent n.
Definition CreepBGRa.h:103

Member Function Documentation

◆ createMaterialStateVariables()

template<int DisplacementDim>
std::unique_ptr< typename MechanicsBase< DisplacementDim >::MaterialStateVariables > MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::createMaterialStateVariables ( ) const
inlineoverridevirtual

Polymorphic creator for MaterialStateVariables objects specific for a material model.

Reimplemented from MaterialLib::Solids::MechanicsBase< DisplacementDim >.

Definition at line 58 of file CreepBGRa.h.

59 {
61 DisplacementDim>::createMaterialStateVariables();
62 }
std::unique_ptr< typename MechanicsBase< DisplacementDim >::MaterialStateVariables > createMaterialStateVariables() const override
Definition CreepBGRa.h:58

References MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::createMaterialStateVariables().

Referenced by MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::createMaterialStateVariables().

◆ getConstitutiveModel()

template<int DisplacementDim>
ConstitutiveModel MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::getConstitutiveModel ( ) const
inlineoverridevirtual

Gets the type of constitutive model.

Reimplemented from MaterialLib::Solids::MechanicsBase< DisplacementDim >.

Definition at line 89 of file CreepBGRa.h.

References MaterialLib::Solids::CreepBGRa.

◆ getTemperatureRelatedCoefficient()

template<int DisplacementDim>
double MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::getTemperatureRelatedCoefficient ( double const ,
double const ,
ParameterLib::SpatialPosition const & ,
double const ,
double const  ) const
overridevirtual

Get temperature related coefficient for the global assembly if there is one.

Reimplemented from MaterialLib::Solids::MechanicsBase< DisplacementDim >.

Definition at line 138 of file CreepBGRa.cpp.

141{
142 const double A = _a(t, x)[0];
143 const double n = _n(t, x)[0];
144 const double sigma0 = _sigma_f(t, x)[0];
145 const double Q = _q(t, x)[0];
146
147 const double constant_coefficient =
148 getCreepConstantCoefficient(A, n, sigma0);
149
150 return 2.0 * constant_coefficient *
151 std::exp(-Q /
153 this->_mp.mu(t, x) * std::pow(deviatoric_stress_norm, n - 1) * dt *
155}
double mu(double const t, X const &x) const
Lamé's second parameter, the shear modulus.
double getCreepConstantCoefficient(const double A, const double n, const double sigma0)
Definition CreepBGRa.cpp:28

References MaterialLib::Solids::Creep::getCreepConstantCoefficient(), and MaterialLib::PhysicalConstant::IdealGasConstant.

◆ integrateStress()

template<int DisplacementDim>
std::optional< std::tuple< typename CreepBGRa< DisplacementDim >::KelvinVector, std::unique_ptr< typename MechanicsBase< DisplacementDim >::MaterialStateVariables >, typename CreepBGRa< DisplacementDim >::KelvinMatrix > > MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::integrateStress ( MaterialPropertyLib::VariableArray const & variable_array_prev,
MaterialPropertyLib::VariableArray const & variable_array,
double const t,
ParameterLib::SpatialPosition const & x,
double const dt,
typename MechanicsBase< DisplacementDim >::MaterialStateVariables const & material_state_variables ) const
override

Definition at line 39 of file CreepBGRa.cpp.

45{
46 auto const& eps_m = std::get<MPL::SymmetricTensor<DisplacementDim>>(
47 variable_array.mechanical_strain);
48 auto const& eps_m_prev = std::get<MPL::SymmetricTensor<DisplacementDim>>(
49 variable_array_prev.mechanical_strain);
50 auto const& sigma_prev = std::get<MPL::SymmetricTensor<DisplacementDim>>(
51 variable_array_prev.stress);
52 auto const T = variable_array_prev.temperature;
53
55
56 Eigen::FullPivLU<Eigen::Matrix<double, KelvinVectorSize, KelvinVectorSize,
57 Eigen::RowMajor>>
58 linear_solver;
59
60 const auto C = this->getElasticTensor(t, x, T);
61 KelvinVector sigma_try = sigma_prev + C * (eps_m - eps_m_prev);
62
63 auto const& deviatoric_matrix = Invariants::deviatoric_projection;
64
65 double const norm_s_try =
66 Invariants::FrobeniusNorm(deviatoric_matrix * sigma_try);
67 // In case |s_{try}| is zero and _n < 3 (rare case).
68 if (norm_s_try < std::numeric_limits<double>::epsilon() * C(0, 0))
69 {
70 return {std::make_tuple(sigma_try, createMaterialStateVariables(), C)};
71 }
72
73 ResidualVectorType solution = sigma_try;
74
75 const double A = _a(t, x)[0];
76 const double n = _n(t, x)[0];
77 const double sigma0 = _sigma_f(t, x)[0];
78 const double Q = _q(t, x)[0];
79
80 const double constant_coefficient =
81 getCreepConstantCoefficient(A, n, sigma0);
82
83 const double b =
84 dt * constant_coefficient *
86
87 double const G2b = 2.0 * b * this->_mp.mu(t, x);
88
89 auto const update_jacobian = [&solution, &G2b, &n](JacobianMatrix& jacobian)
90 {
91 auto const& D = Invariants::deviatoric_projection;
92 KelvinVector const s_n1 = D * solution;
93 double const norm_s_n1 = Invariants::FrobeniusNorm(s_n1);
94 double const pow_norm_s_n1_n_minus_one_2b_G =
95 G2b * std::pow(norm_s_n1, n - 1);
96 jacobian = KelvinMatrix::Identity() +
97 (pow_norm_s_n1_n_minus_one_2b_G * D +
98 (n - 1) * G2b * std::pow(norm_s_n1, n - 3) * s_n1 *
99 s_n1.transpose());
100 };
101
102 auto const update_residual =
103 [&solution, &G2b, &n, &sigma_try](ResidualVectorType& r)
104 {
105 KelvinVector const s_n1 = Invariants::deviatoric_projection * solution;
106 double const norm_s_n1 = Invariants::FrobeniusNorm(s_n1);
107 double const pow_norm_s_n1_n_minus_one_2b_G =
108 G2b * std::pow(norm_s_n1, n - 1);
109 r = solution - sigma_try + pow_norm_s_n1_n_minus_one_2b_G * s_n1;
110 };
111
112 auto const update_solution = [&](ResidualVectorType const& increment)
113 { solution += increment; };
114
115 auto newton_solver =
116 NumLib::NewtonRaphson(linear_solver, update_jacobian, update_residual,
117 update_solution, _nonlinear_solver_parameters);
118
119 JacobianMatrix jacobian;
120 auto const success_iterations = newton_solver.solve(jacobian);
121
122 if (!success_iterations)
123 {
124 return {};
125 }
126
127 // If *success_iterations>0, tangentStiffness = J_(sigma)^{-1}C
128 // where J_(sigma) is the Jacobian of the last local Newton-Raphson
129 // iteration, which is already LU decomposed.
130 KelvinMatrix tangentStiffness =
131 (*success_iterations == 0) ? C : linear_solver.solve(C);
132
133 return {std::make_tuple(solution, createMaterialStateVariables(),
134 tangentStiffness)};
135}
Eigen::Matrix< double, KelvinVectorSize, KelvinVectorSize, Eigen::RowMajor > JacobianMatrix
Definition CreepBGRa.h:44
Eigen::Matrix< double, KelvinVectorSize, 1 > ResidualVectorType
Definition CreepBGRa.h:43
MathLib::KelvinVector::KelvinMatrixType< DisplacementDim > KelvinMatrix
Definition CreepBGRa.h:49
MathLib::KelvinVector::KelvinVectorType< DisplacementDim > KelvinVector
Definition CreepBGRa.h:47
KelvinMatrix getElasticTensor(double const t, ParameterLib::SpatialPosition const &x, double const T) const

References MaterialLib::Solids::Creep::getCreepConstantCoefficient(), MaterialLib::PhysicalConstant::IdealGasConstant, MaterialPropertyLib::VariableArray::mechanical_strain, MaterialPropertyLib::VariableArray::stress, and MaterialPropertyLib::VariableArray::temperature.

Member Data Documentation

◆ _a

template<int DisplacementDim>
Parameter const& MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::_a
private

Definition at line 101 of file CreepBGRa.h.

◆ _n

template<int DisplacementDim>
Parameter const& MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::_n
private

A parameter determined by experiment.

Definition at line 102 of file CreepBGRa.h.

◆ _nonlinear_solver_parameters

template<int DisplacementDim>
NumLib::NewtonRaphsonSolverParameters const MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::_nonlinear_solver_parameters
private

Definition at line 99 of file CreepBGRa.h.

◆ _q

template<int DisplacementDim>
Parameter const& MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::_q
private

A stress scaling factor.

Definition at line 104 of file CreepBGRa.h.

◆ _sigma_f

template<int DisplacementDim>
Parameter const& MaterialLib::Solids::Creep::CreepBGRa< DisplacementDim >::_sigma_f
private

Creep rate exponent n.

Definition at line 103 of file CreepBGRa.h.


The documentation for this class was generated from the following files: