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

Solves chemical potential in a weak sense (mu-mu_prop=0) Can be coupled to Cahn-Hilliard equation to solve species diffusion Allows spatial derivative of chemical potential when coupled to material state such as stress, etc. More...

#include <CHSplitChemicalPotential.h>

Inheritance diagram for CHSplitChemicalPotential:
[legend]

Public Member Functions

 CHSplitChemicalPotential (const InputParameters &parameters)
 

Protected Member Functions

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

Protected Attributes

MaterialPropertyName _mu_prop_name
 Chemical potential property evaluated at material points. More...
 
const MaterialProperty< Real > & _chemical_potential
 
const MaterialProperty< Real > & _dchemical_potential_dc
 
const unsigned int _c_var
 

Detailed Description

Solves chemical potential in a weak sense (mu-mu_prop=0) Can be coupled to Cahn-Hilliard equation to solve species diffusion Allows spatial derivative of chemical potential when coupled to material state such as stress, etc.

Can be used to model species diffusion mediated creep

Definition at line 25 of file CHSplitChemicalPotential.h.

Constructor & Destructor Documentation

CHSplitChemicalPotential::CHSplitChemicalPotential ( const InputParameters &  parameters)

Definition at line 22 of file CHSplitChemicalPotential.C.

23  : DerivativeMaterialInterface<Kernel>(parameters),
24  _mu_prop_name(getParam<MaterialPropertyName>("chemical_potential_prop")),
25  _chemical_potential(getMaterialProperty<Real>(_mu_prop_name)),
27  getMaterialPropertyDerivative<Real>(_mu_prop_name, getVar("c", 0)->name())),
28  _c_var(coupled("c"))
29 {
30 }
const MaterialProperty< Real > & _dchemical_potential_dc
const MaterialProperty< Real > & _chemical_potential
MaterialPropertyName _mu_prop_name
Chemical potential property evaluated at material points.

Member Function Documentation

Real CHSplitChemicalPotential::computeQpJacobian ( )
protectedvirtual

Definition at line 39 of file CHSplitChemicalPotential.C.

40 {
41  return _test[_i][_qp] * _phi[_j][_qp];
42 }
Real CHSplitChemicalPotential::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 45 of file CHSplitChemicalPotential.C.

46 {
47  if (jvar == _c_var)
48  return -_test[_i][_qp] * _dchemical_potential_dc[_qp] * _phi[_j][_qp];
49  else
50  return 0.0;
51 }
const MaterialProperty< Real > & _dchemical_potential_dc
Real CHSplitChemicalPotential::computeQpResidual ( )
protectedvirtual

Definition at line 33 of file CHSplitChemicalPotential.C.

34 {
35  return _test[_i][_qp] * (_u[_qp] - _chemical_potential[_qp]);
36 }
const MaterialProperty< Real > & _chemical_potential

Member Data Documentation

const unsigned int CHSplitChemicalPotential::_c_var
protected

Definition at line 40 of file CHSplitChemicalPotential.h.

Referenced by computeQpOffDiagJacobian().

const MaterialProperty<Real>& CHSplitChemicalPotential::_chemical_potential
protected

Definition at line 38 of file CHSplitChemicalPotential.h.

Referenced by computeQpResidual().

const MaterialProperty<Real>& CHSplitChemicalPotential::_dchemical_potential_dc
protected

Definition at line 39 of file CHSplitChemicalPotential.h.

Referenced by computeQpOffDiagJacobian().

MaterialPropertyName CHSplitChemicalPotential::_mu_prop_name
protected

Chemical potential property evaluated at material points.

Definition at line 36 of file CHSplitChemicalPotential.h.


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