LCOV - code coverage report
Current view: top level - src/fvbcs - PWCNSFVMomentumFluxBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: 9fc4b0 Lines: 10 11 90.9 %
Date: 2025-08-14 10:14:56 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 "PWCNSFVMomentumFluxBC.h"
      11             : #include "NS.h"
      12             : 
      13             : registerMooseObject("NavierStokesApp", PWCNSFVMomentumFluxBC);
      14             : 
      15             : InputParameters
      16          33 : PWCNSFVMomentumFluxBC::validParams()
      17             : {
      18          33 :   InputParameters params = WCNSFVMomentumFluxBC::validParams();
      19          33 :   params.addClassDescription("Flux boundary conditions for porous momentum advection.");
      20          33 :   params.addParam<MooseFunctorName>(NS::porosity, NS::porosity, "Porosity functor");
      21          33 :   return params;
      22           0 : }
      23             : 
      24          24 : PWCNSFVMomentumFluxBC::PWCNSFVMomentumFluxBC(const InputParameters & params)
      25          24 :   : WCNSFVMomentumFluxBC(params), _eps(getFunctor<ADReal>(NS::porosity))
      26             : {
      27          24 : }
      28             : 
      29             : ADReal
      30        2150 : PWCNSFVMomentumFluxBC::computeQpResidual()
      31             : {
      32        4300 :   return WCNSFVMomentumFluxBC::computeQpResidual() / _eps(singleSidedFaceArg(), determineState());
      33             : }

Generated by: LCOV version 1.14