www.mooseframework.org
KKSPhaseChemicalPotential.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Kernel.h"
13 #include "JvarMapInterface.h"
15 
16 // Forward Declarations
17 
32 class KKSPhaseChemicalPotential : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
33 {
34 public:
36 
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 
55 
56  std::vector<const MaterialProperty<Real> *> _d2fadcadarg;
57  std::vector<const MaterialProperty<Real> *> _d2fbdcbdarg;
58 
60  const Real _ka;
61  const Real _kb;
63 };
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 Real _ka
site fractions
const MaterialProperty< Real > & _d2fbdcbca
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
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.
static InputParameters validParams()