LCOV - code coverage report
Current view: top level - src/kernels - ADCHSplitConcentration.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 "ADCHSplitConcentration.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", ADCHSplitConcentration);
      13             : 
      14             : InputParameters
      15          48 : ADCHSplitConcentration::validParams()
      16             : {
      17          48 :   InputParameters params = ADKernel::validParams();
      18          48 :   params.addClassDescription("Concentration kernel in Split Cahn-Hilliard that solves chemical "
      19             :                              "potential in a weak form");
      20          96 :   params.addRequiredCoupledVar("chemical_potential_var", "Chemical potential variable");
      21          96 :   params.addRequiredParam<MaterialPropertyName>("mobility", "Mobility property name");
      22          48 :   return params;
      23           0 : }
      24             : 
      25          26 : ADCHSplitConcentration::ADCHSplitConcentration(const InputParameters & parameters)
      26             :   : ADKernel(parameters),
      27          26 :     _grad_mu(adCoupledGradient("chemical_potential_var")),
      28          78 :     _mobility(getADMaterialProperty<Real>("mobility"))
      29             : {
      30          26 : }
      31             : 
      32             : ADReal
      33      156080 : ADCHSplitConcentration::computeQpResidual()
      34             : {
      35      156080 :   return _mobility[_qp] * _grad_mu[_qp] * _grad_test[_i][_qp];
      36             : }

Generated by: LCOV version 1.14