LCOV - code coverage report
Current view: top level - src/fvkernels - PWCNSFVMassTimeDerivative.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: ba1ead Lines: 11 12 91.7 %
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 "PWCNSFVMassTimeDerivative.h"
      11             : 
      12             : #include "NS.h"
      13             : 
      14             : registerMooseObject("NavierStokesApp", PWCNSFVMassTimeDerivative);
      15             : 
      16             : InputParameters
      17         165 : PWCNSFVMassTimeDerivative::validParams()
      18             : {
      19         165 :   InputParameters params = WCNSFVMassTimeDerivative::validParams();
      20         165 :   params.addClassDescription("Adds the time derivative term to the porous weakly-compressible "
      21             :                              "Navier-Stokes continuity equation.");
      22         165 :   params.addParam<MooseFunctorName>(NS::porosity, NS::porosity, "the porosity");
      23         165 :   return params;
      24           0 : }
      25             : 
      26          93 : PWCNSFVMassTimeDerivative::PWCNSFVMassTimeDerivative(const InputParameters & params)
      27          93 :   : WCNSFVMassTimeDerivative(params), _eps(getFunctor<ADReal>(NS::porosity))
      28             : {
      29          93 : }
      30             : 
      31             : ADReal
      32       93510 : PWCNSFVMassTimeDerivative::computeQpResidual()
      33             : {
      34       93510 :   return _eps(makeElemArg(_current_elem), determineState()) *
      35      187020 :          WCNSFVMassTimeDerivative::computeQpResidual();
      36             : }

Generated by: LCOV version 1.14