LCOV - code coverage report
Current view: top level - src/kernels - ADThermoDiffusion.C (source / functions) Hit Total Coverage
Test: idaholab/moose misc: #32971 (54bef8) with base c6cf66 Lines: 12 13 92.3 %
Date: 2026-05-29 20:37:18 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      12             : registerMooseObject("MiscApp", ADThermoDiffusion);
      13             : 
      14             : InputParameters
      15          26 : ADThermoDiffusion::validParams()
      16             : {
      17          26 :   InputParameters params = ADKernel::validParams();
      18          26 :   params.addClassDescription(
      19             :       "Calculates diffusion due to temperature gradient and Soret Coefficient");
      20          52 :   params.addRequiredCoupledVar("temperature", "The coupled temperature variable.");
      21          52 :   params.addParam<MaterialPropertyName>("soret_coefficient",
      22             :                                         "soret_coefficient",
      23             :                                         "The name of the Soret coefficient material property");
      24          26 :   return params;
      25           0 : }
      26             : 
      27          13 : ADThermoDiffusion::ADThermoDiffusion(const InputParameters & parameters)
      28             :   : ADKernel(parameters),
      29          13 :     _grad_temp(adCoupledGradient("temperature")),
      30          39 :     _soret_coeff(getADMaterialProperty<Real>("soret_coefficient"))
      31             : {
      32          13 : }
      33             : 
      34             : ADReal
      35     1065600 : ADThermoDiffusion::computeQpResidual()
      36             : {
      37     1065600 :   return _soret_coeff[_qp] * _grad_temp[_qp] * _grad_test[_i][_qp];
      38             : }

Generated by: LCOV version 1.14