LCOV - code coverage report
Current view: top level - src/fvkernels - PINSFVMomentumTimeDerivative.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: ba1ead Lines: 8 10 80.0 %
Date: 2025-08-13 06:50:25 Functions: 2 2 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 "PINSFVMomentumTimeDerivative.h"
      11             : #include "PINSFVSuperficialVelocityVariable.h"
      12             : 
      13             : registerMooseObject("NavierStokesApp", PINSFVMomentumTimeDerivative);
      14             : 
      15             : InputParameters
      16         397 : PINSFVMomentumTimeDerivative::validParams()
      17             : {
      18         397 :   InputParameters params = INSFVMomentumTimeDerivative::validParams();
      19         397 :   params.addClassDescription("Adds the time derivative term: d(rho u_d) / dt to the porous media "
      20             :                              "incompressible Navier-Stokes momentum equation.");
      21         397 :   return params;
      22           0 : }
      23             : 
      24         264 : PINSFVMomentumTimeDerivative::PINSFVMomentumTimeDerivative(const InputParameters & params)
      25         264 :   : INSFVMomentumTimeDerivative(params)
      26             : {
      27         264 :   if (!dynamic_cast<PINSFVSuperficialVelocityVariable *>(&_var))
      28           0 :     mooseError("PINSFVMomentumTimeDerivative may only be used with a superficial velocity, "
      29             :                "of variable type PINSFVSuperficialVelocityVariable.");
      30         264 : }

Generated by: LCOV version 1.14