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 "ComputeCosseratStressBase.h" 11 : 12 : InputParameters 13 440 : ComputeCosseratStressBase::validParams() 14 : { 15 440 : InputParameters params = ComputeStressBase::validParams(); 16 440 : params.addClassDescription("Compute stress and couple stress in the Cosserat situation"); 17 440 : return params; 18 0 : } 19 : 20 330 : ComputeCosseratStressBase::ComputeCosseratStressBase(const InputParameters & parameters) 21 : : ComputeStressBase(parameters), 22 330 : _curvature(getMaterialPropertyByName<RankTwoTensor>("curvature")), 23 330 : _elastic_flexural_rigidity_tensor( 24 330 : getMaterialPropertyByName<RankFourTensor>("elastic_flexural_rigidity_tensor")), 25 330 : _stress_couple(declareProperty<RankTwoTensor>("couple_stress")), 26 660 : _Jacobian_mult_couple(declareProperty<RankFourTensor>("couple_Jacobian_mult")) 27 : { 28 330 : } 29 : 30 : void 31 0 : ComputeCosseratStressBase::initQpStatefulProperties() 32 : { 33 0 : ComputeStressBase::initQpStatefulProperties(); 34 0 : _stress_couple[_qp].zero(); 35 0 : }