LCOV - code coverage report
Current view: top level - src/kernels - ADSplitCHParsed.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31405 (292dce) with base fef103 Lines: 13 14 92.9 %
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 "ADSplitCHParsed.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", ADSplitCHParsed);
      13             : 
      14             : InputParameters
      15          55 : ADSplitCHParsed::validParams()
      16             : {
      17          55 :   InputParameters params = ADSplitCHCRes::validParams();
      18          55 :   params.addClassDescription(
      19             :       "Split formulation Cahn-Hilliard Kernel that uses a DerivativeMaterial Free Energy");
      20         110 :   params.addRequiredParam<MaterialPropertyName>(
      21             :       "f_name", "Base name of the free energy function F defined in a DerivativeParsedMaterial");
      22         110 :   params.addCoupledVar("args", "Vector of additional arguments to F");
      23         110 :   params.deprecateCoupledVar("args", "coupled_variables", "02/27/2024");
      24             : 
      25          55 :   return params;
      26           0 : }
      27             : 
      28          29 : ADSplitCHParsed::ADSplitCHParsed(const InputParameters & parameters)
      29             :   : ADSplitCHCRes(parameters),
      30          58 :     _f_name(getParam<MaterialPropertyName>("f_name")),
      31          87 :     _dFdc(getADMaterialProperty<Real>(derivativePropertyNameFirst(_f_name, _var.name())))
      32             : {
      33          29 : }
      34             : 
      35             : ADReal
      36    11904000 : ADSplitCHParsed::computeDFDC()
      37             : {
      38    11904000 :   return _dFdc[_qp];
      39             : }

Generated by: LCOV version 1.14