LCOV - code coverage report
Current view: top level - src/kernels - ADACInterfaceKobayashi2.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #32971 (54bef8) with base c6cf66 Lines: 12 13 92.3 %
Date: 2026-05-29 20:38:39 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 "ADACInterfaceKobayashi2.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", ADACInterfaceKobayashi2);
      13             : 
      14             : InputParameters
      15          15 : ADACInterfaceKobayashi2::validParams()
      16             : {
      17          15 :   InputParameters params = ADKernelGrad::validParams();
      18          15 :   params.addClassDescription("Anisotropic Gradient energy Allen-Cahn Kernel Part 2");
      19          30 :   params.addParam<MaterialPropertyName>("mob_name", "L", "The mobility used with the kernel");
      20          30 :   params.addParam<MaterialPropertyName>("eps_name", "eps", "The anisotropic parameter");
      21          15 :   return params;
      22           0 : }
      23             : 
      24           8 : ADACInterfaceKobayashi2::ADACInterfaceKobayashi2(const InputParameters & parameters)
      25             :   : ADKernelGrad(parameters),
      26           8 :     _mob(getADMaterialProperty<Real>("mob_name")),
      27          24 :     _eps(getADMaterialProperty<Real>("eps_name"))
      28             : {
      29           8 : }
      30             : 
      31             : ADRealGradient
      32     1396736 : ADACInterfaceKobayashi2::precomputeQpResidual()
      33             : {
      34             :   // Set interfacial part of residual
      35     1396736 :   return _eps[_qp] * _eps[_qp] * _mob[_qp] * _grad_u[_qp];
      36             : }

Generated by: LCOV version 1.14