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 28 of file CHSplitChemicalPotential.h.

Constructor & Destructor Documentation

◆ CHSplitChemicalPotential()

CHSplitChemicalPotential::CHSplitChemicalPotential ( const InputParameters &  parameters)

Definition at line 27 of file CHSplitChemicalPotential.C.

28  : DerivativeMaterialInterface<Kernel>(parameters),
29  _mu_prop_name(getParam<MaterialPropertyName>("chemical_potential_prop")),
30  _chemical_potential(getMaterialProperty<Real>(_mu_prop_name)),
32  getMaterialPropertyDerivative<Real>(_mu_prop_name, getVar("c", 0)->name())),
33  _c_var(coupled("c"))
34 {
35 }
const MaterialProperty< Real > & _dchemical_potential_dc
const MaterialProperty< Real > & _chemical_potential
MaterialPropertyName _mu_prop_name
Chemical potential property evaluated at material points.
const std::string name
Definition: Setup.h:22

Member Function Documentation

◆ computeQpJacobian()

Real CHSplitChemicalPotential::computeQpJacobian ( )
protectedvirtual

Definition at line 44 of file CHSplitChemicalPotential.C.

45 {
46  return _test[_i][_qp] * _phi[_j][_qp];
47 }

◆ computeQpOffDiagJacobian()

Real CHSplitChemicalPotential::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 50 of file CHSplitChemicalPotential.C.

51 {
52  if (jvar == _c_var)
53  return -_test[_i][_qp] * _dchemical_potential_dc[_qp] * _phi[_j][_qp];
54  else
55  return 0.0;
56 }
const MaterialProperty< Real > & _dchemical_potential_dc

◆ computeQpResidual()

Real CHSplitChemicalPotential::computeQpResidual ( )
protectedvirtual

Definition at line 38 of file CHSplitChemicalPotential.C.

39 {
40  return _test[_i][_qp] * (_u[_qp] - _chemical_potential[_qp]);
41 }
const MaterialProperty< Real > & _chemical_potential

Member Data Documentation

◆ _c_var

const unsigned int CHSplitChemicalPotential::_c_var
protected

Definition at line 43 of file CHSplitChemicalPotential.h.

Referenced by computeQpOffDiagJacobian().

◆ _chemical_potential

const MaterialProperty<Real>& CHSplitChemicalPotential::_chemical_potential
protected

Definition at line 41 of file CHSplitChemicalPotential.h.

Referenced by computeQpResidual().

◆ _dchemical_potential_dc

const MaterialProperty<Real>& CHSplitChemicalPotential::_dchemical_potential_dc
protected

Definition at line 42 of file CHSplitChemicalPotential.h.

Referenced by computeQpOffDiagJacobian().

◆ _mu_prop_name

MaterialPropertyName CHSplitChemicalPotential::_mu_prop_name
protected

Chemical potential property evaluated at material points.

Definition at line 39 of file CHSplitChemicalPotential.h.


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