LCOV - code coverage report
Current view: top level - src/fvkernels - FVReaction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 10 11 90.9 %
Date: 2025-08-08 20:01:16 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 "FVReaction.h"
      11             : 
      12             : registerADMooseObject("MooseApp", FVReaction);
      13             : 
      14             : InputParameters
      15       15103 : FVReaction::validParams()
      16             : {
      17       15103 :   InputParameters params = FVElementalKernel::validParams();
      18       15103 :   params.addClassDescription("Simple consuming reaction term");
      19       15103 :   params.addParam<Real>("rate", 1.0, "Relative amount consumed per unit time.");
      20       15103 :   return params;
      21           0 : }
      22             : 
      23         426 : FVReaction::FVReaction(const InputParameters & parameters)
      24         426 :   : FVElementalKernel(parameters), _rate(getParam<Real>("rate"))
      25             : {
      26         426 : }
      27             : 
      28             : ADReal
      29     1154567 : FVReaction::computeQpResidual()
      30             : {
      31     1154567 :   return _rate * _u[_qp];
      32             : }

Generated by: LCOV version 1.14