Line data Source code
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 "ComputeLagrangianWPSStrain.h" 11 : 12 : registerMooseObject("TensorMechanicsApp", ComputeLagrangianWPSStrain); 13 : 14 : InputParameters 15 60 : ComputeLagrangianWPSStrain::validParams() 16 : { 17 60 : InputParameters params = ComputeLagrangianStrain::validParams(); 18 120 : params.addRequiredCoupledVar("out_of_plane_strain", "The out-of-plane strain"); 19 60 : return params; 20 0 : } 21 : 22 45 : ComputeLagrangianWPSStrain::ComputeLagrangianWPSStrain(const InputParameters & params) 23 45 : : ComputeLagrangianStrain(params), _out_of_plane_strain(coupledValue("out_of_plane_strain")) 24 : { 25 45 : } 26 : 27 : void 28 20560 : ComputeLagrangianWPSStrain::computeDeformationGradient() 29 : { 30 20560 : ComputeLagrangianStrain::computeDeformationGradient(); 31 : 32 102800 : for (_qp = 0; _qp < _qrule->n_points(); ++_qp) 33 82240 : _F[_qp](2, 2) += _out_of_plane_strain[_qp]; 34 20560 : }