https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SimpleACInterface.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 "SimpleACInterface.h"
11
13
16{
19 "Gradient energy for Allen-Cahn Kernel with constant Mobility and Interfacial parameter");
20 params.addParam<MaterialPropertyName>("mob_name", "L", "The mobility used with the kernel");
21 params.addParam<MaterialPropertyName>("kappa_name", "kappa_op", "The kappa used with the kernel");
22 return params;
23}
24
26 : Kernel(parameters),
27 _L(getMaterialProperty<Real>("mob_name")),
28 _kappa(getMaterialProperty<Real>("kappa_name"))
29{
30}
31
32Real
37
38Real
registerMooseObject("PhaseFieldApp", SimpleACInterface)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _j
unsigned int _i
const VariableGradient & _grad_u
static InputParameters validParams()
const VariablePhiGradient & _grad_phi
const VariableTestGradient & _grad_test
Compute the Allen-Cahn interface term with constant Mobility and Interfacial parameter.
const MaterialProperty< Real > & _kappa
Interfacial parameter.
const MaterialProperty< Real > & _L
Mobility.
virtual Real computeQpResidual()
SimpleACInterface(const InputParameters &parameters)
virtual Real computeQpJacobian()
static InputParameters validParams()