www.mooseframework.org
CHSplitChemicalPotential.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef CHSPLITCHEMICALPOTENTIAL_H
8 #define CHSPLITCHEMICALPOTENTIAL_H
9 
10 #include "Kernel.h"
11 #include "DerivativeMaterialInterface.h"
12 
14 
15 template <>
17 
25 class CHSplitChemicalPotential : public DerivativeMaterialInterface<Kernel>
26 {
27 public:
28  CHSplitChemicalPotential(const InputParameters & parameters);
29 
30 protected:
31  virtual Real computeQpResidual();
32  virtual Real computeQpJacobian();
33  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
34 
36  MaterialPropertyName _mu_prop_name;
37 
38  const MaterialProperty<Real> & _chemical_potential;
39  const MaterialProperty<Real> & _dchemical_potential_dc;
40  const unsigned int _c_var;
41 };
42 
43 #endif
const MaterialProperty< Real > & _dchemical_potential_dc
InputParameters validParams< CHSplitChemicalPotential >()
const MaterialProperty< Real > & _chemical_potential
MaterialPropertyName _mu_prop_name
Chemical potential property evaluated at material points.
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
CHSplitChemicalPotential(const InputParameters &parameters)
Solves chemical potential in a weak sense (mu-mu_prop=0) Can be coupled to Cahn-Hilliard equation to ...