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 "ComputeSmallStrainVariableHorizonMaterialOSPD.h" 11 : 12 : registerMooseObject("PeridynamicsApp", ComputeSmallStrainVariableHorizonMaterialOSPD); 13 : 14 : InputParameters 15 115 : ComputeSmallStrainVariableHorizonMaterialOSPD::validParams() 16 : { 17 115 : InputParameters params = ComputeSmallStrainMaterialBaseOSPD::validParams(); 18 115 : params.addClassDescription("Class for computing peridynamic micro elastic moduli for ordinary " 19 : "state-based model using irregular mesh"); 20 : 21 115 : return params; 22 0 : } 23 : 24 90 : ComputeSmallStrainVariableHorizonMaterialOSPD::ComputeSmallStrainVariableHorizonMaterialOSPD( 25 90 : const InputParameters & parameters) 26 90 : : ComputeSmallStrainMaterialBaseOSPD(parameters) 27 : { 28 90 : } 29 : 30 : void 31 319394 : ComputeSmallStrainVariableHorizonMaterialOSPD::computePeridynamicsParams() 32 : { 33 319394 : _a = 0.5 * (_bulk_modulus - (8.0 - _dim) / 3.0 * _shear_modulus); 34 : 35 : // _b = _bij * _horizon_i + _bji * _horizon_j 36 319394 : _b = _dim * _dim * (_bulk_modulus / 2.0 - _a) * (1.0 / _horizon_vol[0] + 1.0 / _horizon_vol[1]); 37 : 38 : // _d_i = _di * _horizon_i = _dim / _nvsum_i 39 319394 : _d[0] = _dim / _horizon_vol[0]; 40 : 41 : // _d_j = _dj * _horizon_j = _dim / _nvsum_j 42 319394 : _d[1] = _dim / _horizon_vol[1]; 43 319394 : }