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 "ADCZMComputeGlobalTractionBase.h" 11 : 12 : InputParameters 13 0 : ADCZMComputeGlobalTractionBase::validParams() 14 : { 15 0 : InputParameters params = InterfaceMaterial::validParams(); 16 0 : params.suppressParameter<bool>("use_displaced_mesh"); 17 0 : params.addParam<std::string>("base_name", "Material property base name"); 18 0 : return params; 19 0 : } 20 : 21 12 : ADCZMComputeGlobalTractionBase::ADCZMComputeGlobalTractionBase(const InputParameters & parameters) 22 : : InterfaceMaterial(parameters), 23 36 : _base_name(isParamValid("base_name") && !getParam<std::string>("base_name").empty() 24 12 : ? getParam<std::string>("base_name") + "_" 25 : : ""), 26 24 : _traction_global(declareADPropertyByName<RealVectorValue>(_base_name + "traction_global")), 27 12 : _interface_traction( 28 12 : getADMaterialPropertyByName<RealVectorValue>(_base_name + "interface_traction")), 29 12 : _czm_total_rotation( 30 24 : getADMaterialPropertyByName<RankTwoTensor>(_base_name + "czm_total_rotation")) 31 : { 32 12 : } 33 : 34 : void 35 15552 : ADCZMComputeGlobalTractionBase::computeQpProperties() 36 : { 37 15552 : computeEquilibriumTracion(); 38 15552 : }