https://mooseframework.inl.gov
ADThermoDiffusion.C
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 #include "ADThermoDiffusion.h"
11 
13 
16 {
18  params.addClassDescription(
19  "Calculates diffusion due to temperature gradient and Soret Coefficient");
20  params.addRequiredCoupledVar("temperature", "The coupled temperature variable.");
21  params.addParam<MaterialPropertyName>("soret_coefficient",
22  "soret_coefficient",
23  "The name of the Soret coefficient material property");
24  return params;
25 }
26 
28  : ADKernel(parameters),
29  _grad_temp(adCoupledGradient("temperature")),
30  _soret_coeff(getADMaterialProperty<Real>("soret_coefficient"))
31 {
32 }
33 
34 ADReal
36 {
38 }
const ADTemplateVariableTestGradient< T > & _grad_test
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
DualNumber< Real, DNDerivativeType, true > ADReal
static InputParameters validParams()
virtual ADReal computeQpResidual() override
const ADMaterialProperty< Real > & _soret_coeff
registerMooseObject("MiscApp", ADThermoDiffusion)
unsigned int _i
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
ADThermoDiffusion(const InputParameters &parameters)
const ADVariableGradient & _grad_temp
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
unsigned int _qp