Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 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 : 14 : InputParameters 15 24 : CompositeEigenstrain::validParams() 16 : { 17 : InputParameters params = 18 24 : CompositeTensorBase<RankTwoTensor, ComputeEigenstrainBase>::validParams(); 19 24 : params.addClassDescription("Assemble an Eigenstrain tensor from multiple tensor contributions " 20 : "weighted by material properties"); 21 24 : return params; 22 0 : } 23 : 24 18 : CompositeEigenstrain::CompositeEigenstrain(const InputParameters & parameters) 25 18 : : CompositeTensorBase<RankTwoTensor, ComputeEigenstrainBase>(parameters) 26 : { 27 18 : initializeDerivativeProperties(_base_name + "elastic_strain"); 28 18 : } 29 : 30 : void 31 3072 : CompositeEigenstrain::computeQpEigenstrain() 32 : { 33 : // Define Eigenstrain (and fill in the derivatives of elastic strain with a prefactor of -1) 34 3072 : computeQpTensorProperties(_eigenstrain, -1.0); 35 3072 : }