www.mooseframework.org
ComputeDamageStress.h
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 
10 #pragma once
11 
14 #include "DamageBase.h"
15 
16 // Forward declaration
17 template <bool is_ad>
18 using ComputeFiniteStrainElasticStressTempl = typename std::
19  conditional<is_ad, ADComputeFiniteStrainElasticStress, ComputeFiniteStrainElasticStress>::type;
20 
25 template <bool is_ad>
27 {
28 public:
30 
31  ComputeDamageStressTempl(const InputParameters & parameters);
32 
33  void initialSetup() override;
34 
35 protected:
36  virtual void computeQpStress() override;
37 
40 
43 
44  using MaterialBase::_qp;
45 };
46 
ComputeDamageStress computes the stress for a damaged elasticity material.
MaterialProperty< Real > & _material_timestep_limit
Property that stores the time step limit.
ComputeDamageStressTempl< true > ADComputeDamageStress
typename std::conditional< is_ad, ADComputeFiniteStrainElasticStress, ComputeFiniteStrainElasticStress >::type ComputeFiniteStrainElasticStressTempl
unsigned int _qp
DamageBaseTempl< is_ad > * _damage_model
Pointer to the damage model.
DamageBase is a base class for damage models, which modify the stress tensor computed by another mode...
Definition: DamageBase.h:25
static InputParameters validParams()
virtual void computeQpStress() override
ComputeDamageStressTempl< false > ComputeDamageStress
ComputeDamageStressTempl(const InputParameters &parameters)