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 "ADCZMComputeLocalTractionBase.h" 11 : #include "CZMComputeLocalTractionBase.h" 12 : 13 : InputParameters 14 0 : ADCZMComputeLocalTractionBase::validParams() 15 : { 16 0 : InputParameters params = CZMComputeLocalTractionBase::validParams(); 17 0 : return params; 18 : } 19 : 20 6 : ADCZMComputeLocalTractionBase::ADCZMComputeLocalTractionBase(const InputParameters & parameters) 21 : : InterfaceMaterial(parameters), 22 6 : _base_name(isParamValid("base_name") && !getParam<std::string>("base_name").empty() 23 6 : ? getParam<std::string>("base_name") + "_" 24 : : ""), 25 6 : _interface_traction( 26 6 : declareADPropertyByName<RealVectorValue>(_base_name + "interface_traction")), 27 6 : _interface_displacement_jump( 28 12 : getADMaterialPropertyByName<RealVectorValue>(_base_name + "interface_displacement_jump")) 29 : { 30 6 : } 31 : 32 : void 33 576 : ADCZMComputeLocalTractionBase::initQpStatefulProperties() 34 : { 35 576 : _interface_traction[_qp] = 0; 36 576 : } 37 : 38 : void 39 8640 : ADCZMComputeLocalTractionBase::computeQpProperties() 40 : { 41 8640 : computeInterfaceTraction(); 42 8640 : }