www.mooseframework.org
ThermoDiffusion.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 #include "Material.h"
14 
37 class ThermoDiffusion : public Kernel
38 {
39 public:
41 
43 
44 protected:
45  virtual Real computeQpResidual();
46 
47  virtual Real computeQpJacobian();
48 
52  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
53 
54 private:
56 
62  const unsigned int _temperature_index;
63 };
OutputTools< Real >::VariableGradient VariableGradient
const VariableGradient & _grad_temperature
static InputParameters validParams()
const MaterialProperty< Real > & _heat_of_transport
virtual Real computeQpJacobian()
const MaterialProperty< Real > & _mass_diffusivity
virtual Real computeQpResidual()
const Real _gas_constant
RealGradient thermoDiffusionVelocity() const
const VariableValue & _temperature
ThermoDiffusion(const InputParameters &parameters)
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Computes contribution from grad( T ) / T^2 term.
Models thermo-diffusion (aka Soret effect, thermophoresis, etc.).
OutputTools< Real >::VariableValue VariableValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const unsigned int _temperature_index
const InputParameters & parameters() const