www.mooseframework.org
CompositeEigenstrain.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "CompositeEigenstrain.h"
11 
12 registerMooseObject("SolidMechanicsApp", CompositeEigenstrain);
13 
16 {
17  InputParameters params =
19  params.addClassDescription("Assemble an Eigenstrain tensor from multiple tensor contributions "
20  "weighted by material properties");
21  return params;
22 }
23 
26 {
27  initializeDerivativeProperties(_base_name + "elastic_strain");
28 }
29 
30 void
32 {
33  // Define Eigenstrain (and fill in the derivatives of elastic strain with a prefactor of -1)
34  computeQpTensorProperties(_eigenstrain, -1.0);
35 }
CompositeEigenstrain provides a simple RankTwoTensor type MaterialProperty that can be used as an Eig...
virtual void computeQpEigenstrain()
registerMooseObject("SolidMechanicsApp", CompositeEigenstrain)
static InputParameters validParams()
static InputParameters validParams()
virtual void computeQpTensorProperties(MaterialProperty< T > &M, Real derivative_prefactor=1.0)
ComputeEigenstrainBase is the base class for eigenstrain tensors.
CompositeEigenstrain(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)