https://mooseframework.inl.gov
ADCHSplitChemicalPotential.C
Go to the documentation of this file.
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 
11 
13 
16 {
18  params.addClassDescription("Chemical potential kernel in Split Cahn-Hilliard that solves "
19  "chemical potential in a weak form");
20  params.addRequiredParam<MaterialPropertyName>("chemical_potential",
21  "Chemical potential property name");
22  return params;
23 }
24 
26  : ADKernel(parameters), _chemical_potential(getADMaterialProperty<Real>("chemical_potential"))
27 {
28 }
29 
30 ADReal
32 {
33  return _test[_i][_qp] * (_u[_qp] - _chemical_potential[_qp]);
34 }
Solves chemical potential in a weak sense (mu-mu_prop=0).
registerMooseObject("PhaseFieldApp", ADCHSplitChemicalPotential)
ADCHSplitChemicalPotential(const InputParameters &parameters)
const ADTemplateVariableValue< T > & _u
const ADTemplateVariableTestValue< T > & _test
DualNumber< Real, DNDerivativeType, true > ADReal
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _i
static InputParameters validParams()
const ADMaterialProperty< Real > & _chemical_potential
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
unsigned int _qp