www.mooseframework.org
CompositeEigenstrain.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 "CompositeEigenstrain.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params =
15  CompositeTensorBase<RankTwoTensor, ComputeEigenstrainBase>::validParams();
16  params.addClassDescription("Assemble an Eigenstrain tensor from multiple tensor contributions "
17  "weighted by material properties");
18  return params;
19 }
20 
21 CompositeEigenstrain::CompositeEigenstrain(const InputParameters & parameters)
22  : CompositeTensorBase<RankTwoTensor, ComputeEigenstrainBase>(parameters)
23 {
24  initializeDerivativeProperties(_base_name + "elastic_strain");
25 }
26 
27 void
29 {
30  // Define Eigenstrain (and fill in the derivatives of elastic strain with a prefactor of -1)
31  computeQpTensorProperties(_eigenstrain, -1.0);
32 }
virtual void computeQpEigenstrain()
InputParameters validParams< CompositeEigenstrain >()
CompositeEigenstrain(const InputParameters &parameters)
ComputeEigenstrainBase is the base class for eigenstrain tensors.