11#include "libmesh/quadrature.h"
20 "single-step first-order finite difference "
21 "time-stepping scheme");
23 "name of the LinearViscoelasticityBase object to manage");
25 "stress_name",
"stress",
"name of the stress tensor used for the viscoelastic update");
26 params.
addParam<std::string>(
"creep_strain_name",
28 "name of the creep strain tensor used for the viscoelastic update");
30 "elastic_strain_name",
32 "name of the elastic strain tensor used for the viscoelastic update");
40 _stress_name(getParam<
std::string>(
"stress_name")),
41 _stress(getMaterialPropertyByName<
RankTwoTensor>(_stress_name)),
42 _creep_strain_name(getParam<
std::string>(
"creep_strain_name")),
43 _creep_strain(getMaterialPropertyByName<
RankTwoTensor>(_creep_strain_name)),
44 _elastic_strain_name(getParam<
std::string>(
"elastic_strain_name")),
45 _elastic_strain(getMaterialPropertyByName<
RankTwoTensor>(_elastic_strain_name)),
46 _viscoelastic_model_name(getParam<
std::string>(
"viscoelastic_model")),
47 _viscoelastic_model(nullptr)
68 for (
unsigned int _qp = 0; _qp <
_qrule->n_points(); ++_qp)
registerMooseObject("SolidMechanicsApp", LinearViscoelasticityManager)
const ExecFlagType EXEC_TIMESTEP_END
const ExecFlagType EXEC_TIMESTEP_BEGIN
static InputParameters validParams()
const QBase *const & _qrule
const ExecFlagType & getCurrentExecuteOnFlag() const
This class is a base class for materials consisting of an assembly of linear springs and dashpots.
void recomputeQpApparentProperties(unsigned int qp)
Compute the apparent properties at a quadrature point.
This class manages a LinearViscoelasticityBase object.
virtual void initialSetup() override
virtual void execute() override
LinearViscoelasticityBase * _viscoelastic_model
Pointer to the viscoelastic model to update.
static InputParameters validParams()
std::string _viscoelastic_model_name
Name of the viscoelastic model to update.
LinearViscoelasticityManager(const InputParameters ¶meters)
MaterialBase & getMaterialByName(const std::string &name, bool no_warn=false)
FEProblemBase & _mi_feproblem
void mooseError(Args &&... args) const