LCOV - code coverage report
Current view: top level - src/fvbcs - PCNSFVHLLCMassBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: 9fc4b0 Lines: 22 24 91.7 %
Date: 2025-08-14 10:14:56 Functions: 10 16 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 "PCNSFVHLLCMassBC.h"
      11             : 
      12             : registerMooseObject("NavierStokesApp", PCNSFVHLLCSpecifiedMassFluxAndTemperatureMassBC);
      13             : registerMooseObject("NavierStokesApp", PCNSFVHLLCSpecifiedPressureMassBC);
      14             : 
      15             : template <typename T>
      16             : InputParameters
      17          90 : PCNSFVHLLCMassBC<T>::validParams()
      18             : {
      19          90 :   InputParameters params = T::validParams();
      20          90 :   params.addClassDescription("Implements the mass boundary flux portion of the porous HLLC "
      21             :                              "discretization given specified mass fluxes and fluid temperature");
      22          90 :   return params;
      23           0 : }
      24             : 
      25             : template <>
      26             : InputParameters
      27          90 : PCNSFVHLLCMassBC<PCNSFVHLLCSpecifiedPressureBC>::validParams()
      28             : {
      29          90 :   InputParameters params = PCNSFVHLLCSpecifiedPressureBC::validParams();
      30          90 :   params.addClassDescription("Implements the mass boundary flux portion of the porous HLLC "
      31             :                              "discretization given specified pressure");
      32          90 :   return params;
      33           0 : }
      34             : 
      35             : template <typename T>
      36          90 : PCNSFVHLLCMassBC<T>::PCNSFVHLLCMassBC(const InputParameters & params) : T(params)
      37             : {
      38          90 : }
      39             : 
      40             : template <typename T>
      41             : ADReal
      42         415 : PCNSFVHLLCMassBC<T>::fluxElem()
      43             : {
      44         415 :   return this->_normal_speed_elem * this->_eps_elem[this->_qp] * this->_rho_elem[this->_qp];
      45             : }
      46             : 
      47             : template <typename T>
      48             : ADReal
      49         415 : PCNSFVHLLCMassBC<T>::fluxBoundary()
      50             : {
      51         415 :   return this->_normal_speed_boundary * this->_eps_boundary * this->_rho_boundary;
      52             : }
      53             : 
      54             : template <typename T>
      55             : ADReal
      56         415 : PCNSFVHLLCMassBC<T>::hllcElem()
      57             : {
      58         415 :   return 1;
      59             : }
      60             : 
      61             : template <typename T>
      62             : ADReal
      63         415 : PCNSFVHLLCMassBC<T>::hllcBoundary()
      64             : {
      65         415 :   return 1;
      66             : }
      67             : 
      68             : template <typename T>
      69             : ADReal
      70         415 : PCNSFVHLLCMassBC<T>::conservedVariableElem()
      71             : {
      72         415 :   return this->_eps_elem[this->_qp] * this->_rho_elem[this->_qp];
      73             : }
      74             : 
      75             : template <typename T>
      76             : ADReal
      77         415 : PCNSFVHLLCMassBC<T>::conservedVariableBoundary()
      78             : {
      79         415 :   return this->_eps_boundary * this->_rho_boundary;
      80             : }
      81             : 
      82             : template class PCNSFVHLLCMassBC<PCNSFVHLLCSpecifiedMassFluxAndTemperatureBC>;
      83             : template class PCNSFVHLLCMassBC<PCNSFVHLLCSpecifiedPressureBC>;

Generated by: LCOV version 1.14