https://mooseframework.inl.gov
SoretDiffusion.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
20 class SoretDiffusion : public Kernel
21 {
22 public:
24 
26 
27 protected:
28  virtual Real computeQpResidual();
29  virtual Real computeQpJacobian();
30  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
31  virtual Real computeQpCJacobian();
32 
34  unsigned int _T_var;
35 
37  const VariableValue & _T;
38 
41 
43  const bool _is_coupled;
44 
46  unsigned int _c_var;
47 
49  const VariableValue & _c;
50 
53 
56 
58  const Real _kB;
59 };
OutputTools< Real >::VariableGradient VariableGradient
static InputParameters validParams()
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()
OutputTools< Real >::VariableValue VariableValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableValue & _T
Coupled variable for the temperature.
const InputParameters & parameters() const
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