LCOV - code coverage report
Current view: top level - src/fvbcs - PINSFVMomentumAdvectionOutflowBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: 9fc4b0 Lines: 11 12 91.7 %
Date: 2025-08-14 10:14:56 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 "PINSFVMomentumAdvectionOutflowBC.h"
      11             : #include "PINSFVSuperficialVelocityVariable.h"
      12             : #include "SubProblem.h"
      13             : #include "MooseMesh.h"
      14             : #include "NS.h"
      15             : 
      16             : registerMooseObject("NavierStokesApp", PINSFVMomentumAdvectionOutflowBC);
      17             : 
      18             : InputParameters
      19         145 : PINSFVMomentumAdvectionOutflowBC::validParams()
      20             : {
      21         145 :   InputParameters params = INSFVMomentumAdvectionOutflowBC::validParams();
      22         290 :   params.addRequiredParam<MooseFunctorName>("u", "The superficial velocity in the x direction.");
      23         290 :   params.addParam<MooseFunctorName>("v", "The superficial velocity in the y direction.");
      24         290 :   params.addParam<MooseFunctorName>("w", "The superficial velocity in the z direction.");
      25         145 :   params.addRequiredParam<MooseFunctorName>(NS::porosity, "The porosity");
      26         145 :   params.addClassDescription(
      27             :       "Outflow boundary condition for advecting momentum in the porous media momentum equation. "
      28             :       "This will impose a zero normal gradient on the boundary velocity.");
      29         145 :   return params;
      30           0 : }
      31             : 
      32          88 : PINSFVMomentumAdvectionOutflowBC::PINSFVMomentumAdvectionOutflowBC(const InputParameters & params)
      33         176 :   : INSFVMomentumAdvectionOutflowBC(params), _eps(getFunctor<ADReal>("porosity"))
      34             : {
      35          88 : }

Generated by: LCOV version 1.14