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 "ADCZMComputeLocalTractionIncrementalBase.h" 11 : #include "CZMComputeLocalTractionIncrementalBase.h" 12 : 13 : InputParameters 14 0 : ADCZMComputeLocalTractionIncrementalBase::validParams() 15 : { 16 0 : InputParameters params = CZMComputeLocalTractionIncrementalBase::validParams(); 17 0 : return params; 18 : } 19 : 20 0 : ADCZMComputeLocalTractionIncrementalBase::ADCZMComputeLocalTractionIncrementalBase( 21 0 : const InputParameters & parameters) 22 : : ADCZMComputeLocalTractionBase(parameters), 23 0 : _interface_traction_inc( 24 0 : declareADPropertyByName<RealVectorValue>(_base_name + "interface_traction_inc")), 25 0 : _interface_traction_old( 26 0 : getMaterialPropertyOldByName<RealVectorValue>(_base_name + "interface_traction")), 27 0 : _interface_displacement_jump_inc( 28 0 : declareADPropertyByName<RealVectorValue>(_base_name + "interface_displacement_jump_inc")), 29 0 : _interface_displacement_jump_old( 30 0 : getMaterialPropertyOldByName<RealVectorValue>(_base_name + "interface_displacement_jump")) 31 : { 32 0 : } 33 : 34 : void 35 0 : ADCZMComputeLocalTractionIncrementalBase::computeInterfaceTraction() 36 : { 37 0 : _interface_displacement_jump_inc[_qp] = 38 0 : _interface_displacement_jump[_qp] - _interface_displacement_jump_old[_qp]; 39 0 : computeInterfaceTractionIncrement(); 40 0 : _interface_traction[_qp] = _interface_traction_inc[_qp] + _interface_traction_old[_qp]; 41 0 : }