LCOV - code coverage report
Current view: top level - src/bcs - NodalNormalBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 0 17 0.0 %
Date: 2025-07-17 01:28:37 Functions: 0 3 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 "NodalNormalBC.h"
      11             : 
      12             : InputParameters
      13           0 : NodalNormalBC::validParams()
      14             : {
      15           0 :   InputParameters params = NodalBC::validParams();
      16           0 :   params.addCoupledVar("nx", "x-component of the normal");
      17           0 :   params.addCoupledVar("ny", "y-component of the normal");
      18           0 :   params.addCoupledVar("nz", "z-component of the normal");
      19             : 
      20           0 :   params.set<std::vector<VariableName>>("nx") = {"nodal_normal_x"};
      21           0 :   params.set<std::vector<VariableName>>("ny") = {"nodal_normal_y"};
      22           0 :   params.set<std::vector<VariableName>>("nz") = {"nodal_normal_z"};
      23             : 
      24           0 :   return params;
      25           0 : }
      26             : 
      27           0 : NodalNormalBC::NodalNormalBC(const InputParameters & parameters)
      28           0 :   : NodalBC(parameters), _nx(coupledValue("nx")), _ny(coupledValue("ny")), _nz(coupledValue("nz"))
      29             : {
      30           0 : }
      31             : 
      32             : void
      33           0 : NodalNormalBC::computeResidual()
      34             : {
      35           0 :   _normal = Point(_nx[_qp], _ny[_qp], _nz[_qp]);
      36           0 :   computeQpResidual();
      37           0 : }

Generated by: LCOV version 1.14