LCOV - code coverage report
Current view: top level - src/kernels - INSADMassPSPG.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: #32971 (54bef8) with base c6cf66 Lines: 12 13 92.3 %
Date: 2026-05-29 20:37:52 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 "INSADMassPSPG.h"
      11             : 
      12             : registerMooseObject("NavierStokesApp", INSADMassPSPG);
      13             : 
      14             : InputParameters
      15         945 : INSADMassPSPG::validParams()
      16             : {
      17         945 :   InputParameters params = ADKernelGrad::validParams();
      18         945 :   params.addClassDescription(
      19             :       "This class adds PSPG stabilization to the mass equation, enabling use of "
      20             :       "equal order shape functions for pressure and velocity variables");
      21        1890 :   params.addParam<MaterialPropertyName>("rho_name", "rho", "The name of the density");
      22         945 :   return params;
      23           0 : }
      24             : 
      25         505 : INSADMassPSPG::INSADMassPSPG(const InputParameters & parameters)
      26             :   : ADKernelGrad(parameters),
      27         505 :     _rho(getADMaterialProperty<Real>("rho_name")),
      28        1010 :     _tau(getADMaterialProperty<Real>("tau")),
      29        1515 :     _momentum_strong_residual(getADMaterialProperty<RealVectorValue>("momentum_strong_residual"))
      30             : {
      31         505 : }
      32             : 
      33             : ADRealVectorValue
      34    17329392 : INSADMassPSPG::precomputeQpResidual()
      35             : {
      36    34658784 :   return -_tau[_qp] / _rho[_qp] * _momentum_strong_residual[_qp];
      37             : }

Generated by: LCOV version 1.14