www.mooseframework.org
CHSplitFlux.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 CHSPLITFLUX_H
8 #define CHSPLITFLUX_H
9 
10 #include "Kernel.h"
11 #include "DerivativeMaterialInterface.h"
12 #include "RankTwoTensor.h"
13 
14 class CHSplitFlux;
15 
16 template <>
17 InputParameters validParams<CHSplitFlux>();
18 
24 class CHSplitFlux : public DerivativeMaterialInterface<Kernel>
25 {
26 public:
27  CHSplitFlux(const InputParameters & parameters);
28 
29 protected:
30  virtual Real computeQpResidual();
31  virtual Real computeQpJacobian();
32  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
33 
34  const unsigned int _component;
35  const unsigned int _mu_var;
36  const VariableGradient & _grad_mu;
37  const MaterialProperty<RealTensorValue> & _mobility;
38 
39  const bool _has_coupled_c;
40  const unsigned int _c_var;
41 
42  const MaterialProperty<RealTensorValue> * _dmobility_dc;
43 };
44 
45 #endif
const MaterialProperty< RealTensorValue > * _dmobility_dc
Definition: CHSplitFlux.h:42
InputParameters validParams< CHSplitFlux >()
Definition: CHSplitFlux.C:11
CHSplitFlux computes flux as non-linear variable via residual = flux + mobility * gradient(chemical p...
Definition: CHSplitFlux.h:24
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: CHSplitFlux.C:50
const unsigned int _component
Definition: CHSplitFlux.h:34
const VariableGradient & _grad_mu
Definition: CHSplitFlux.h:36
const bool _has_coupled_c
Definition: CHSplitFlux.h:39
virtual Real computeQpResidual()
Definition: CHSplitFlux.C:38
virtual Real computeQpJacobian()
Definition: CHSplitFlux.C:44
CHSplitFlux(const InputParameters &parameters)
Definition: CHSplitFlux.C:22
const MaterialProperty< RealTensorValue > & _mobility
Definition: CHSplitFlux.h:37
const unsigned int _mu_var
Definition: CHSplitFlux.h:35
const unsigned int _c_var
Definition: CHSplitFlux.h:40