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

Solves Cahn-Hilliard equation using chemical potential as non-linear variable. More...

#include <CHSplitConcentration.h>

Inheritance diagram for CHSplitConcentration:
[legend]

Public Member Functions

 CHSplitConcentration (const InputParameters &parameters)
 

Protected Member Functions

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

Protected Attributes

MaterialPropertyName _mobility_name
 Mobility property name. More...
 
const MaterialProperty< RealTensorValue > & _mobility
 
const MaterialProperty< RealTensorValue > & _dmobility_dc
 
const unsigned int _mu_var
 Chemical potential variable. More...
 
const VariableGradient & _grad_mu
 

Detailed Description

Solves Cahn-Hilliard equation using chemical potential as non-linear variable.

Definition at line 22 of file CHSplitConcentration.h.

Constructor & Destructor Documentation

CHSplitConcentration::CHSplitConcentration ( const InputParameters &  parameters)

Definition at line 21 of file CHSplitConcentration.C.

22  : DerivativeMaterialInterface<Kernel>(parameters),
23  _mobility_name(getParam<MaterialPropertyName>("mobility")),
24  _mobility(getMaterialProperty<RealTensorValue>(_mobility_name)),
25  _dmobility_dc(getMaterialPropertyDerivative<RealTensorValue>(_mobility_name, name())),
26  _mu_var(coupled("chemical_potential_var")),
27  _grad_mu(coupledGradient("chemical_potential_var"))
28 {
29 }
const MaterialProperty< RealTensorValue > & _mobility
const MaterialProperty< RealTensorValue > & _dmobility_dc
const VariableGradient & _grad_mu
const unsigned int _mu_var
Chemical potential variable.
MaterialPropertyName _mobility_name
Mobility property name.

Member Function Documentation

Real CHSplitConcentration::computeQpJacobian ( )
protectedvirtual

Definition at line 39 of file CHSplitConcentration.C.

40 {
41  const RealVectorValue a = _dmobility_dc[_qp] * _grad_mu[_qp];
42  return _grad_test[_i][_qp] * a * _phi[_j][_qp];
43 }
const MaterialProperty< RealTensorValue > & _dmobility_dc
const VariableGradient & _grad_mu
Real CHSplitConcentration::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 46 of file CHSplitConcentration.C.

47 {
48  if (jvar == _mu_var)
49  {
50  const RealVectorValue a = _mobility[_qp] * _grad_phi[_j][_qp];
51  return _grad_test[_i][_qp] * a;
52  }
53  else
54  return 0.0;
55 }
const MaterialProperty< RealTensorValue > & _mobility
const unsigned int _mu_var
Chemical potential variable.
Real CHSplitConcentration::computeQpResidual ( )
protectedvirtual

Definition at line 32 of file CHSplitConcentration.C.

33 {
34  const RealVectorValue a = _mobility[_qp] * _grad_mu[_qp];
35  return _grad_test[_i][_qp] * a;
36 }
const MaterialProperty< RealTensorValue > & _mobility
const VariableGradient & _grad_mu

Member Data Documentation

const MaterialProperty<RealTensorValue>& CHSplitConcentration::_dmobility_dc
protected

Definition at line 36 of file CHSplitConcentration.h.

Referenced by computeQpJacobian().

const VariableGradient& CHSplitConcentration::_grad_mu
protected

Definition at line 40 of file CHSplitConcentration.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const MaterialProperty<RealTensorValue>& CHSplitConcentration::_mobility
protected

Definition at line 35 of file CHSplitConcentration.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().

MaterialPropertyName CHSplitConcentration::_mobility_name
protected

Mobility property name.

Definition at line 33 of file CHSplitConcentration.h.

const unsigned int CHSplitConcentration::_mu_var
protected

Chemical potential variable.

Definition at line 39 of file CHSplitConcentration.h.

Referenced by computeQpOffDiagJacobian().


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