LCOV - code coverage report
Current view: top level - include/bcs - NSPressureNeumannBC.h (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: 9fc4b0 Lines: 1 1 100.0 %
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             : #pragma once
      11             : 
      12             : #include "NSIntegratedBC.h"
      13             : #include "NSPressureDerivs.h"
      14             : 
      15             : // Forward Declarations
      16             : 
      17             : /**
      18             :  * This kernel is appropriate for use with a "zero normal flow"
      19             :  * boundary condition in the context of the Euler equations.
      20             :  * In this situation, the convective term is integrated by parts
      21             :  * and the (rho*u)(u.n) term is zero since u.n=0.  Thus all we
      22             :  * are left with is the pressure times the normal.
      23             :  *
      24             :  * For the Navier-Stokes equations, a no-slip boundary condition
      25             :  * is probably what you want instead of this... for that use
      26             :  * NSImposedVelocityBC instead.
      27             :  */
      28             : class NSPressureNeumannBC : public NSIntegratedBC
      29             : {
      30             : public:
      31             :   static InputParameters validParams();
      32             : 
      33             :   NSPressureNeumannBC(const InputParameters & parameters);
      34             : 
      35          88 :   virtual ~NSPressureNeumannBC() {}
      36             : 
      37             : protected:
      38             :   virtual Real computeQpResidual();
      39             :   virtual Real computeQpJacobian();
      40             :   virtual Real computeQpOffDiagJacobian(unsigned jvar);
      41             : 
      42             :   // Coupled vars
      43             :   const VariableValue & _pressure;
      44             : 
      45             :   // Required parameters
      46             :   unsigned _component;
      47             : 
      48             :   // An object for computing pressure derivatives.
      49             :   // Constructed via a reference to ourself
      50             :   NSPressureDerivs<NSPressureNeumannBC> _pressure_derivs;
      51             : 
      52             :   // Declare ourselves friend to the helper class.
      53             :   template <class U>
      54             :   friend class NSPressureDerivs;
      55             : 
      56             : private:
      57             :   // Computes the Jacobian value for this term for variable 'm'
      58             :   // in the canonical ordering.
      59             :   Real computeJacobianHelper(unsigned m);
      60             : };

Generated by: LCOV version 1.14