LCOV - code coverage report
Current view: top level - src/fvkernels - FVMatPropTimeKernel.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: ba1ead Lines: 10 11 90.9 %
Date: 2025-08-13 06:50:25 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 "FVMatPropTimeKernel.h"
      11             : #include "NS.h"
      12             : 
      13             : registerMooseObject("NavierStokesApp", FVMatPropTimeKernel);
      14             : 
      15             : InputParameters
      16         458 : FVMatPropTimeKernel::validParams()
      17             : {
      18         458 :   InputParameters params = FVTimeKernel::validParams();
      19         458 :   params.addClassDescription(
      20             :       "Returns a material property which should correspond to a time derivative.");
      21         916 :   params.addRequiredParam<MaterialPropertyName>(
      22             :       "mat_prop_time_derivative", "The material property containing the time derivative.");
      23         458 :   return params;
      24           0 : }
      25             : 
      26         256 : FVMatPropTimeKernel::FVMatPropTimeKernel(const InputParameters & parameters)
      27             :   : FVTimeKernel(parameters),
      28         512 :     _mat_prop_time_derivative(getADMaterialProperty<Real>("mat_prop_time_derivative"))
      29             : {
      30         256 : }
      31             : 
      32             : ADReal
      33     6241980 : FVMatPropTimeKernel::computeQpResidual()
      34             : {
      35     6241980 :   return _mat_prop_time_derivative[_qp];
      36             : }

Generated by: LCOV version 1.14