https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
registerMooseObject("PhaseFieldApp", ADCHSplitChemicalPotential)
DualNumber< Real, DNDerivativeType, true > ADReal
Solves chemical potential in a weak sense (mu-mu_prop=0).
const ADMaterialProperty< Real > & _chemical_potential
static InputParameters validParams()
ADCHSplitChemicalPotential(const InputParameters &parameters)
const ADTemplateVariableValue< T > & _u
const ADTemplateVariableTestValue< T > & _test
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _i