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 "ComputeLagrangianWrappedStress.h" 11 : 12 : registerMooseObject("SolidMechanicsApp", ComputeLagrangianWrappedStress); 13 : 14 : InputParameters 15 384 : ComputeLagrangianWrappedStress::validParams() 16 : { 17 384 : InputParameters params = ComputeLagrangianObjectiveStress::validParams(); 18 : 19 768 : params.addParam<MaterialPropertyName>("input_stress", 20 : "stress", 21 : "The name of the engineering stress from the " 22 : "wrapped material"); 23 768 : params.addParam<MaterialPropertyName>("input_jacobian", 24 : "Jacobian_mult", 25 : "The name of the engineering " 26 : "stress/strain Jacobian from the wrapped material"); 27 : 28 384 : return params; 29 0 : } 30 : 31 288 : ComputeLagrangianWrappedStress::ComputeLagrangianWrappedStress(const InputParameters & parameters) 32 : : ComputeLagrangianObjectiveStress(parameters), 33 288 : _input_stress(getMaterialPropertyByName<RankTwoTensor>( 34 288 : _base_name + getParam<MaterialPropertyName>("input_stress"))), 35 288 : _input_jacobian(getMaterialPropertyByName<RankFourTensor>( 36 864 : _base_name + getParam<MaterialPropertyName>("input_jacobian"))) 37 : { 38 288 : } 39 : 40 : void 41 12733504 : ComputeLagrangianWrappedStress::computeQpSmallStress() 42 : { 43 : // Well this ends up being trivial... 44 12733504 : _small_stress[_qp] = _input_stress[_qp]; 45 12733504 : _small_jacobian[_qp] = _input_jacobian[_qp]; 46 12733504 : }