www.mooseframework.org
KKSPhaseChemicalPotential.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 KKSPHASECHEMICALPOTENTIAL_H
8 #define KKSPHASECHEMICALPOTENTIAL_H
9 
10 #include "Kernel.h"
11 #include "JvarMapInterface.h"
12 #include "DerivativeMaterialInterface.h"
13 
14 // Forward Declarations
16 
17 template <>
19 
34 class KKSPhaseChemicalPotential : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
35 {
36 public:
37  KKSPhaseChemicalPotential(const InputParameters & parameters);
38 
39 protected:
40  virtual Real computeQpResidual();
41  virtual Real computeQpJacobian();
42  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
43  virtual void initialSetup();
44 
45 private:
47  unsigned int _cb_var;
48  VariableName _cb_name;
49 
51  const MaterialProperty<Real> & _dfadca;
52  const MaterialProperty<Real> & _dfbdcb;
53  const MaterialProperty<Real> & _d2fadca2;
54  const MaterialProperty<Real> & _d2fbdcbca;
55 
56  std::vector<const MaterialProperty<Real> *> _d2fadcadarg;
57  std::vector<const MaterialProperty<Real> *> _d2fbdcbdarg;
58 };
59 
60 #endif // KKSPHASECHEMICALPOTENTIAL_H
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
unsigned int _cb_var
coupled variable for cb
const MaterialProperty< Real > & _dfadca
material properties we need to access
std::vector< const MaterialProperty< Real > * > _d2fbdcbdarg
const MaterialProperty< Real > & _d2fbdcbca
InputParameters validParams< KKSPhaseChemicalPotential >()
const MaterialProperty< Real > & _d2fadca2
std::vector< const MaterialProperty< Real > * > _d2fadcadarg
const MaterialProperty< Real > & _dfbdcb
KKSPhaseChemicalPotential(const InputParameters &parameters)
Enforce the equality of the chemical potentials in the two phases.