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 "ComputeCosseratElasticityTensor.h" 11 : 12 : registerMooseObject("SolidMechanicsApp", ComputeCosseratElasticityTensor); 13 : 14 : InputParameters 15 292 : ComputeCosseratElasticityTensor::validParams() 16 : { 17 292 : InputParameters params = ComputeElasticityTensorBase::validParams(); 18 292 : params.addClassDescription("Compute Cosserat elasticity and flexural bending rigidity tensors"); 19 584 : params.addRequiredParam<std::vector<Real>>("E_ijkl", "Elastic stiffness tensor for material"); 20 584 : params.addParam<MooseEnum>( 21 584 : "fill_method", RankFourTensor::fillMethodEnum() = "symmetric9", "The fill method"); 22 584 : params.addRequiredParam<std::vector<Real>>("B_ijkl", "Flexural bending rigidity tensor."); 23 584 : params.addParam<MooseEnum>("fill_method_bending", 24 584 : RankFourTensor::fillMethodEnum() = "antisymmetric_isotropic", 25 : "The fill method for the 'bending' tensor."); 26 292 : return params; 27 0 : } 28 : 29 219 : ComputeCosseratElasticityTensor::ComputeCosseratElasticityTensor(const InputParameters & parameters) 30 : : ComputeElasticityTensorBase(parameters), 31 657 : _Eijkl(getParam<std::vector<Real>>("E_ijkl"), 32 438 : (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method")), 33 657 : _Bijkl(getParam<std::vector<Real>>("B_ijkl"), 34 219 : (RankFourTensor::FillMethod)(int)getParam<MooseEnum>("fill_method_bending")), 35 219 : _elastic_flexural_rigidity_tensor( 36 438 : declareProperty<RankFourTensor>("elastic_flexural_rigidity_tensor")) 37 : { 38 438 : if (!isParamValid("elasticity_tensor_prefactor")) 39 438 : issueGuarantee(_elasticity_tensor_name, Guarantee::CONSTANT_IN_TIME); 40 219 : } 41 : 42 : void 43 76272 : ComputeCosseratElasticityTensor::computeQpElasticityTensor() 44 : { 45 76272 : _elasticity_tensor[_qp] = _Eijkl; 46 76272 : _elastic_flexural_rigidity_tensor[_qp] = _Bijkl; 47 76272 : }