https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADSplitCHParsed.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
10#include "ADSplitCHParsed.h"
11
13
16{
19 "Split formulation Cahn-Hilliard Kernel that uses a DerivativeMaterial Free Energy");
20 params.addRequiredParam<MaterialPropertyName>(
21 "f_name", "Base name of the free energy function F defined in a DerivativeParsedMaterial");
22 params.addCoupledVar("coupled_variables", "Vector of additional arguments to F");
23
24 return params;
25}
26
28 : ADSplitCHCRes(parameters),
29 _f_name(getParam<MaterialPropertyName>("f_name")),
30 _dFdc(getADMaterialProperty<Real>(derivativePropertyNameFirst(_f_name, _var.name())))
31{
32}
33
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("PhaseFieldApp", ADSplitCHParsed)
const std::string name
Definition Setup.h:21
The pair, ADSplitCHCRes and ADSplitCHWRes, splits the Cahn-Hilliard equation by replacing chemical po...
static InputParameters validParams()
ADSplitCHParsed uses the Free Energy function and derivatives provided by an ADMaterial.
static InputParameters validParams()
const ADMaterialProperty< Real > & _dFdc
chemical potential property
virtual ADReal computeDFDC()
ADSplitCHParsed(const InputParameters &parameters)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)
unsigned int _qp