www.mooseframework.org
SoretDiffusion.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 SORETDIFFUSION_H
8 #define SORETDIFFUSION_H
9 
10 #include "Kernel.h"
11 
12 // Forward Declaration
13 class SoretDiffusion;
14 
15 template <>
16 InputParameters validParams<SoretDiffusion>();
21 class SoretDiffusion : public Kernel
22 {
23 public:
24  SoretDiffusion(const InputParameters & parameters);
25 
26 protected:
27  virtual Real computeQpResidual();
28  virtual Real computeQpJacobian();
29  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
30  virtual Real computeQpCJacobian();
31 
33  unsigned int _T_var;
34 
36  const VariableValue & _T;
37 
39  const VariableGradient & _grad_T;
40 
42  const bool _is_coupled;
43 
45  unsigned int _c_var;
46 
48  const VariableValue & _c;
49 
51  const MaterialProperty<Real> & _D;
52 
54  const MaterialProperty<Real> & _Q;
55 
57  const Real _kB;
58 };
59 
60 #endif // SORETDIFFUSION_H
SoretDiffusion adds the soret effect in the split form of the Cahn-Hilliard equation.
const MaterialProperty< Real > & _D
Diffusivity material property.
SoretDiffusion(const InputParameters &parameters)
const Real _kB
Boltzmann constant.
const VariableGradient & _grad_T
Variable gradient for temperature.
const MaterialProperty< Real > & _Q
Heat of transport material property.
const VariableValue & _c
Variable value for the concentration.
unsigned int _c_var
int label for the Concentration
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
const VariableValue & _T
Coupled variable for the temperature.
InputParameters validParams< SoretDiffusion >()
const bool _is_coupled
is the kernel used in a coupled form?
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
virtual Real computeQpCJacobian()
unsigned int _T_var
int label for temperature variable