www.mooseframework.org
SimpleACInterface.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #include "SimpleACInterface.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<Kernel>();
14  params.addClassDescription(
15  "Gradient energy for Allen-Cahn Kernel with constant Mobility and Interfacial parameter");
16  params.addParam<MaterialPropertyName>("mob_name", "L", "The mobility used with the kernel");
17  params.addParam<MaterialPropertyName>("kappa_name", "kappa_op", "The kappa used with the kernel");
18  return params;
19 }
20 
21 SimpleACInterface::SimpleACInterface(const InputParameters & parameters)
22  : Kernel(parameters),
23  _L(getMaterialProperty<Real>("mob_name")),
24  _kappa(getMaterialProperty<Real>("kappa_name"))
25 {
26 }
27 
28 Real
30 {
31  return _grad_u[_qp] * _kappa[_qp] * _L[_qp] * _grad_test[_i][_qp];
32 }
33 
34 Real
36 {
37  return _grad_phi[_j][_qp] * _kappa[_qp] * _L[_qp] * _grad_test[_i][_qp];
38 }
const MaterialProperty< Real > & _L
Mobility.
SimpleACInterface(const InputParameters &parameters)
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
InputParameters validParams< SimpleACInterface >()
const MaterialProperty< Real > & _kappa
Interfacial parameter.