LCOV - code coverage report
Current view: top level - src/kernels - PrimaryDiffusion.C (source / functions) Hit Total Coverage
Test: idaholab/moose chemical_reactions: #31405 (292dce) with base fef103 Lines: 11 12 91.7 %
Date: 2025-09-04 07:52:33 Functions: 4 4 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 "PrimaryDiffusion.h"
      11             : 
      12             : registerMooseObject("ChemicalReactionsApp", PrimaryDiffusion);
      13             : 
      14             : InputParameters
      15         920 : PrimaryDiffusion::validParams()
      16             : {
      17         920 :   InputParameters params = Diffusion::validParams();
      18         920 :   params.addClassDescription("Diffusion of primary species");
      19         920 :   return params;
      20           0 : }
      21             : 
      22         498 : PrimaryDiffusion::PrimaryDiffusion(const InputParameters & parameters)
      23         996 :   : Diffusion(parameters), _diffusivity(getMaterialProperty<Real>("diffusivity"))
      24             : {
      25         498 : }
      26             : 
      27             : Real
      28     8151360 : PrimaryDiffusion::computeQpResidual()
      29             : {
      30     8151360 :   return _diffusivity[_qp] * Diffusion::computeQpResidual();
      31             : }
      32             : 
      33             : Real
      34     3793920 : PrimaryDiffusion::computeQpJacobian()
      35             : {
      36     3793920 :   return _diffusivity[_qp] * Diffusion::computeQpJacobian();
      37             : }

Generated by: LCOV version 1.14