LCOV - code coverage report
Current view: top level - src/bcs - NSPenalizedNormalFlowBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: 9fc4b0 Lines: 0 18 0.0 %
Date: 2025-08-14 10:14:56 Functions: 0 5 0.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 "NSPenalizedNormalFlowBC.h"
      11             : 
      12             : registerMooseObject("NavierStokesApp", NSPenalizedNormalFlowBC);
      13             : 
      14             : InputParameters
      15           0 : NSPenalizedNormalFlowBC::validParams()
      16             : {
      17           0 :   InputParameters params = NSIntegratedBC::validParams();
      18           0 :   params.addClassDescription("This class penalizes the the value of u.n on the boundary so that it "
      19             :                              "matches some desired value.");
      20           0 :   params.addRequiredParam<Real>("penalty", "The penalty parameter, some (large) value.");
      21           0 :   params.addParam<Real>("specified_udotn", 0., "The desired value of u.n.");
      22           0 :   return params;
      23           0 : }
      24             : 
      25           0 : NSPenalizedNormalFlowBC::NSPenalizedNormalFlowBC(const InputParameters & parameters)
      26             :   : NSIntegratedBC(parameters),
      27           0 :     _penalty(getParam<Real>("penalty")),
      28           0 :     _specified_udotn(getParam<Real>("specified_udotn"))
      29             : {
      30           0 : }
      31             : 
      32             : Real
      33           0 : NSPenalizedNormalFlowBC::computeQpResidual()
      34             : {
      35           0 :   const RealVectorValue vel(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
      36           0 :   return _penalty * ((vel * _normals[_qp]) - _specified_udotn) * _test[_i][_qp];
      37             : }
      38             : 
      39             : Real
      40           0 : NSPenalizedNormalFlowBC::computeQpJacobian()
      41             : {
      42             :   // TODO
      43           0 :   return 0.0;
      44             : }
      45             : 
      46             : Real
      47           0 : NSPenalizedNormalFlowBC::computeQpOffDiagJacobian(unsigned /*jvar*/)
      48             : {
      49             :   // TODO
      50           0 :   return 0.0;
      51             : }

Generated by: LCOV version 1.14