www.mooseframework.org
KKSPhaseConcentration.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 KKSPHASECONCENTRATION_H
8 #define KKSPHASECONCENTRATION_H
9 
10 #include "Kernel.h"
11 #include "DerivativeMaterialInterface.h"
12 
13 // Forward Declarations
15 
16 template <>
17 InputParameters validParams<KKSPhaseConcentration>();
18 
32 class KKSPhaseConcentration : public DerivativeMaterialInterface<Kernel>
33 {
34 public:
35  KKSPhaseConcentration(const InputParameters & parameters);
36 
37 protected:
38  virtual Real computeQpResidual();
39  virtual Real computeQpJacobian();
40  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
41 
42 private:
43  const VariableValue & _ca;
44  unsigned int _ca_var;
45 
46  const VariableValue & _c;
47  unsigned int _c_var;
48 
49  const VariableValue & _eta;
50  unsigned int _eta_var;
51 
53  const MaterialProperty<Real> & _prop_h;
54 
56  const MaterialProperty<Real> & _prop_dh;
57 };
58 
59 #endif // KKSPHASECONCENTRATION_H
const VariableValue & _c
const VariableValue & _eta
const VariableValue & _ca
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
const MaterialProperty< Real > & _prop_dh
Derivative of the switching function .
InputParameters validParams< KKSPhaseConcentration >()
const MaterialProperty< Real > & _prop_h
Switching function .
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
KKSPhaseConcentration(const InputParameters &parameters)
Enforce sum of phase concentrations to be the real concentration.