www.mooseframework.org
ADCHSplitChemicalPotential.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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  ADKernel,
17  params.addClassDescription("Chemical potential kernel in Split Cahn-Hilliard that solves "
18  "chemical potential in a weak form");
19  params.addRequiredParam<MaterialPropertyName>("chemical_potential",
20  "Chemical potential property name"););
21 
22 template <ComputeStage compute_stage>
24  const InputParameters & parameters)
25  : ADKernel<compute_stage>(parameters),
26  _chemical_potential(getADMaterialProperty<Real>("chemical_potential"))
27 {
28 }
29 
30 template <ComputeStage compute_stage>
31 ADReal
33 {
34  return _test[_i][_qp] * (_u[_qp] - _chemical_potential[_qp]);
35 }
ADCHSplitChemicalPotential::computeQpResidual
virtual ADReal computeQpResidual()
Definition: ADCHSplitChemicalPotential.C:32
defineADValidParams
defineADValidParams(ADCHSplitChemicalPotential, ADKernel, params.addClassDescription("Chemical potential kernel in Split Cahn-Hilliard that solves " "chemical potential in a weak form");params.addRequiredParam< MaterialPropertyName >("chemical_potential", "Chemical potential property name");)
ADCHSplitChemicalPotential
Solves chemical potential in a weak sense (mu-mu_prop=0).
Definition: ADCHSplitChemicalPotential.h:16
ADCHSplitChemicalPotential::ADCHSplitChemicalPotential
ADCHSplitChemicalPotential(const InputParameters &parameters)
Definition: ADCHSplitChemicalPotential.C:23
ADCHSplitChemicalPotential.h
registerADMooseObject
registerADMooseObject("PhaseFieldApp", ADCHSplitChemicalPotential)