19 params.
addParam<Real>(
"gas_constant", 8.3144621,
"Gas constant");
21 "heat_of_transport",
"heat_of_transport",
"Property name for the heat of transport.");
23 "mass_diffusivity",
"mass_diffusivity",
"Property name for the diffusivity.");
25 params.
addClassDescription(
"Kernel for thermo-diffusion (Soret effect, thermophoresis, etc.)");
31 _temperature(coupledValue(
"temp")),
32 _grad_temperature(coupledGradient(
"temp")),
33 _mass_diffusivity(getMaterialProperty<Real>(getParam<
std::string>(
"mass_diffusivity"))),
34 _heat_of_transport(getMaterialProperty<Real>(getParam<
std::string>(
"heat_of_transport"))),
35 _gas_constant(getParam<Real>(
"gas_constant")),
36 _temperature_index(coupled(
"temp"))
registerMooseObject("MiscApp", ThermoDiffusion)
const VariablePhiValue & _phi
static InputParameters validParams()
const VariablePhiGradient & _grad_phi
const VariableTestGradient & _grad_test
Models thermo-diffusion (aka Soret effect, thermophoresis, etc.).
const MaterialProperty< Real > & _heat_of_transport
const unsigned int _temperature_index
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.
ThermoDiffusion(const InputParameters ¶meters)
static InputParameters validParams()
const VariableValue & _temperature
const MaterialProperty< Real > & _mass_diffusivity