www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SimpleCHInterface Class Reference

Compute the Cahn-Hilliard interface term with constant Mobility and Interfacial parameter. More...

#include <SimpleCHInterface.h>

Inheritance diagram for SimpleCHInterface:
[legend]

Public Member Functions

 SimpleCHInterface (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 

Protected Attributes

const MaterialProperty< Real > & _M
 Mobility. More...
 
const MaterialProperty< Real > & _kappa_c
 Interfacial parameter. More...
 
const VariableSecond & _second_u
 Variables for second order derivatives. More...
 
const VariableTestSecond & _second_test
 
const VariablePhiSecond & _second_phi
 

Detailed Description

Compute the Cahn-Hilliard interface term with constant Mobility and Interfacial parameter.

Definition at line 23 of file SimpleCHInterface.h.

Constructor & Destructor Documentation

◆ SimpleCHInterface()

SimpleCHInterface::SimpleCHInterface ( const InputParameters &  parameters)

Definition at line 28 of file SimpleCHInterface.C.

29  : Kernel(parameters),
30  _second_u(second()),
31  _second_test(secondTest()),
32  _second_phi(secondPhi()),
33  _M(getMaterialProperty<Real>("mob_name")),
34  _kappa_c(getMaterialProperty<Real>("kappa_name"))
35 {
36 }
const VariableSecond & _second_u
Variables for second order derivatives.
const MaterialProperty< Real > & _kappa_c
Interfacial parameter.
const VariablePhiSecond & _second_phi
const VariableTestSecond & _second_test
const MaterialProperty< Real > & _M
Mobility.

Member Function Documentation

◆ computeQpJacobian()

Real SimpleCHInterface::computeQpJacobian ( )
protectedvirtual

Definition at line 45 of file SimpleCHInterface.C.

46 {
47  return _kappa_c[_qp] * _second_phi[_j][_qp].tr() * _M[_qp] * _second_test[_i][_qp].tr();
48 }
const MaterialProperty< Real > & _kappa_c
Interfacial parameter.
const VariablePhiSecond & _second_phi
const VariableTestSecond & _second_test
const MaterialProperty< Real > & _M
Mobility.

◆ computeQpResidual()

Real SimpleCHInterface::computeQpResidual ( )
protectedvirtual

Definition at line 39 of file SimpleCHInterface.C.

40 {
41  return _kappa_c[_qp] * _second_u[_qp].tr() * _M[_qp] * _second_test[_i][_qp].tr();
42 }
const VariableSecond & _second_u
Variables for second order derivatives.
const MaterialProperty< Real > & _kappa_c
Interfacial parameter.
const VariableTestSecond & _second_test
const MaterialProperty< Real > & _M
Mobility.

Member Data Documentation

◆ _kappa_c

const MaterialProperty<Real>& SimpleCHInterface::_kappa_c
protected

Interfacial parameter.

Definition at line 41 of file SimpleCHInterface.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _M

const MaterialProperty<Real>& SimpleCHInterface::_M
protected

Mobility.

Definition at line 39 of file SimpleCHInterface.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _second_phi

const VariablePhiSecond& SimpleCHInterface::_second_phi
protected

Definition at line 35 of file SimpleCHInterface.h.

Referenced by computeQpJacobian().

◆ _second_test

const VariableTestSecond& SimpleCHInterface::_second_test
protected

Definition at line 34 of file SimpleCHInterface.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _second_u

const VariableSecond& SimpleCHInterface::_second_u
protected

Variables for second order derivatives.

Definition at line 33 of file SimpleCHInterface.h.

Referenced by computeQpResidual().


The documentation for this class was generated from the following files: