LCOV - code coverage report
Current view: top level - src/kernels - ADAllenCahn.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31405 (292dce) with base fef103 Lines: 11 12 91.7 %
Date: 2025-09-04 07:55:36 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 "ADAllenCahn.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", ADAllenCahn);
      13             : 
      14             : InputParameters
      15          87 : ADAllenCahn::validParams()
      16             : {
      17          87 :   InputParameters params = ADAllenCahnBase<Real>::validParams();
      18          87 :   params.addClassDescription("Allen-Cahn Kernel that uses a DerivativeMaterial Free Energy");
      19         174 :   params.addRequiredParam<MaterialPropertyName>(
      20             :       "f_name", "Base name of the free energy function F defined in a DerivativeParsedMaterial");
      21          87 :   return params;
      22           0 : }
      23             : 
      24          46 : ADAllenCahn::ADAllenCahn(const InputParameters & parameters)
      25             :   : ADAllenCahnBase<Real>(parameters),
      26          92 :     _f_name(getParam<MaterialPropertyName>("f_name")),
      27         138 :     _dFdEta(getADMaterialProperty<Real>(this->derivativePropertyNameFirst(_f_name, _var.name())))
      28             : {
      29          46 : }
      30             : 
      31             : ADReal
      32     2963072 : ADAllenCahn::computeDFDOP()
      33             : {
      34     2963072 :   return _dFdEta[_qp];
      35             : }

Generated by: LCOV version 1.14