LCOV - code coverage report
Current view: top level - src/nodalkernels - ConstantRate.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 13 14 92.9 %
Date: 2025-07-17 01:28:37 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 "ConstantRate.h"
      11             : 
      12             : registerMooseObject("MooseApp", ConstantRate);
      13             : 
      14             : InputParameters
      15       14432 : ConstantRate::validParams()
      16             : {
      17       14432 :   InputParameters params = NodalKernel::validParams();
      18       14432 :   params.addClassDescription("Computes residual or the rate in a simple ODE of du/dt = rate.");
      19       14432 :   params.addRequiredParam<Real>("rate", "The constant rate in 'du/dt = rate'");
      20       14432 :   params.declareControllable("rate");
      21       14432 :   return params;
      22           0 : }
      23             : 
      24          98 : ConstantRate::ConstantRate(const InputParameters & parameters)
      25          98 :   : NodalKernel(parameters), _rate(getParam<Real>("rate"))
      26             : {
      27          98 : }
      28             : 
      29             : Real
      30      745048 : ConstantRate::computeQpResidual()
      31             : {
      32      745048 :   return -_rate;
      33             : }
      34             : 
      35             : Real
      36      126512 : ConstantRate::computeQpJacobian()
      37             : {
      38      126512 :   return 0;
      39             : }

Generated by: LCOV version 1.14