www.mooseframework.org
ThermoDiffusion.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef THERMODIFFUSION_H
8 #define THERMODIFFUSION_H
9 
10 #include "Kernel.h"
11 #include "Material.h"
12 
35 class ThermoDiffusion : public Kernel
36 {
37 public:
38  ThermoDiffusion(const InputParameters & parameters);
39 
40 protected:
41  virtual Real computeQpResidual();
42 
43  virtual Real computeQpJacobian();
44 
48  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
49 
50 private:
51  RealGradient thermoDiffusionVelocity() const;
52 
53  const VariableValue & _temperature;
54  const VariableGradient & _grad_temperature;
55  const MaterialProperty<Real> & _mass_diffusivity;
56  const MaterialProperty<Real> & _heat_of_transport;
57  const Real _gas_constant;
58  const unsigned int _temperature_index;
59 };
60 
61 template <>
62 InputParameters validParams<ThermoDiffusion>();
63 
64 #endif // THERMODIFFUSION_H
const VariableGradient & _grad_temperature
RealGradient thermoDiffusionVelocity() const
const MaterialProperty< Real > & _heat_of_transport
virtual Real computeQpJacobian()
const MaterialProperty< Real > & _mass_diffusivity
virtual Real computeQpResidual()
const Real _gas_constant
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.).
const unsigned int _temperature_index
InputParameters validParams< ThermoDiffusion >()