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

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

#include <SimpleCoupledACInterface.h>

Inheritance diagram for SimpleCoupledACInterface:
[legend]

Public Member Functions

 SimpleCoupledACInterface (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar)
 

Protected Attributes

const MaterialProperty< Real > & _L
 Mobility. More...
 
const MaterialProperty< Real > & _kappa
 Interfacial parameter. More...
 
const VariableGradient & _grad_v
 Gradient of the coupled variable. More...
 
unsigned int _v_var
 Index of the coupled variable. More...
 

Detailed Description

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

Definition at line 20 of file SimpleCoupledACInterface.h.

Constructor & Destructor Documentation

SimpleCoupledACInterface::SimpleCoupledACInterface ( const InputParameters &  parameters)

Definition at line 22 of file SimpleCoupledACInterface.C.

23  : Kernel(parameters),
24  _L(getMaterialProperty<Real>("mob_name")),
25  _kappa(getMaterialProperty<Real>("kappa_name")),
26  _grad_v(coupledGradient("v")),
27  _v_var(coupled("v", 0))
28 {
29 }
const MaterialProperty< Real > & _L
Mobility.
const VariableGradient & _grad_v
Gradient of the coupled variable.
const MaterialProperty< Real > & _kappa
Interfacial parameter.
unsigned int _v_var
Index of the coupled variable.

Member Function Documentation

Real SimpleCoupledACInterface::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 38 of file SimpleCoupledACInterface.C.

39 {
40  if (jvar == _v_var)
41  return _grad_phi[_j][_qp] * _kappa[_qp] * _L[_qp] * _grad_test[_i][_qp];
42 
43  return 0.0;
44 }
const MaterialProperty< Real > & _L
Mobility.
const MaterialProperty< Real > & _kappa
Interfacial parameter.
unsigned int _v_var
Index of the coupled variable.
Real SimpleCoupledACInterface::computeQpResidual ( )
protectedvirtual

Definition at line 32 of file SimpleCoupledACInterface.C.

33 {
34  return _grad_v[_qp] * _kappa[_qp] * _L[_qp] * _grad_test[_i][_qp];
35 }
const MaterialProperty< Real > & _L
Mobility.
const VariableGradient & _grad_v
Gradient of the coupled variable.
const MaterialProperty< Real > & _kappa
Interfacial parameter.

Member Data Documentation

const VariableGradient& SimpleCoupledACInterface::_grad_v
protected

Gradient of the coupled variable.

Definition at line 34 of file SimpleCoupledACInterface.h.

Referenced by computeQpResidual().

const MaterialProperty<Real>& SimpleCoupledACInterface::_kappa
protected

Interfacial parameter.

Definition at line 32 of file SimpleCoupledACInterface.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().

const MaterialProperty<Real>& SimpleCoupledACInterface::_L
protected

Mobility.

Definition at line 30 of file SimpleCoupledACInterface.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().

unsigned int SimpleCoupledACInterface::_v_var
protected

Index of the coupled variable.

Definition at line 36 of file SimpleCoupledACInterface.h.

Referenced by computeQpOffDiagJacobian().


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