Go to the documentation of this file.
20 params.addClassDescription(
"Computes an Eigenstrain and its derivatives that is a function of "
21 "multiple variables, where the prefactor is defined in a derivative "
23 params.addRequiredCoupledVar(
"args",
"variable dependencies for the prefactor");
29 _num_args(coupledComponents(
"args")),
30 _dprefactor(_num_args),
31 _d2prefactor(_num_args),
32 _delastic_strain(_num_args),
33 _d2elastic_strain(_num_args)
36 for (
unsigned int i = 0; i <
_num_args; ++i)
38 const VariableName & iname = getVar(
"args", i)->name();
39 _dprefactor[i] = &getMaterialPropertyDerivative<Real>(
"prefactor", iname);
41 &declarePropertyDerivative<RankTwoTensor>(_base_name +
"elastic_strain", iname);
46 for (
unsigned int j = i; j <
_num_args; ++j)
48 const VariableName & jname = getVar(
"args", j)->name();
49 _d2prefactor[i][j] = &getMaterialPropertyDerivative<Real>(
"prefactor", iname, jname);
51 &declarePropertyDerivative<RankTwoTensor>(_base_name +
"elastic_strain", iname, jname);
62 for (
unsigned int i = 0; i <
_num_args; ++i)
65 for (
unsigned int j = i; j <
_num_args; ++j)
virtual void computeQpEigenstrain()
Compute the eigenstrain and store in _eigenstrain.
static InputParameters validParams()
defineLegacyParams(ComputeVariableEigenstrain)
registerMooseObject("TensorMechanicsApp", ComputeVariableEigenstrain)
ComputeVariableEigenstrain(const InputParameters ¶meters)
std::vector< std::vector< MaterialProperty< RankTwoTensor > * > > _d2elastic_strain
second derivatives of the elastic strain w.r.t. to the args
const unsigned int _num_args
number of variables the prefactor depends on
ComputeEigenstrain computes an Eigenstrain that is a function of a single variable defined by a base ...
std::vector< MaterialProperty< RankTwoTensor > * > _delastic_strain
first derivatives of the elastic strain w.r.t. to the args
ComputeVariableEigenstrain computes an Eigenstrain that is a function of variables defined by a base ...
std::vector< const MaterialProperty< Real > * > _dprefactor
first derivatives of the prefactor w.r.t. to the args
std::vector< std::vector< const MaterialProperty< Real > * > > _d2prefactor
second derivatives of the prefactor w.r.t. to the args
static InputParameters validParams()
virtual void computeQpEigenstrain()