www.mooseframework.org
ComputeEigenstrain.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "ComputeEigenstrain.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<ComputeEigenstrainBase>();
15  params.addClassDescription("Computes a constant Eigenstrain");
16  params.addRequiredParam<std::vector<Real>>(
17  "eigen_base", "Vector of values defining the constant base tensor for the Eigenstrain");
18  params.addParam<MaterialPropertyName>(
19  "prefactor", 1.0, "Name of material defining the variable dependence");
20  return params;
21 }
22 
23 ComputeEigenstrain::ComputeEigenstrain(const InputParameters & parameters)
24  : ComputeEigenstrainBase(parameters), _prefactor(getMaterialProperty<Real>("prefactor"))
25 {
26  _eigen_base_tensor.fillFromInputVector(getParam<std::vector<Real>>("eigen_base"));
27 }
28 
29 void
31 {
32  // Define Eigenstrain
34 }
InputParameters validParams< ComputeEigenstrainBase >()
ComputeEigenstrain(const InputParameters &parameters)
RankTwoTensor _eigen_base_tensor
MaterialProperty< RankTwoTensor > & _eigenstrain
Stores the current total eigenstrain.
virtual void computeQpEigenstrain()
Compute the eigenstrain and store in _eigenstrain.
const MaterialProperty< Real > & _prefactor
InputParameters validParams< ComputeEigenstrain >()
ComputeEigenstrainBase is the base class for eigenstrain tensors.