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 "ADSplitCHParsed.h" 11 : 12 : registerMooseObject("PhaseFieldApp", ADSplitCHParsed); 13 : 14 : InputParameters 15 55 : ADSplitCHParsed::validParams() 16 : { 17 55 : InputParameters params = ADSplitCHCRes::validParams(); 18 55 : params.addClassDescription( 19 : "Split formulation Cahn-Hilliard Kernel that uses a DerivativeMaterial Free Energy"); 20 110 : params.addRequiredParam<MaterialPropertyName>( 21 : "f_name", "Base name of the free energy function F defined in a DerivativeParsedMaterial"); 22 110 : params.addCoupledVar("coupled_variables", "Vector of additional arguments to F"); 23 : 24 55 : return params; 25 0 : } 26 : 27 29 : ADSplitCHParsed::ADSplitCHParsed(const InputParameters & parameters) 28 : : ADSplitCHCRes(parameters), 29 58 : _f_name(getParam<MaterialPropertyName>("f_name")), 30 87 : _dFdc(getADMaterialProperty<Real>(derivativePropertyNameFirst(_f_name, _var.name()))) 31 : { 32 29 : } 33 : 34 : ADReal 35 11904000 : ADSplitCHParsed::computeDFDC() 36 : { 37 11904000 : return _dFdc[_qp]; 38 : }