https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
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
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MiscApp", ADThermoDiffusion)
const ADTemplateVariableTestGradient< T > & _grad_test
static InputParameters validParams()
const ADMaterialProperty< Real > & _soret_coeff
static InputParameters validParams()
const ADVariableGradient & _grad_temp
ADThermoDiffusion(const InputParameters &parameters)
virtual ADReal computeQpResidual() override
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _i