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 "ADGrainGrowth.h" 11 : 12 : registerMooseObject("PhaseFieldApp", ADGrainGrowth); 13 : 14 : InputParameters 15 64 : ADGrainGrowth::validParams() 16 : { 17 64 : InputParameters params = ADGrainGrowthBase::validParams(); 18 64 : params.addClassDescription("Grain-Boundary model poly-crystalline interface Allen-Cahn Kernel"); 19 64 : return params; 20 0 : } 21 : 22 34 : ADGrainGrowth::ADGrainGrowth(const InputParameters & parameters) 23 68 : : ADGrainGrowthBase(parameters), _gamma(getADMaterialProperty<Real>("gamma_asymm")) 24 : { 25 34 : } 26 : 27 : ADReal 28 4099200 : ADGrainGrowth::computeDFDOP() 29 : { 30 : // Sum all other order parameters 31 4099200 : ADReal SumEtaj = 0.0; 32 8198400 : for (unsigned int i = 0; i < _op_num; ++i) 33 8198400 : SumEtaj += (*_vals[i])[_qp] * (*_vals[i])[_qp]; 34 : 35 16396800 : return _mu[_qp] * (_u[_qp] * _u[_qp] * _u[_qp] - _u[_qp] + 2.0 * _gamma[_qp] * _u[_qp] * SumEtaj); 36 : }