LCOV - code coverage report
Current view: top level - src/fvkernels - PCNSFVMassHLLC.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: ba1ead Lines: 11 18 61.1 %
Date: 2025-08-13 06:50:25 Functions: 5 8 62.5 %
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 "PCNSFVMassHLLC.h"
      11             : 
      12             : registerMooseObject("NavierStokesApp", PCNSFVMassHLLC);
      13             : 
      14             : InputParameters
      15         221 : PCNSFVMassHLLC::validParams()
      16             : {
      17         221 :   InputParameters params = PCNSFVHLLC::validParams();
      18         221 :   params.addClassDescription("Implements the mass flux portion of the porous HLLC discretization.");
      19         221 :   return params;
      20           0 : }
      21             : 
      22         112 : PCNSFVMassHLLC::PCNSFVMassHLLC(const InputParameters & params) : PCNSFVHLLC(params) {}
      23             : 
      24             : ADReal
      25       80545 : PCNSFVMassHLLC::fluxElem()
      26             : {
      27       80545 :   return _normal_speed_elem * _eps_elem[_qp] * _rho_elem[_qp];
      28             : }
      29             : 
      30             : ADReal
      31           0 : PCNSFVMassHLLC::fluxNeighbor()
      32             : {
      33           0 :   return _normal_speed_neighbor * _eps_neighbor[_qp] * _rho_neighbor[_qp];
      34             : }
      35             : 
      36             : ADReal
      37       80545 : PCNSFVMassHLLC::hllcElem()
      38             : {
      39       80545 :   return 1;
      40             : }
      41             : 
      42             : ADReal
      43           0 : PCNSFVMassHLLC::hllcNeighbor()
      44             : {
      45           0 :   return 1;
      46             : }
      47             : 
      48             : ADReal
      49       80545 : PCNSFVMassHLLC::conservedVariableElem()
      50             : {
      51       80545 :   return _eps_elem[_qp] * _rho_elem[_qp];
      52             : }
      53             : 
      54             : ADReal
      55           0 : PCNSFVMassHLLC::conservedVariableNeighbor()
      56             : {
      57           0 :   return _eps_neighbor[_qp] * _rho_neighbor[_qp];
      58             : }

Generated by: LCOV version 1.14