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)
FEProblemBase & _mi_feproblem
This class manages a LinearViscoelasticityBase object.
registerMooseObject("SolidMechanicsApp", LinearViscoelasticityManager)
static InputParameters validParams()
const ExecFlagType & getCurrentExecuteOnFlag() const
void recomputeQpApparentProperties(unsigned int qp)
Compute the apparent properties at a quadrature point.
const ExecFlagType EXEC_TIMESTEP_END
virtual void initialSetup() override
static InputParameters validParams()
virtual void execute() override
const ExecFlagType EXEC_TIMESTEP_BEGIN
std::string _viscoelastic_model_name
Name of the viscoelastic model to update.
MaterialBase & getMaterialByName(const std::string &name, bool no_warn=false)
LinearViscoelasticityBase * _viscoelastic_model
Pointer to the viscoelastic model to update.
const QBase *const & _qrule
This class is a base class for materials consisting of an assembly of linear springs and dashpots...
void mooseError(Args &&... args) const
LinearViscoelasticityManager(const InputParameters ¶meters)