https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
20class SoretDiffusion : public Kernel
21{
22public:
24
26
27protected:
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
38
41
43 const bool _is_coupled;
44
46 unsigned int _c_var;
47
50
53
56
58 const Real _kB;
59};
const InputParameters & parameters() const
SoretDiffusion adds the soret effect in the split form of the Cahn-Hilliard equation.
unsigned int _T_var
int label for temperature variable
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const VariableValue & _T
Coupled variable for the temperature.
virtual Real computeQpResidual()
const MaterialProperty< Real > & _D
Diffusivity material property.
static InputParameters validParams()
const MaterialProperty< Real > & _Q
Heat of transport material property.
virtual Real computeQpCJacobian()
const VariableValue & _c
Variable value for the concentration.
const VariableGradient & _grad_T
Variable gradient for temperature.
const Real _kB
Boltzmann constant.
unsigned int _c_var
int label for the Concentration
virtual Real computeQpJacobian()
const bool _is_coupled
is the kernel used in a coupled form?
VariableValueTempl< false > VariableValue
VariableGradientTempl< false > VariableGradient