www.mooseframework.org
SoretDiffusion.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 
14 // Forward Declaration
15 class SoretDiffusion;
16 
17 template <>
18 InputParameters validParams<SoretDiffusion>();
23 class SoretDiffusion : public Kernel
24 {
25 public:
26  SoretDiffusion(const InputParameters & parameters);
27 
28 protected:
29  virtual Real computeQpResidual();
30  virtual Real computeQpJacobian();
31  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
32  virtual Real computeQpCJacobian();
33 
35  unsigned int _T_var;
36 
38  const VariableValue & _T;
39 
41  const VariableGradient & _grad_T;
42 
44  const bool _is_coupled;
45 
47  unsigned int _c_var;
48 
50  const VariableValue & _c;
51 
53  const MaterialProperty<Real> & _D;
54 
56  const MaterialProperty<Real> & _Q;
57 
59  const Real _kB;
60 };
61 
SoretDiffusion::_c
const VariableValue & _c
Variable value for the concentration.
Definition: SoretDiffusion.h:50
SoretDiffusion::_Q
const MaterialProperty< Real > & _Q
Heat of transport material property.
Definition: SoretDiffusion.h:56
SoretDiffusion::computeQpJacobian
virtual Real computeQpJacobian()
Definition: SoretDiffusion.C:54
SoretDiffusion::_grad_T
const VariableGradient & _grad_T
Variable gradient for temperature.
Definition: SoretDiffusion.h:41
SoretDiffusion::_T
const VariableValue & _T
Coupled variable for the temperature.
Definition: SoretDiffusion.h:38
SoretDiffusion::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: SoretDiffusion.C:60
SoretDiffusion::_D
const MaterialProperty< Real > & _D
Diffusivity material property.
Definition: SoretDiffusion.h:53
SoretDiffusion::SoretDiffusion
SoretDiffusion(const InputParameters &parameters)
Definition: SoretDiffusion.C:32
SoretDiffusion::computeQpCJacobian
virtual Real computeQpCJacobian()
Definition: SoretDiffusion.C:76
validParams< SoretDiffusion >
InputParameters validParams< SoretDiffusion >()
Definition: SoretDiffusion.C:19
SoretDiffusion::_kB
const Real _kB
Boltzmann constant.
Definition: SoretDiffusion.h:59
SoretDiffusion
SoretDiffusion adds the soret effect in the split form of the Cahn-Hilliard equation.
Definition: SoretDiffusion.h:23
SoretDiffusion::_is_coupled
const bool _is_coupled
is the kernel used in a coupled form?
Definition: SoretDiffusion.h:44
SoretDiffusion::_T_var
unsigned int _T_var
int label for temperature variable
Definition: SoretDiffusion.h:35
SoretDiffusion::_c_var
unsigned int _c_var
int label for the Concentration
Definition: SoretDiffusion.h:47
SoretDiffusion::computeQpResidual
virtual Real computeQpResidual()
Definition: SoretDiffusion.C:47