https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ThermoDiffusion.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#include "Material.h"
14
37class ThermoDiffusion : public Kernel
38{
39public:
41
43
44protected:
45 virtual Real computeQpResidual();
46
47 virtual Real computeQpJacobian();
48
52 virtual Real computeQpOffDiagJacobian(unsigned int jvar);
53
54private:
55 RealGradient thermoDiffusionVelocity() const;
56
61 const Real _gas_constant;
62 const unsigned int _temperature_index;
63};
const InputParameters & parameters() const
Models thermo-diffusion (aka Soret effect, thermophoresis, etc.).
const MaterialProperty< Real > & _heat_of_transport
const unsigned int _temperature_index
const Real _gas_constant
RealGradient thermoDiffusionVelocity() const
virtual Real computeQpResidual()
const VariableGradient & _grad_temperature
virtual Real computeQpJacobian()
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Computes contribution from grad( T ) / T^2 term.
static InputParameters validParams()
const VariableValue & _temperature
const MaterialProperty< Real > & _mass_diffusivity
VariableValueTempl< false > VariableValue
VariableGradientTempl< false > VariableGradient