https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SimpleCHInterface.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 "SimpleCHInterface.h"
11
13
16{
18 params.addClassDescription("Gradient energy for Cahn-Hilliard equation with constant Mobility "
19 "and Interfacial parameter");
20 params.addRequiredParam<MaterialPropertyName>(
21 "kappa_name", "The kappa used with the kernel, should be constant value");
22 params.addRequiredParam<MaterialPropertyName>(
23 "mob_name", "The mobility used with the kernel, should be constant value");
24 return params;
25}
26
28 : Kernel(parameters),
29 _second_u(second()),
30 _second_test(secondTest()),
31 _second_phi(secondPhi()),
32 _M(getMaterialProperty<Real>("mob_name")),
33 _kappa_c(getMaterialProperty<Real>("kappa_name"))
34{
35}
36
37Real
42
43Real
registerMooseObject("PhaseFieldApp", SimpleCHInterface)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _j
unsigned int _i
static InputParameters validParams()
Compute the Cahn-Hilliard interface term with constant Mobility and Interfacial parameter.
SimpleCHInterface(const InputParameters &parameters)
const MaterialProperty< Real > & _kappa_c
Interfacial parameter.
const VariableTestSecond & _second_test
const MaterialProperty< Real > & _M
Mobility.
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
const VariableSecond & _second_u
Variables for second order derivatives.
static InputParameters validParams()
const VariablePhiSecond & _second_phi