LCOV - code coverage report
Current view: top level - src/kernels - ADCHSplitChemicalPotential.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31405 (292dce) with base fef103 Lines: 10 11 90.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 "ADCHSplitChemicalPotential.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", ADCHSplitChemicalPotential);
      13             : 
      14             : InputParameters
      15          64 : ADCHSplitChemicalPotential::validParams()
      16             : {
      17          64 :   InputParameters params = ADKernel::validParams();
      18          64 :   params.addClassDescription("Chemical potential kernel in Split Cahn-Hilliard that solves "
      19             :                              "chemical potential in a weak form");
      20         128 :   params.addRequiredParam<MaterialPropertyName>("chemical_potential",
      21             :                                                 "Chemical potential property name");
      22          64 :   return params;
      23           0 : }
      24             : 
      25          34 : ADCHSplitChemicalPotential::ADCHSplitChemicalPotential(const InputParameters & parameters)
      26          68 :   : ADKernel(parameters), _chemical_potential(getADMaterialProperty<Real>("chemical_potential"))
      27             : {
      28          34 : }
      29             : 
      30             : ADReal
      31      161040 : ADCHSplitChemicalPotential::computeQpResidual()
      32             : {
      33      322080 :   return _test[_i][_qp] * (_u[_qp] - _chemical_potential[_qp]);
      34             : }

Generated by: LCOV version 1.14