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 23 of file SimpleCoupledACInterface.h.

Constructor & Destructor Documentation

◆ SimpleCoupledACInterface()

SimpleCoupledACInterface::SimpleCoupledACInterface ( const InputParameters &  parameters)

Definition at line 27 of file SimpleCoupledACInterface.C.

28  : Kernel(parameters),
29  _L(getMaterialProperty<Real>("mob_name")),
30  _kappa(getMaterialProperty<Real>("kappa_name")),
31  _grad_v(coupledGradient("v")),
32  _v_var(coupled("v", 0))
33 {
34 }
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

◆ computeQpOffDiagJacobian()

Real SimpleCoupledACInterface::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 43 of file SimpleCoupledACInterface.C.

44 {
45  if (jvar == _v_var)
46  return _grad_phi[_j][_qp] * _kappa[_qp] * _L[_qp] * _grad_test[_i][_qp];
47 
48  return 0.0;
49 }
const MaterialProperty< Real > & _L
Mobility.
const MaterialProperty< Real > & _kappa
Interfacial parameter.
unsigned int _v_var
Index of the coupled variable.

◆ computeQpResidual()

Real SimpleCoupledACInterface::computeQpResidual ( )
protectedvirtual

Definition at line 37 of file SimpleCoupledACInterface.C.

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

Member Data Documentation

◆ _grad_v

const VariableGradient& SimpleCoupledACInterface::_grad_v
protected

Gradient of the coupled variable.

Definition at line 37 of file SimpleCoupledACInterface.h.

Referenced by computeQpResidual().

◆ _kappa

const MaterialProperty<Real>& SimpleCoupledACInterface::_kappa
protected

Interfacial parameter.

Definition at line 35 of file SimpleCoupledACInterface.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().

◆ _L

const MaterialProperty<Real>& SimpleCoupledACInterface::_L
protected

Mobility.

Definition at line 33 of file SimpleCoupledACInterface.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().

◆ _v_var

unsigned int SimpleCoupledACInterface::_v_var
protected

Index of the coupled variable.

Definition at line 39 of file SimpleCoupledACInterface.h.

Referenced by computeQpOffDiagJacobian().


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