www.mooseframework.org
SimpleACInterface.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 
10 #include "SimpleACInterface.h"
11 
12 registerMooseObject("PhaseFieldApp", SimpleACInterface);
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<Kernel>();
19  params.addClassDescription(
20  "Gradient energy for Allen-Cahn Kernel with constant Mobility and Interfacial parameter");
21  params.addParam<MaterialPropertyName>("mob_name", "L", "The mobility used with the kernel");
22  params.addParam<MaterialPropertyName>("kappa_name", "kappa_op", "The kappa used with the kernel");
23  return params;
24 }
25 
26 SimpleACInterface::SimpleACInterface(const InputParameters & parameters)
27  : Kernel(parameters),
28  _L(getMaterialProperty<Real>("mob_name")),
29  _kappa(getMaterialProperty<Real>("kappa_name"))
30 {
31 }
32 
33 Real
35 {
36  return _grad_u[_qp] * _kappa[_qp] * _L[_qp] * _grad_test[_i][_qp];
37 }
38 
39 Real
41 {
42  return _grad_phi[_j][_qp] * _kappa[_qp] * _L[_qp] * _grad_test[_i][_qp];
43 }
SimpleACInterface::_kappa
const MaterialProperty< Real > & _kappa
Interfacial parameter.
Definition: SimpleACInterface.h:34
SimpleACInterface.h
SimpleACInterface::SimpleACInterface
SimpleACInterface(const InputParameters &parameters)
Definition: SimpleACInterface.C:26
SimpleACInterface::computeQpResidual
virtual Real computeQpResidual()
Definition: SimpleACInterface.C:34
SimpleACInterface
Compute the Allen-Cahn interface term with constant Mobility and Interfacial parameter.
Definition: SimpleACInterface.h:22
validParams< SimpleACInterface >
InputParameters validParams< SimpleACInterface >()
Definition: SimpleACInterface.C:16
SimpleACInterface::computeQpJacobian
virtual Real computeQpJacobian()
Definition: SimpleACInterface.C:40
registerMooseObject
registerMooseObject("PhaseFieldApp", SimpleACInterface)
SimpleACInterface::_L
const MaterialProperty< Real > & _L
Mobility.
Definition: SimpleACInterface.h:32